diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/all-posts.html | 7 | ||||
-rw-r--r-- | layouts/partials/footer.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 11 |
3 files changed, 22 insertions, 0 deletions
diff --git a/layouts/partials/all-posts.html b/layouts/partials/all-posts.html new file mode 100644 index 0000000..77d8a18 --- /dev/null +++ b/layouts/partials/all-posts.html @@ -0,0 +1,7 @@ +{{ range $index, $page := where .Site.RegularPages "Section" "blog" }} + <div class="blog-item"> + {{ $page.Date.Format "January 2, 2006" }} + <br> + <a href="{{ $page.RelPermalink }}">{{ $page.Title }}</a> + </div> +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..83b6ab0 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,4 @@ +<hr> +<p>Thank you for taking interest in my website. The writing is under <a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0</a> and <a href="https://git.mending.trade/www">the code</a> is under the <a href="https://unlicense.org/">Unlicense</a>. Be kind.</p> +<a href="https://www.gentoo.org/"><img src="/gentoo-button.png"/></a> +<a href="https://www.vim.org/"><img src="/vim-button.png"/></a> diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..dbc52c5 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,11 @@ +<header> + <img src="/avatar.png" width="64" height="64"/> + <div class="links"> + <span class="title"><a href="/">{{ .Site.Title }}</a></span> + <nav> + {{ range site.Menus.main }} + <a href="{{ .URL }}">{{ .Name }}</a> + {{ end }} + </nav> + </div> +</header> |