diff options
Diffstat (limited to 'layouts/partials/docs/html-head.html')
-rw-r--r-- | layouts/partials/docs/html-head.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 5fbc549..805c2b5 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -1,11 +1,14 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> -<title>{{- template "title" . }} | {{ .Site.Title -}}</title> +<title>{{ partial "docs/title" . }} | {{ .Site.Title -}}</title> -<!-- Theme stylesheet, you can customize scss by creatig `assets/custom.scss` in your website --> -{{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} +<!-- Theme stylesheet, you can customize scss by creating `assets/custom.scss` in your website --> +{{- $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} <link rel="stylesheet" href="{{ $styles.RelPermalink }}"> +{{- $search := resources.Get "search.js" | resources.ExecuteAsTemplate "search.js" . | resources.Minify | resources.Fingerprint }} +<script src="{{ $search.RelPermalink }}"></script> + <!-- Favicon --> <link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon"> |