diff --git a/layouts/partials/breadcrumb.html b/layouts/partials/breadcrumb.html new file mode 100644 index 00000000000..0a008cb8723 --- /dev/null +++ b/layouts/partials/breadcrumb.html @@ -0,0 +1,35 @@ +{{- $topnavKey := .Param "topnav" | default "topnav" -}} +{{- $topnav := index hugo.Data $topnavKey | default hugo.Data.topnav -}} +{{- $sectionTitle := "" -}} +{{- $sectionURL := "" -}} +{{- range $entry := $topnav.topnav -}} + {{- range $item := $entry.items -}} + {{- $sectionSidebar := printf "%s_sidebar" ($item.section | default "") -}} + {{- if or (and $item.url (in $.RelPermalink $item.url)) (eq ($.Param "sidebar") $sectionSidebar) -}} + {{- $sectionTitle = $item.title -}} + {{- $sectionURL = $item.url -}} + {{- end -}} + {{- end -}} +{{- end -}} + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 00000000000..be793a0cc36 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,50 @@ + diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 00000000000..8e9470dc20a --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,89 @@ +{{- $siteTitle := site.Title -}} +{{- with site.Params.site_title }}{{ $siteTitle = . }}{{ end -}} +{{- $title := $siteTitle -}} +{{- if and .Title (not .IsHome) }}{{ $title = printf "%s | %s" .Title $siteTitle }}{{ end -}} +{{- $description := "" -}} +{{- with .Params.summary }}{{ $description = plainify . }}{{ else }}{{ with site.Params.description }}{{ $description = plainify . }}{{ end }}{{ end -}} + + +{{ with $description }}{{ end }} +{{ with .Params.tags }}{{ end }} + +