Add breadcrumbs and cleanup writeup ui

This commit is contained in:
2024-11-22 00:52:19 +01:00
parent 0576d99b9d
commit e326ae01d7
17 changed files with 159 additions and 88 deletions
@@ -21,6 +21,9 @@
{{- $breadcrumbs = $breadcrumbs | append (dict "name" "Not Found" "url" (printf "%s%s" $.Site.BaseURL (strings.TrimLeft "/" $currentPath))) }}
{{- else }}
{{- $title := $page.Title }}
{{- with $page.Params.breadcrumb }}
{{- $title = . }}
{{- end }}
{{- if eq (trim $currentPath "/") $path }}
{{- $breadcrumbs = $breadcrumbs | append (dict "name" $visiblePage.Title "url" $visiblePage.Permalink) }}
{{- else }}