fix some defaults and formatting
parent
f2e64a6864
commit
c93dafdece
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
|
|
||||||
<div class="gdoc-page__footer flex flex-wrap justify-between">
|
<div class="gdoc-page__footer flex flex-wrap justify-between">
|
||||||
{{ $showPrevNext := (and (not .Site.Params.GeekdocNextPrev) .Site.Params.GeekdocMenuBundle) }}
|
{{ $showPrevNext := (and (default true .Site.Params.GeekdocNextPrev) .Site.Params.GeekdocMenuBundle) }}
|
||||||
{{ if $showPrevNext }}
|
{{ if $showPrevNext }}
|
||||||
<span>
|
<span>
|
||||||
{{ with ($current.Scratch.Get "prevPage") }}
|
{{ with ($current.Scratch.Get "prevPage") }}
|
||||||
|
|
|
@ -6,20 +6,20 @@
|
||||||
{{ $.Scratch.Set "geekdocFilePath" false }}
|
{{ $.Scratch.Set "geekdocFilePath" false }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{define "breadcrumb"}}
|
{{ define "breadcrumb" }}
|
||||||
{{$parent := .page.Parent }}
|
{{$parent := .page.Parent }}
|
||||||
{{ if $parent }}
|
{{ if $parent }}
|
||||||
{{ $value := (printf "<a href='%s'>%s</a> / %s" $parent.RelPermalink $parent.Title .value) }}
|
{{ $value := (printf "<a href='%s'>%s</a> / %s" $parent.RelPermalink $parent.Title .value) }}
|
||||||
{{ template "breadcrumb" dict "page" $parent "value" $value }}
|
{{ template "breadcrumb" dict "page" $parent "value" $value }}
|
||||||
{{else}}
|
{{ else }}
|
||||||
{{.value|safeHTML}}
|
{{ .value | safeHTML }}
|
||||||
{{end}}
|
{{ end }}
|
||||||
{{end}}
|
{{ end }}
|
||||||
|
|
||||||
<div class="gdoc-page__header flex flex-wrap justify-between{{ if not $geekdocRepo }} hidden-mobile{{ end }}" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
|
<div class="gdoc-page__header flex flex-wrap justify-between{{ if not $geekdocRepo }} hidden-mobile{{ end }}" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
|
||||||
{{$showBreadcrumb := (and (not .Page.Params.geekdocBreadcrumb) (not .Site.Params.geekdocBreadcrumb))}}
|
{{ $showBreadcrumb := (and (default true .Page.Params.geekdocBreadcrumb) (default true .Site.Params.geekdocBreadcrumb)) }}
|
||||||
<span>
|
<span>
|
||||||
{{if $showBreadcrumb}}
|
{{if $showBreadcrumb }}
|
||||||
<span class="breadcrumb">
|
<span class="breadcrumb">
|
||||||
<svg class="icon path"><use xlink:href="#path"></use></svg>
|
<svg class="icon path"><use xlink:href="#path"></use></svg>
|
||||||
{{ $name := (partial "title" .) }}
|
{{ $name := (partial "title" .) }}
|
||||||
|
|
Loading…
Reference in New Issue