Extracting favicons to a separate partition.

This is needed to overriding in the client's code.
This commit is contained in:
Maksim Iakunin 2021-10-24 15:24:48 +03:00
parent ff9c340717
commit e67afd8157
No known key found for this signature in database
GPG Key ID: 629DE6EA48DAF1F4
2 changed files with 3 additions and 3 deletions

View File

@ -0,0 +1,2 @@
<link rel="icon" type="image/x-icon" href="{{ "favicon.ico" | absURL }}">
<link rel="apple-touch-icon-precomposed" href="{{ "favicon.png" | absURL }}">

View File

@ -11,9 +11,7 @@
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
<link rel="icon" type="image/x-icon" href="{{ "favicon.ico" | absURL }}">
<link rel="apple-touch-icon-precomposed" href="{{ "favicon.png" | absURL }}">
{{ partial "favicons.html" . }}
{{ partial "resource.html" (dict "context" . "type" "css" "filename" "css/main.css") }}
{{ range .Site.Params.customJS -}}