head: support favicon custom path

usage =>
params:
  assets:
    favicon: '<path / external url>'

closes #14
This commit is contained in:
Aditya Telange 2020-10-04 15:09:50 +05:30
parent d8199140e5
commit 8cab9c9de5
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -39,7 +39,7 @@
{{- end -}} {{- end -}}
<!-- Favicons --> <!-- Favicons -->
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}"> <link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">
<link rel="icon" href="{{ "favicon.ico" | absURL }}"> <link rel="icon" href="{{ .Site.Params.assets.favicon | default "favicon.ico" | absURL }}">
<!-- Generator --> <!-- Generator -->
{{- hugo.Generator }} {{- hugo.Generator }}
<!-- RSS --> <!-- RSS -->