Add reference to theme as html comment in head

This commit is contained in:
Alex Shpak 2019-02-12 15:44:36 +01:00
parent 21b245b465
commit 82b4d3212c
2 changed files with 7 additions and 2 deletions

View file

@ -6,3 +6,8 @@
<link rel="stylesheet" href="{{ "normalize.min.css" | absURL }}"> <link rel="stylesheet" href="{{ "normalize.min.css" | absURL }}">
{{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} {{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}"> <link rel="stylesheet" href="{{ $styles.RelPermalink }}">
{{ "<!--" | safeHTML }}
Made with Book Theme
https://github.com/alex-shpak/hugo-book
{{ "-->" | safeHTML }}

View file

@ -1,4 +1,4 @@
<!-- These templates contains some more complex logic and shared between partials--> {{/*These templates contains some more complex logic and shared between partials*/}}
{{ define "title" }} {{ define "title" }}
{{- if .Pages -}} {{- if .Pages -}}
{{ $sections := split (trim .Dir "/") "/" }} {{ $sections := split (trim .Dir "/") "/" }}