diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-07-19 11:59:45 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-07-19 11:59:45 -0400 |
commit | ea54421b15c9705f86a8d25a6caaa40791d66e18 (patch) | |
tree | 546ec8892c2140a48129fd521189dc68b567c95b /generators/hugo/themes/tdro/layouts/_default/archive.html | |
parent | f888991f298e59933250c8d56080c1805068f5e0 (diff) | |
download | thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.tar.gz thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.tar.bz2 thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.zip |
app: Refactor and CSS rewrite
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/_default/archive.html')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/archive.html | 53 |
1 files changed, 23 insertions, 30 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/archive.html b/generators/hugo/themes/tdro/layouts/_default/archive.html index 7399a98..8cbd435 100644 --- a/generators/hugo/themes/tdro/layouts/_default/archive.html +++ b/generators/hugo/themes/tdro/layouts/_default/archive.html @@ -1,36 +1,29 @@ {{ define "main" }} -<section class="section is-fullheight"> - <div class="container"> - <div class="columns is-centered"> - <div class="column is-7"> - {{ $type := .Type }} +<main> + <article-archive-list> + {{ $type := .Type }} - {{ range (.Site.RegularPages.GroupByDate "2006") }} - {{ $articles := (where .Pages "Type" $type) }} - {{ if and (gt .Key 1) (gt (where .Pages "Type" $type) 0) }} - - {{ range (first 1 $articles) }} - <h1 class="article__list title is-4 has-text-weight-normal has-margin-bottom-lg">{{ .Date.Format "2006" }}</h1> - {{ end }} - - <ul class="article__list"> - {{ range $articles }} - {{ if (ne .Params.hidden true) }} - <li> - <a title="{{ .Title }}" class="is-block" href="{{ .RelPermalink }}"> - <span class="article__list__date monospace has-text-grey-dark">{{ .Date.Format "02 Jan" }}</span> - {{- .Title | markdownify -}} - </a> - </li> - {{ end }} - {{ end }} - </ul> + {{ range (.Site.RegularPages.GroupByDate "2006") }} + {{ $articles := (where .Pages "Type" $type) }} + {{ if and (gt .Key 1) (gt (where .Pages "Type" $type) 0) }} + {{ range (first 1 $articles) }} + <h1>{{ .Date.Format "2006" }}</h1> + {{ end }} + <ul> + {{ range $articles }} + {{ if (ne .Params.hidden true) }} + <li> + <a title="{{ .Title }}" href="{{ .RelPermalink }}"> + <code><time datetime="{{ dateFormat "2006-01-02" .Date }}">{{ .Date.Format "02 Jan" }}</time></code> + <span>{{- .Title | markdownify -}}</span> + </a> + </li> {{ end }} {{ end }} - - </div> - </div> - </div> -</section> + </ul> + {{ end }} + {{ end }} + </article-archive-list> +</main> {{ end }} |