Skip to content

Commit

Permalink
add options for favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu committed Sep 26, 2022
1 parent 317ccae commit 5f5086b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layouts/partials/docs/html-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@

{{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }}
<link rel="manifest" href="{{ $manifest.RelPermalink }}">
<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon">
{{- if default false .Site.Params.BookFaviconPath -}}
<link rel="icon" href="{{ .Site.Params.BookFaviconPath | relURL }}" type="{{ .Site.Params.BookFaviconMimeType | relURL }}">
{{- else -}}
<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/png">
{{- end -}}

{{- range .Translations }}
<link rel="alternate" hreflang="{{ default .Language.Lang .Site.LanguageCode }}" href="{{ .Permalink }}" title="{{ partial "docs/title" . }}">
Expand Down

0 comments on commit 5f5086b

Please sign in to comment.