diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-05-17 22:56:00 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-05-17 22:56:00 -0400 |
commit | 51c0cc199f30e195eafbf04e6be09dd8b2561574 (patch) | |
tree | eac3c7950a8855b3f38c1bb9d7744f5a60e2a4f8 /generators/hugo/themes/tdro/layouts/_default/archive.html | |
parent | 48e0d578c7f65e6a0ab8d293217983ba8bb21c00 (diff) | |
download | thedroneely.com-51c0cc199f30e195eafbf04e6be09dd8b2561574.tar.gz thedroneely.com-51c0cc199f30e195eafbf04e6be09dd8b2561574.tar.bz2 thedroneely.com-51c0cc199f30e195eafbf04e6be09dd8b2561574.zip |
generators/hugo: Add Hugo theme source files
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/_default/archive.html')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/archive.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/archive.html b/generators/hugo/themes/tdro/layouts/_default/archive.html new file mode 100644 index 0000000..237bfbd --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/_default/archive.html @@ -0,0 +1,42 @@ +{{ define "main" }} +<section class="section is-fullheight" itemscope itemtype="https://schema.org/WebPage"> + <div class="container"> + <div class="columns is-centered"> + <div class="column is-7"> + + {{ $type := .Type }} + {{ $.Scratch.Set "count" 1 }} + + {{ range (.Site.RegularPages.GroupByDate "2006") }} + {{ if (gt .Key 2000) }} + + {{ range (where .Pages "Type" $type) }} + {{ if (eq ($.Scratch.Get "count") 1) }} + {{ $.Scratch.Set "count" 0 }} + <h1 class="title is-4 has-text-weight-normal">{{ .Date.Format "2006" }}</h1> + {{ end }} + {{ end }} + + {{ $.Scratch.Set "count" 1 }} + + <ul class="article__list"> + {{ range (where .Pages "Type" $type) }} + {{ if (ne .Params.hidden true) }} + <li> + <span class="has-text-grey-dark">{{ .Date.Format "02 Jan" }}</span> + — <a href="{{ .RelPermalink }}">{{ .Title }}</a> + </li> + {{ end }} + {{ end }} + + </ul> + <br> + + {{ end }} + {{ end }} + + </div> + </div> + </div> +</section> +{{ end }} |