summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/partials/breadcrumb.html')
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/breadcrumb.html20
1 files changed, 20 insertions, 0 deletions
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>