Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wayjam/hugo-theme-mixedpaper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayJam So <imsuwj@gmail.com>2020-05-16 15:52:24 +0300
committerWayJam So <imsuwj@gmail.com>2020-05-16 15:52:24 +0300
commitce105d62c5c45dbe7a94a134e23749effe3be3cc (patch)
tree3b7ac1d8ccc4d861bc369dd800d660256a2b6603
parentf7a7c12e1430becb9fce6c33c73579620ed5b787 (diff)
fix: favicon
-rw-r--r--layouts/partials/head.html54
-rw-r--r--static/android-chrome-192x192.pngbin0 -> 10264 bytes
-rw-r--r--static/apple-touch-icon.pngbin0 -> 6238 bytes
-rw-r--r--static/favicon-16x16.pngbin0 -> 1000 bytes
-rw-r--r--static/favicon-32x32.pngbin0 -> 1648 bytes
-rw-r--r--static/favicon.icobin0 -> 15086 bytes
-rw-r--r--static/manifest.json14
7 files changed, 43 insertions, 25 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 919827d..1b9021a 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,32 +1,36 @@
<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="format-detection" content="telephone=no"/>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="format-detection" content="telephone=no" />
- <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
- <!-- Icons -->
- <link rel="shortcut icon" href="{{ `favicon.ico` | absURL }}" type="image/x-icon">
- <meta name="theme-color" content="#ffffff">
+ <title>
+ {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}
+ </title>
- <!-- Styles -->
+ <!-- Icons -->
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ `apple-touch-icon.png` | relURL }}" />
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ `favicon-32x32.png` | relURL }}" />
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ `favicon-16x16.png` | relURL }}" />
+ <link rel="manifest" href="{{ `manifest.json | relURL` }}" />
+ <meta name="theme-color" content="#ffffff" />
- <!-- Reset -->
- <link rel="stylesheet" href="https://unpkg.com/modern-normalize@0.6.0/modern-normalize.css"/>
+ <!-- Reset -->
+ <link
+ rel="stylesheet"
+ href="https://unpkg.com/modern-normalize@0.6.0/modern-normalize.css"
+ />
- <!-- Use Hugo Pipes to process the Sass file (convert to CSS, minify, and add a hash) -->
- {{ $base_style := resources.Get "css/basic.scss" | toCSS | minify | fingerprint }}
- {{ $main_style := resources.Get "css/main.scss" | toCSS | minify | fingerprint }}
- <link rel="stylesheet" href="{{ $base_style.Permalink }}"/>
- <link rel="stylesheet" href="{{ $main_style.Permalink }}"/>
+ <!-- Use Hugo Pipes to process the Sass file (convert to CSS, minify, and add a hash) -->
+ {{ $base_style := resources.Get "css/basic.scss" | toCSS | minify | fingerprint }}
+ {{ $main_style := resources.Get "css/main.scss" | toCSS | minify | fingerprint }}
+ <link rel="stylesheet" href="{{ $base_style.Permalink }}" />
+ <link rel="stylesheet" href="{{ $main_style.Permalink }}" />
- <!-- Modify the custom.css file inside static > css to use vanilla css -->
- <!-- <link type="text/css" rel="stylesheet" href="{{ "/" | relURL }}css/custom.css"> -->
-
- {{ with .OutputFormats.Get "RSS" }}
- {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
- {{ end }}
- {{- if not .Site.IsServer -}}
- {{ template "_internal/google_analytics.html" . }}
- {{- end -}}
+ {{ with .OutputFormats.Get "RSS" }}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end }}
+ {{ if not .Site.IsServer }}
+ {{ template "_internal/google_analytics.html" . }}
+ {{ end }}
</head>
diff --git a/static/android-chrome-192x192.png b/static/android-chrome-192x192.png
new file mode 100644
index 0000000..7ab6c38
--- /dev/null
+++ b/static/android-chrome-192x192.png
Binary files differ
diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png
new file mode 100644
index 0000000..ecf1fc0
--- /dev/null
+++ b/static/apple-touch-icon.png
Binary files differ
diff --git a/static/favicon-16x16.png b/static/favicon-16x16.png
new file mode 100644
index 0000000..c62ce6f
--- /dev/null
+++ b/static/favicon-16x16.png
Binary files differ
diff --git a/static/favicon-32x32.png b/static/favicon-32x32.png
new file mode 100644
index 0000000..57a018e
--- /dev/null
+++ b/static/favicon-32x32.png
Binary files differ
diff --git a/static/favicon.ico b/static/favicon.ico
new file mode 100644
index 0000000..dc007a9
--- /dev/null
+++ b/static/favicon.ico
Binary files differ
diff --git a/static/manifest.json b/static/manifest.json
new file mode 100644
index 0000000..7cd4850
--- /dev/null
+++ b/static/manifest.json
@@ -0,0 +1,14 @@
+{
+ "name": "Hugo",
+ "short_name": "",
+ "icons": [
+ {
+ "src": "/android-chrome-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ }
+ ],
+ "theme_color": "#ffffff",
+ "background_color": "#ffffff",
+ "display": "standalone"
+}