Selaa lähdekoodia

Updated favicon to support alternative file names and paths (#81)

Chip Senkbeil 7 vuotta sitten
vanhempi
commit
f83b230aa2
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      layouts/_default/baseof.html

+ 2 - 2
layouts/_default/baseof.html

@@ -44,8 +44,8 @@
       <link rel="stylesheet" href="{{ . | absURL }}">
     {{ end }}
 
-    <link rel="icon" type="image/png" href="{{ "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
-    <link rel="icon" type="image/png" href="{{ "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
+    <link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
+    <link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
 
     {{ if .RSSLink }}
       <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />