diff options
author | Dmitry Kolosov <Mitrichius@users.noreply.github.com> | 2021-10-25 08:57:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-25 08:57:32 +0300 |
commit | fd6a2df13601606e7f3e270ca810c278bba028c1 (patch) | |
tree | fbff292f91c8be41b072eb8f9739a98f8701e60d | |
parent | ff9c34071715f718461022b3479d06850c0c0e9a (diff) | |
parent | e67afd8157670e8cd178b54b9dc3e22c286fb3df (diff) |
Merge pull request #110 from iakunin/2021-10-24_extracting_favicons_partial1.2.4
Extracting favicons to a separate partition.
-rw-r--r-- | layouts/partials/favicons.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/favicons.html b/layouts/partials/favicons.html new file mode 100644 index 0000000..bb271a1 --- /dev/null +++ b/layouts/partials/favicons.html @@ -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 }}"> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a8253b9..6fd87a9 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -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 -}} |