From 631547a75142326a7c71bdf123e1475217a5ad73 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 22 Apr 2026 12:42:56 +0200 Subject: chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme) --- layouts/articles/single.html | 50 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 layouts/articles/single.html (limited to 'layouts/articles') diff --git a/layouts/articles/single.html b/layouts/articles/single.html new file mode 100644 index 0000000..e646639 --- /dev/null +++ b/layouts/articles/single.html @@ -0,0 +1,50 @@ +{{ define "main" }} +{{ $articleType := .Params.type | default "life" }} +{{ $template := printf "article-types/%s.html" $articleType }} +
+
+ +
+ + {{ partial "article-nav.html" (dict "page" . "variant" "top") }} + + + {{ partial "breadcrumb.html" . }} + + + {{ partial "article-header.html" . }} + + + {{ partial $template . }} + + + {{ if .Params.tags }} +
+

{{ i18n "tags" }}

+
+ {{ $lang := .Lang }} + {{ range .Params.tags }} + {{ $tagUrl := printf "/tags/%s/" (. | urlize) }} + {{ if eq $lang "it" }} + {{ $tagUrl = printf "/it/tags/%s/" (. | urlize) }} + {{ end }} + + {{ . }} + + {{ end }} +
+
+ {{ end }} + + + {{ partial "article-nav.html" (dict "page" . "variant" "bottom") }} +
+ + + {{ partial "sidebar.html" . }} +
+
+{{ end }} -- cgit v1.2.3