diff options
author | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-10-13 21:26:24 -0400 |
---|---|---|
committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-10-13 21:26:24 -0400 |
commit | cf6c17546bc40d41c169279ad7b8f60bf0888ab3 (patch) | |
tree | 818f9bea1c1472ab3204f166a642ae05a4a71187 /layouts | |
parent | 2545016f8d6b63b0d857fc20fdd7276d2f0fc2a9 (diff) |
new templates, and refinements
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/post/single.html | 11 | ||||
-rw-r--r-- | layouts/shortcodes/projects.html | 12 |
2 files changed, 22 insertions, 1 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html index 25bfc23..2c4c23e 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html | |||
@@ -2,10 +2,19 @@ | |||
2 | {{ if not .Params.dontDisclaim }} | 2 | {{ if not .Params.dontDisclaim }} |
3 | {{ partial "disclaimer" . }} | 3 | {{ partial "disclaimer" . }} |
4 | {{ end }} | 4 | {{ end }} |
5 | {{ with .GetTerms "categories" }} | ||
6 | {{ (index . 0).RelPermalink }} | ||
7 | {{ end }} | ||
5 | <hgroup> | 8 | <hgroup> |
6 | <h1>{{ .Title }}</h1> | 9 | <h1>{{ .Title }}</h1> |
7 | <h6>{{ .Date | time.Format ":date_full" }}</h6> | 10 | <h6>{{ .Date | time.Format ":date_full" }}</h6> |
8 | <h6>{{ .Lastmod | time.Format ":date_full" }}</h6> | 11 | {{ with .Params.categories }} |
12 | <div class="pills"> | ||
13 | {{ range $value := . }} | ||
14 | <a href="{{ $.Site.BaseURL }}/categories/{{ $.Site.Taxonomies.categories.path }}/{{ $value | urlize }}">{{ $value }}</a> | ||
15 | {{ end }} | ||
16 | </div> | ||
17 | {{ end }} | ||
9 | </hgroup> | 18 | </hgroup> |
10 | <section class="content"> | 19 | <section class="content"> |
11 | {{- .Content -}} | 20 | {{- .Content -}} |
diff --git a/layouts/shortcodes/projects.html b/layouts/shortcodes/projects.html new file mode 100644 index 0000000..b9cf8b5 --- /dev/null +++ b/layouts/shortcodes/projects.html | |||
@@ -0,0 +1,12 @@ | |||
1 | {{ $projects := where .Site.RegularPages "Params.categories" "intersect" (slice "projects") }} | ||
2 | |||
3 | <ul> | ||
4 | {{ range $projects }} | ||
5 | <li> | ||
6 | <a href="{{ .Permalink }}">{{ .Title }}</a> | ||
7 | {{ with .Description }} | ||
8 | — {{ . }} | ||
9 | {{ end }} | ||
10 | </li> | ||
11 | {{ end }} | ||
12 | </ul> \ No newline at end of file | ||