mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-24 20:33:00 +00:00
Update favicon, move to separate shortcode for customization
This commit is contained in:
parent
e585c86a81
commit
69886cc74b
@ -1,7 +1,7 @@
|
|||||||
<h2 class="book-brand">
|
<h2 class="book-brand">
|
||||||
<a class="flex align-center" href="{{ cond (not .Site.Home.File) .Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
|
<a class="flex align-center" href="{{ cond (not .Site.Home.File) .Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
|
||||||
{{- with .Site.Params.BookLogo -}}
|
{{- with .Site.Params.BookLogo -}}
|
||||||
<img src="{{ . | relURL }}" alt="Logo" />
|
<img src="{{ . | relURL }}" alt="Logo" class="book-icon" />
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<span>{{ .Site.Title }}</span>
|
<span>{{ .Site.Title }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
1
layouts/partials/docs/html-head-favicon.html
Normal file
1
layouts/partials/docs/html-head-favicon.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<link rel="icon" href="{{ .Site.Params.BookFavicon | default "favicon.png" | relURL }}" >
|
@ -12,10 +12,10 @@
|
|||||||
{{- template "_internal/opengraph.html" . -}}
|
{{- template "_internal/opengraph.html" . -}}
|
||||||
|
|
||||||
<title>{{ partial "docs/html-head-title" . }}</title>
|
<title>{{ partial "docs/html-head-title" . }}</title>
|
||||||
|
{{ partial "docs/html-head-favicon" . }}
|
||||||
|
|
||||||
{{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }}
|
{{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }}
|
||||||
<link rel="manifest" href="{{ $manifest.RelPermalink }}">
|
<link rel="manifest" href="{{ $manifest.RelPermalink }}">
|
||||||
<link rel="icon" href="{{ .Site.Params.BookFavicon | default "favicon.png" | relURL }}" >
|
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
|
||||||
{{- range .Translations }}
|
{{- range .Translations }}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 2.5 KiB |
@ -1 +1 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 18h12v-2H3v2zM3 6v2h18V6H3zm0 7h18v-2H3v2z"/></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M480-160q-48-38-104-59t-116-21q-42 0-82.5 11T100-198q-21 11-40.5-1T40-234v-482q0-11 5.5-21T62-752q46-24 96-36t102-12q58 0 113.5 15T480-740v484q51-32 107-48t113-16q36 0 70.5 6t69.5 18v-480q15 5 29.5 10.5T898-752q11 5 16.5 15t5.5 21v482q0 23-19.5 35t-40.5 1q-37-20-77.5-31T700-240q-60 0-116 21t-104 59Zm80-200v-380l200-200v400L560-360Zm-160 65v-396q-33-14-68.5-21.5T260-720q-37 0-72 7t-68 21v397q35-13 69.5-19t70.5-6q36 0 70.5 6t69.5 19Zm0 0v-396 396Z"/></svg>
|
Before Width: | Height: | Size: 185 B After Width: | Height: | Size: 559 B |
Loading…
Reference in New Issue
Block a user