From 22273ffd5de54ec6b39cb6bcd832d4259e5cf0db Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Tue, 18 Dec 2018 09:43:27 -0500 Subject: [PATCH] Make theme fit more generic pages better --- archetypes/{posts.md => post.md} | 0 layouts/_default/list.html | 2 +- layouts/{posts => post}/li-next.html | 0 layouts/{posts => post}/li.html | 2 +- layouts/{posts => post}/single.html | 0 theme.toml | 2 +- 6 files changed, 3 insertions(+), 3 deletions(-) rename archetypes/{posts.md => post.md} (100%) rename layouts/{posts => post}/li-next.html (100%) rename layouts/{posts => post}/li.html (83%) rename layouts/{posts => post}/single.html (100%) diff --git a/archetypes/posts.md b/archetypes/post.md similarity index 100% rename from archetypes/posts.md rename to archetypes/post.md diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 023f8dd..98e6723 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -8,7 +8,7 @@

{{ .Description }}

{{ .Title }}

- {{ range where .Paginator.Pages "Params.list" true }} + {{ range where .Paginator.Pages "Params.list" "!=" false }} {{ .Render "li" }} {{ end }} diff --git a/layouts/posts/li-next.html b/layouts/post/li-next.html similarity index 100% rename from layouts/posts/li-next.html rename to layouts/post/li-next.html diff --git a/layouts/posts/li.html b/layouts/post/li.html similarity index 83% rename from layouts/posts/li.html rename to layouts/post/li.html index 59f5db2..441bca0 100644 --- a/layouts/posts/li.html +++ b/layouts/post/li.html @@ -7,7 +7,7 @@ {{ end }}

{{ .Title }}

-

{{ .Description }}

+

{{ if (isset .Params "description") }}{{ index .Params "description" }}{{ else }}{{ .Summary }}{{ end }}

Posted

{{ range .Params.categories }}#{{ . }} {{ end }}

diff --git a/layouts/posts/single.html b/layouts/post/single.html similarity index 100% rename from layouts/posts/single.html rename to layouts/post/single.html diff --git a/theme.toml b/theme.toml index 0ba1d82..a2f655b 100644 --- a/theme.toml +++ b/theme.toml @@ -3,7 +3,7 @@ license = "MIT" licenselink = "https://github.com/josephhutch/aether/blob/master/LICENSE.md" description = "aether is a blog theme that emphasizes motion, material, and depth as design elements to highlight the content of your site" homepage = "https://github.com/josephhutch/aether" -tags = ["Blog", "Responsive", "Minimal", "Clean", "Material Design", "Highlight.js"] +tags = ["Blog", "Personal", "Responsive", "Minimal", "Simple", "Clean", "Material Design"] features = [] min_version = "0.26"