move up hugo to root
This commit is contained in:
48
layouts/_default/baseof.html
Normal file
48
layouts/_default/baseof.html
Normal file
@ -0,0 +1,48 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: ;">
|
||||
<title>
|
||||
{{- block "title" . -}}
|
||||
{{ .Site.Title }}
|
||||
{{- end -}}
|
||||
</title>
|
||||
|
||||
<!-- Diable favicon requests: https://stackoverflow.com/a/13416784 -->
|
||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||
<link href="/assets/bootstrap.min.css" rel="stylesheet" >
|
||||
<style>
|
||||
{{- block "styles" . -}}
|
||||
{{- end -}}
|
||||
</style>
|
||||
|
||||
<script src="/assets/bootstrap.min.js" defer></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container" >
|
||||
<aside>
|
||||
<nav>
|
||||
<ul class="nav">
|
||||
<li class="nav-item"><a class="nav-link" href="/"> Home </a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/posts"> Blog </a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="https://gitea.balki.me/balki"> Gitea </a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="https://github.com/balki"> Github </a></li>
|
||||
<!-- TODO
|
||||
<li class="nav-item"><a class="nav-link" href="/about"> About </a></li>
|
||||
-->
|
||||
</ul>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<main>
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
6
layouts/_default/list.html
Normal file
6
layouts/_default/list.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<h1 class="text-center">Posts</h1>
|
||||
{{ range .Pages }}
|
||||
{{ partial "postcard" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
11
layouts/_default/single.html
Normal file
11
layouts/_default/single.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }} – {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<article>
|
||||
<h1 class="display-3 text-center">{{ .Title }}</h1>
|
||||
<p class="text-center"><time datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }}</time></p>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
16
layouts/index.html
Normal file
16
layouts/index.html
Normal file
@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
<article>
|
||||
<div class="text-center m-4">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<p class="text-center">Under construction. Come back later! :)</p>
|
||||
<div>
|
||||
<h4>Recent posts</h4>
|
||||
{{ range .Pages }}
|
||||
{{ range .Pages }}
|
||||
{{ partial "postcard" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
12
layouts/partials/postcard.html
Normal file
12
layouts/partials/postcard.html
Normal file
@ -0,0 +1,12 @@
|
||||
{{ define "styles" }}
|
||||
a.title-link {
|
||||
text-decoration: none;
|
||||
}
|
||||
{{ end }}
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<a class="title-link link-primary" href="{{ .RelPermalink }}" ><h3 class="card-title">{{ .Title }}</h3></a>
|
||||
<p> {{ .Date.Format "2006-01-02" }} </p>
|
||||
<p class="card-text"> {{ .Summary }} </p>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user