diff options
Diffstat (limited to 'themes/danix-xyz-hacker/layouts')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/articles/single.html | 3 | ||||
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/partials/breadcrumb.html | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/articles/single.html b/themes/danix-xyz-hacker/layouts/articles/single.html index fe2ff6e..4e97fb3 100644 --- a/themes/danix-xyz-hacker/layouts/articles/single.html +++ b/themes/danix-xyz-hacker/layouts/articles/single.html @@ -5,6 +5,9 @@ <div class="grid md:grid-cols-3 gap-8 max-w-7xl mx-auto content-grid"> <!-- Article section --> <div class="md:col-span-2"> + <!-- Breadcrumb --> + {{ partial "breadcrumb.html" . }} + <!-- Article header --> {{ partial "article-header.html" . }} diff --git a/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html b/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html new file mode 100644 index 0000000..f2f794f --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html @@ -0,0 +1,20 @@ +<nav class="breadcrumb mb-6" aria-label="Breadcrumb"> + {{ $currentLang := .Page.Language }} + + <!-- Home link --> + <a href="/">Home</a> + <span class="breadcrumb-separator">/</span> + + <!-- Articles section --> + {{ if eq .Page.Type "article" }} + {{ if eq $currentLang "it" }} + <a href="/it/articles/">{{ i18n "articles" }}</a> + {{ else }} + <a href="/articles/">{{ i18n "articles" }}</a> + {{ end }} + <span class="breadcrumb-separator">/</span> + + <!-- Current article title --> + <span>{{ .Page.Title }}</span> + {{ end }} +</nav> |
