mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2025-01-23 20:14:33 +00:00
Add favicon
This commit is contained in:
parent
aae39c13b3
commit
cf116ca468
|
@ -7,6 +7,8 @@
|
|||
{{ partial "style.html" "css/highlight.css" }}
|
||||
{{ partial "style.html" "css/font-awesome.css" }}
|
||||
|
||||
{{ partial "favicon.html" }}
|
||||
|
||||
<title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
|
|
8
layouts/partials/favicon.html
Normal file
8
layouts/partials/favicon.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{ $image := "/img/favicon.png" }}
|
||||
{{ $sizes := slice 16 32 64 100 200 }}
|
||||
|
||||
{{ range $sizes }}
|
||||
{{ $sizes := printf "%dx%d" . . }}
|
||||
<link rel="icon" type="image/png" sizes="{{ $sizes }}"
|
||||
href='{{ ((resources.Get $image | fingerprint).Resize $sizes).RelPermalink }}'>
|
||||
{{ end }}
|
|
@ -7,7 +7,7 @@ rm -rf "$OUTPUT_DIR"
|
|||
mkdir -p "$STATIC_BUILD"
|
||||
|
||||
mkdir -p "$STATIC_BUILD/img"
|
||||
#cp -r "$STATIC_SRC/img"/* "$STATIC_BUILD/img"
|
||||
cp -r "$STATIC_SRC/img"/* "$STATIC_BUILD/img"
|
||||
|
||||
mkdir -p "$STATIC_BUILD/js"
|
||||
# cp -r "$STATIC_SRC/js"/* "$STATIC_BUILD/js"
|
||||
|
|
BIN
static/src/img/favicon.png
Normal file
BIN
static/src/img/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 108 KiB |
Loading…
Reference in a new issue