mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
29 lines
752 B
HTML
29 lines
752 B
HTML
{{ $styles := resources.Get "css/partials/breadcrumb.css" | toCSS | minify }}
|
|
|
|
<link rel="stylesheet" href="{{ $styles.Permalink }}" />
|
|
|
|
<nav aria-label="breadcrumb" class="breadcrumb">
|
|
<ol>
|
|
{{ range .Ancestors.Reverse }}
|
|
{{ if (eq .Title "Tags") }}
|
|
<li>
|
|
<a href="{{ urls.JoinPath .Site.BaseURL "blog" }}">Blog</a>
|
|
</li>
|
|
{{ else }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
<li class="active">
|
|
<a
|
|
aria-current="page"
|
|
class="{{ if (eq .Parent.Title "Tags") }}tag{{ end }}"
|
|
href="{{ .Permalink }}"
|
|
>
|
|
{{ if (eq .Parent.Title "Tags") }}#{{ end }}{{ .Title }}
|
|
</a>
|
|
</li>
|
|
</ol>
|
|
</nav>
|