diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-02-24 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-02-24 00:00:00 +0000 |
commit | 4200dccb4372c7095e151803364c3f34eaa466327a2fc015a7a89065e4742b22 (patch) | |
tree | 05617722afe3cd4cca46d7c41ad22475523b3ff4392c152c9c9d26fee6ffab34 /layouts/_default | |
parent | 332dca70f6d89cba1f5b4813093ae8bb57cd08f3e25813f57fba251763514b9a (diff) | |
download | hugo-theme-journal-4200dccb4372c7095e151803364c3f34eaa466327a2fc015a7a89065e4742b22.tar.gz hugo-theme-journal-4200dccb4372c7095e151803364c3f34eaa466327a2fc015a7a89065e4742b22.zip |
Implement terms
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/term.gmi | 9 | ||||
-rw-r--r-- | layouts/_default/term.html | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/layouts/_default/term.gmi b/layouts/_default/term.gmi new file mode 100644 index 0000000..8c47843 --- /dev/null +++ b/layouts/_default/term.gmi @@ -0,0 +1,9 @@ +{{ define "main" -}} +=> / {{ emojify ":link:" | safeHTML }} Return to homepage + + +# All entries for {{ .Type | singularize | safeHTML }} "{{ .Title | safeHTML }}" +{{ range .Data.Pages }} +=> {{ .RelPermalink }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }} +{{- end }} +{{- end }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html new file mode 100644 index 0000000..0f1defc --- /dev/null +++ b/layouts/_default/term.html @@ -0,0 +1,13 @@ +{{ define "main" -}} +<nav> + <p>{{ emojify ":link:" | safeHTML }} <a class="link" href="/" rel="noreferrer">Return to homepage</a></p> +</nav> +<main> + <h1>All entries for {{ .Type | singularize }} "{{ .Title }}"</h1> + <ul class="list"> + {{- range .Data.Pages }} + <li class="list__item">{{ emojify ":link:" | safeHTML }} <a class="link" href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></li> + {{- end }} + </ul> +</main> +{{- end }} |