diff --git a/customizations/Dotawo/layouts/partials/header.html b/customizations/Dotawo/layouts/partials/header.html index 95c13fa..2eb2bba 100644 --- a/customizations/Dotawo/layouts/partials/header.html +++ b/customizations/Dotawo/layouts/partials/header.html @@ -40,6 +40,10 @@ {{ $editPage := $.Site.GetPage "/edit" }}
EDIT_THIS + {{ with $scratch.core }}ADD_{{ index . 0 | upper }}{{ end }} + {{ with $scratch.mantle }}ADD_{{ index . 0 | upper }}{{ end }} + {{ with $scratch.crust }}ADD_{{ index . 0 | upper }}{{ end }} + {{ if not $scratch.core }}ADD_{{ substr $currentDir 0 -1 | upper }}{{ end }}
{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 6d660fa..ae5a4c9 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -40,6 +40,11 @@ {{ $editPage := $.Site.GetPage "/edit" }}
EDIT_THIS + {{ with $scratch.core }}ADD_{{ index . 0 | upper }}{{ end }} + {{ with $scratch.mantle }}ADD_{{ index . 0 | upper }}{{ end }} + {{ with $scratch.crust }}ADD_{{ index . 0 | upper }}{{ end }} + {{ if not $scratch.core }}ADD_{{ substr $currentDir 0 -1 | upper }}{{ end }} +
{{ end }} diff --git a/layouts/partials/singlebody.html b/layouts/partials/singlebody.html index da21b22..c8d2c86 100644 --- a/layouts/partials/singlebody.html +++ b/layouts/partials/singlebody.html @@ -101,5 +101,5 @@ {{- $vld := false -}}{{- range $k, $v := .Page.Params.keywords -}}{{- if eq $k 0 -}}{{- $vld = true -}}
keywords⁄{{- $v -}}{{- else -}}, {{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}
{{- end -}} -{{ $var := printf "repo={\"frontmatter\": %s, \"content\": %s, \"path\": \"%s\" }" (jsonify .Params) (jsonify .RawContent) .File.Path .RelPermalink | resources.FromString (printf "js/repo/%s.js" .File.UniqueID) }} +{{ $var := printf "repo={\"frontmatter\": %s, \"content\": %s, \"path\": \"%s\", \"relpermalink\": \"%s\" }" (jsonify .Params) (jsonify .RawContent) .File.Path .RelPermalink | resources.FromString (printf "js/repo/%s.js" .File.UniqueID) }} {{ $dummy := $var.Permalink }}