2019-04-22 19:17:39 +02:00
|
|
|
{{ template "hrefhack" . }}
|
2018-09-12 14:36:16 +02:00
|
|
|
{{ with .Site.GetPage .Site.Params.BookMenuBundle }}
|
|
|
|
{{- .Content -}}
|
2019-02-20 00:28:16 +01:00
|
|
|
{{ end }}
|
2019-07-15 18:25:21 +02:00
|
|
|
|
|
|
|
{{ define "hrefhack" }}
|
|
|
|
{{ $attrEq := "$=" }}
|
|
|
|
{{ $attrVal := .RelPermalink }}
|
|
|
|
{{ if eq .RelPermalink "/" }}
|
|
|
|
{{ $attrEq = "=" }}
|
|
|
|
{{ $attrVal = .Permalink }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<style>
|
|
|
|
nav ul a[href{{ $attrEq }}"{{ $attrVal }}"] {
|
|
|
|
color: {{ default "#004ed0" .Site.Params.BookMenuBundleActiveLinkColor }};
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{{ end }}
|