diff options
| author | Arne Rief <riearn@proton.me> | 2025-08-16 22:42:03 +0200 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2025-08-16 22:42:03 +0200 |
| commit | f0506acd6f70da636b8fdb23439c85bbf2392b40 (patch) | |
| tree | d9c4082aafa3e20a37174beecadcab54286f9cd9 /layouts/partials/single | |
| parent | 1bf4d8aca6f81f2dddd0262e74b278cd9985b53d (diff) | |
HTML templates done
Diffstat (limited to 'layouts/partials/single')
| -rw-r--r-- | layouts/partials/single/next-prev.html | 30 | ||||
| -rw-r--r-- | layouts/partials/single/tags.html | 17 |
2 files changed, 47 insertions, 0 deletions
diff --git a/layouts/partials/single/next-prev.html b/layouts/partials/single/next-prev.html new file mode 100644 index 0000000..c938990 --- /dev/null +++ b/layouts/partials/single/next-prev.html @@ -0,0 +1,30 @@ +{{- /* Navigation for Next and Previous Post */ -}} +<nav class="post__navigation" aria-label="{{ lang.Translate "post.navigation" | default "Post navigation" }}"> + <ul class="post__navigation-list"> + {{- with .PrevInSection }} + <li class="post__navigation-prev"> + <a href="{{ .RelPermalink }}" class="post__navigation-link" rel="prev"> + <span class="post__navigation-label"> + {{ lang.Translate "post.previous" | default "Previous post:" }} + </span> + <span class="post__navigation-title"> + {{ .Title }} + </span> + </a> + </li> + {{- end }} + + {{- with .NextInSection }} + <li class="post__navigation-next"> + <a href="{{ .RelPermalink }}" class="post__navigation-link" rel="next"> + <span class="post__navigation-label"> + {{ lang.Translate "post.next" | default "Next post:" }} + </span> + <span class="post__navigation-title"> + {{ .Title }} + </span> + </a> + </li> + {{- end }} + </ul> +</nav> diff --git a/layouts/partials/single/tags.html b/layouts/partials/single/tags.html new file mode 100644 index 0000000..e90b909 --- /dev/null +++ b/layouts/partials/single/tags.html @@ -0,0 +1,17 @@ +{{- with .GetTerms "tags" }} +<section class="post__tags" aria-labelledby="tags-heading"> + <h2 id="tags-heading" class="post__tags-heading"> + {{ lang.Translate "tags.name" | default "Tags" }} + </h2> + + <ul class="post__tags-list"> + {{- range . }} + <li class="post__tags-item"> + <a href="{{ .RelPermalink }}" class="post__tags-link" rel="tag"> + {{ .Title }} + </a> + </li> + {{- end }} + </ul> +</section> +{{- end }} |
