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

@ -5,4 +5,9 @@
<link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet">
<link rel="stylesheet" href="{{ "normalize.min.css" | absURL }}">
{{ $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" }}
{{- if .Pages -}}
{{ $sections := split (trim .Dir "/") "/" }}