Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
8
themes/docdock/layouts/partials/breadcrumb.html
Normal file
8
themes/docdock/layouts/partials/breadcrumb.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{{define "breadcrumb"}}
|
||||
{{ if .page.Parent}}
|
||||
{{$value := (printf "<a href='%s'>%s</a> > %s" .page.Parent.Permalink .page.Parent.Title .value)}}
|
||||
{{ template "breadcrumb" dict "page" .page.Parent "value" $value }}
|
||||
{{else}}
|
||||
{{.value|safeHTML}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user