diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-02 02:36:22 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-02 02:36:22 +0200 |
| commit | 78715c75ea29590e916872fe0a2bd2ce77f28e85 (patch) | |
| tree | ce0d65671fabe94d849af40d1b0dfe0eb52aaa5a /layouts/partials/head.html | |
| parent | 0058daddb6e89856ac30d41675c36980f5290a46 (diff) | |
| download | gohugo-theme-ed-78715c75ea29590e916872fe0a2bd2ce77f28e85.tar.gz | |
Rework icons
Diffstat (limited to 'layouts/partials/head.html')
| -rw-r--r-- | layouts/partials/head.html | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index fe1a261..7d06d79 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,13 +19,16 @@ {{ partial "styles.html" . -}} {{ partial "scripts.html" . -}} - <link rel="apple-touch-icon-precomposed" sizes="180x180" href="{{ "apple-touch-icon-precomposed.png" | relURL }}"> - <link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}"> + {{- /* Favicons */}} + <link rel="icon" href="{{ site.Params.assets.favicon | default "favicon.ico" | relURL }}" sizes="any"><!-- 32×32 --> + <link rel="icon" href="{{ site.Params.assets.svgicon | default "icon.svg" | relURL }}" type="image/svg+xml"> + <link rel="apple-touch-icon" href="{{ site.Params.assets.apple_touch_icon | default "apple-touch-icon.png" | relURL }}"><!-- 180×180 --> + <link rel="manifest" href="{{ site.Params.assets.webmanifest | default "manifest.webmanifest" | relURL }}"> {{- /* RSS */}} - {{ range .AlternativeOutputFormats -}} + {{ range .AlternativeOutputFormats }} <link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" title="{{ $.Site.Title }}" href="{{ .Permalink | safeURL }}"> - {{ end -}} + {{- end -}} {{- range .AllTranslations -}} <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}"> {{ end -}} |
