From eb67ab58aa0e083729a4b4906b2522842ccf4954 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Wed, 20 Feb 2019 10:37:48 +0100 Subject: Refactor theme to use relative urls everywhere --- layouts/partials/docs/git-footer.html | 4 ++-- layouts/partials/docs/html-head.html | 2 +- layouts/partials/docs/mobile-header.html | 2 +- layouts/partials/docs/shared.html | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'layouts/partials/docs') diff --git a/layouts/partials/docs/git-footer.html b/layouts/partials/docs/git-footer.html index b9bcd39..1fc589d 100644 --- a/layouts/partials/docs/git-footer.html +++ b/layouts/partials/docs/git-footer.html @@ -3,14 +3,14 @@ {{ with .GitInfo }}
- {{ .AuthorDate.Local.Format "Last Modified Jan 2, 2006" }} + {{ .AuthorDate.Local.Format "Last Modified Jan 2, 2006" }}
{{ end }} {{ with .Site.Params.BookEditPath }}
- Edit this page + Edit this page
{{ end }} diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index b15fe78..5d6f1c1 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -3,7 +3,7 @@ {{- template "title" . }} | {{ .Site.Title -}} - + {{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} diff --git a/layouts/partials/docs/mobile-header.html b/layouts/partials/docs/mobile-header.html index 7ddd06d..7febbad 100644 --- a/layouts/partials/docs/mobile-header.html +++ b/layouts/partials/docs/mobile-header.html @@ -1,6 +1,6 @@
{{- template "title" . }}
diff --git a/layouts/partials/docs/shared.html b/layouts/partials/docs/shared.html index 923545a..ec303f5 100644 --- a/layouts/partials/docs/shared.html +++ b/layouts/partials/docs/shared.html @@ -1,5 +1,5 @@ {{/*These templates contains some more complex logic and shared between partials*/}} -{{ define "title" }} +{{- define "title" -}} {{- if .Pages -}} {{ $sections := split (trim .Dir "/") "/" }} {{ $title := index ($sections | last 1) 0 | humanize | title }} @@ -8,9 +8,9 @@ {{ $title := .File | humanize | title }} {{- default $title .Title -}} {{- end -}} -{{ end }} +{{- end -}} -{{ define "hrefhack" }} +{{- define "hrefhack" -}} {{ $attrEq := "$=" }} {{ $attrVal := .RelPermalink }} {{ if eq .RelPermalink "/" }} @@ -23,9 +23,9 @@ color: {{ default "#004ed0" .Site.Params.BookMenuBundleActiveLinkColor }}; } -{{ end }} +{{- end -}} -{{ define "jsmenu" }} +{{- define "jsmenu" -}} -{{ end }} \ No newline at end of file +{{- end -}} \ No newline at end of file -- cgit v1.2.3