diff options
author | Thedro Neely <thedroneely@gmail.com> | 2021-03-12 23:11:43 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2021-03-12 23:11:43 -0500 |
commit | f0d46211a55c30406174f395a92d80bd0899f2a7 (patch) | |
tree | 5cc924af279c0857d707fe42e3aff7f78f4f20bf /generators | |
parent | 302372a9f2315b67572f53e3998cde253a3335e9 (diff) | |
download | thedroneely.com-f0d46211a55c30406174f395a92d80bd0899f2a7.tar.gz thedroneely.com-f0d46211a55c30406174f395a92d80bd0899f2a7.tar.bz2 thedroneely.com-f0d46211a55c30406174f395a92d80bd0899f2a7.zip |
generators/hugo/content: Add comprehensive archiving
Diffstat (limited to 'generators')
6 files changed, 63 insertions, 0 deletions
diff --git a/generators/hugo/content/archives/_index.md b/generators/hugo/content/archives/_index.md new file mode 100644 index 0000000..34494f5 --- /dev/null +++ b/generators/hugo/content/archives/_index.md @@ -0,0 +1,7 @@ +--- +title: "Posts Archive" +layout: archive +hidden: true +type: posts +summary: This page contains an archive of all posts. +--- diff --git a/generators/hugo/content/archives/posts.md b/generators/hugo/content/archives/posts.md new file mode 100644 index 0000000..34494f5 --- /dev/null +++ b/generators/hugo/content/archives/posts.md @@ -0,0 +1,7 @@ +--- +title: "Posts Archive" +layout: archive +hidden: true +type: posts +summary: This page contains an archive of all posts. +--- diff --git a/generators/hugo/content/archives/projects.md b/generators/hugo/content/archives/projects.md new file mode 100644 index 0000000..9feb4c9 --- /dev/null +++ b/generators/hugo/content/archives/projects.md @@ -0,0 +1,7 @@ +--- +title: "Projects Archive" +layout: archive +hidden: true +type: projects +summary: This page contains an archive of all projects. +--- diff --git a/generators/hugo/content/archives/tags.md b/generators/hugo/content/archives/tags.md new file mode 100644 index 0000000..d7f884a --- /dev/null +++ b/generators/hugo/content/archives/tags.md @@ -0,0 +1,7 @@ +--- +title: "Taxonomy Archive" +layout: taxonomy_archive +hidden: true +type: tags +summary: This page contains an archive of all taxonomies. +--- diff --git a/generators/hugo/themes/tdro/layouts/_default/taxonomy.html b/generators/hugo/themes/tdro/layouts/_default/taxonomy.html index e25fda0..678d292 100644 --- a/generators/hugo/themes/tdro/layouts/_default/taxonomy.html +++ b/generators/hugo/themes/tdro/layouts/_default/taxonomy.html @@ -1,4 +1,5 @@ {{ define "main" }} +{{ $sidenote := "<span class=\"marginnote rightnote\">See an archive of all taxonomies <a href=\"/archives/tags/\">here.</a></span>" }} <section class="section is-fullheight" itemscope itemtype="http://schema.org/AboutPage"> <div class="container"> <div class="columns is-centered"> @@ -6,6 +7,8 @@ {{ $title := .Title }} {{ if eq $title "Tags" }} <article class="content"> + <h1 class="article__list title is-3">Taxonomies</h1> + {{ safeHTML $sidenote }} {{ range .Paginator.Pages }} {{ $title := .Title }} <h1 class="article__list smallcaps title">{{ .Title | title }}</h1> @@ -32,6 +35,7 @@ <h1 class="smallcaps title"> {{ if ne $title "Tags" }} <a href="/{{ .Data.Plural }}/">Tags</a> <span>—</span> <span>{{ end }}{{ .Title | title }}</span> </h1> + {{ safeHTML $sidenote }} {{ range $taxonomy := .Site.Taxonomies }} {{ range $tag, $article := $taxonomy }} {{ if eq $tag $title }} diff --git a/generators/hugo/themes/tdro/layouts/_default/taxonomy_archive.html b/generators/hugo/themes/tdro/layouts/_default/taxonomy_archive.html new file mode 100644 index 0000000..b6e6e4c --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/_default/taxonomy_archive.html @@ -0,0 +1,31 @@ +{{ define "main" }} +<section class="section is-fullheight" itemscope itemtype="http://schema.org/AboutPage"> + <div class="container"> + <div class="columns is-centered"> + <div class="column is-7"> + {{ $title := .Title }} + <article class="content"> + <h1 class="article__list smallcaps title">{{ .Title | title }}</h1> + {{ range $taxonomy := .Site.Taxonomies }} + {{ $title := .Title }} + {{ range $tag, $article := $taxonomy }} + {{ if ne $tag $title }} + <h1 class="article__list smallcaps title is-4">{{ $tag }}</h1> + <ul class="article__list"> + {{ range $article.Pages }} + <li> + <a class="is-block" href="{{ .RelPermalink }}"> + <span class="article__list__date monospace has-text-grey-dark">{{ .Date.Format "02 Jan 2006" }}</span>{{ .Title }} + </a> + </li> + {{ end }} + </ul> + {{ end }} + {{ end }} + {{ end }} + </article> + </div> + </div> + </div> +</section> +{{ end }} |