From 78715c75ea29590e916872fe0a2bd2ce77f28e85 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 2 May 2022 02:36:22 +0200 Subject: Rework icons --- .gitattributes | 2 ++ exampleSite/config.toml | 7 +++++++ layouts/partials/head.html | 11 +++++++---- layouts/partials/sidebar.html | 2 +- static/apple-touch-icon-precomposed.png | Bin 4380 -> 0 bytes static/apple-touch-icon.png | Bin 0 -> 4325 bytes static/icon-192.png | Bin 0 -> 4677 bytes static/icon-512.png | Bin 0 -> 12775 bytes static/icon.svg | 27 +++++++++++++++++++++++++++ static/img/open-graph-logo.png | Bin 10976 -> 5229 bytes static/manifest.webmanifest | 8 ++++++++ 11 files changed, 52 insertions(+), 5 deletions(-) delete mode 100644 static/apple-touch-icon-precomposed.png create mode 100644 static/apple-touch-icon.png create mode 100644 static/icon-192.png create mode 100644 static/icon-512.png create mode 100644 static/icon.svg create mode 100644 static/manifest.webmanifest diff --git a/.gitattributes b/.gitattributes index e08f3e8..723031e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,5 +18,7 @@ go.sum export-ignore exampleSite/** linguist-vendored resources/_gen/** linguist-vendored +*.webmanifest diff=json linguist-language=JSON + LICENSE text eol=lf README.md text eol=lf diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9b1e783..e2f57b1 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -25,6 +25,13 @@ defaultContentLanguage = "en" # Used in site header tagline = "a Hugo theme for minimal editions" + [params.assets] + # Relative paths to icons + favicon = "" # favicon.ico for legacy browsers + svgicon = "" # A single SVG icon with a light/dark version for modern browsers + apple_touch_icon = "" # 180×180 PNG image for Apple devices + webmanifest = "" # Web app manifest with 192×192 and 512×512 PNG icons for modern browsers + [social] # Facebook Page Admin ID for Domain Insights facebook_admin = "" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index fe1a261..7d06d79 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,13 +19,16 @@ {{ partial "styles.html" . -}} {{ partial "scripts.html" . -}} - - + {{- /* Favicons */}} + + + + {{- /* RSS */}} - {{ range .AlternativeOutputFormats -}} + {{ range .AlternativeOutputFormats }} - {{ end -}} + {{- end -}} {{- range .AllTranslations -}} {{ end -}} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 92f0897..f46c663 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -15,7 +15,7 @@ {{- range site.Menus.nav }} {{- $active := or ($current.IsMenuCurrent "nav" .) ($current.HasMenuCurrent "nav" .) }} {{- $active = or $active (eq .Name $current.Title) }} - + {{- $text := print .Name | safeHTML -}} {{- $text -}} diff --git a/static/apple-touch-icon-precomposed.png b/static/apple-touch-icon-precomposed.png deleted file mode 100644 index 2c4f797..0000000 Binary files a/static/apple-touch-icon-precomposed.png and /dev/null differ diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png new file mode 100644 index 0000000..24cdee9 Binary files /dev/null and b/static/apple-touch-icon.png differ diff --git a/static/icon-192.png b/static/icon-192.png new file mode 100644 index 0000000..80d0761 Binary files /dev/null and b/static/icon-192.png differ diff --git a/static/icon-512.png b/static/icon-512.png new file mode 100644 index 0000000..80816cf Binary files /dev/null and b/static/icon-512.png differ diff --git a/static/icon.svg b/static/icon.svg new file mode 100644 index 0000000..389dc3c --- /dev/null +++ b/static/icon.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/img/open-graph-logo.png b/static/img/open-graph-logo.png index 368939a..df93da6 100644 Binary files a/static/img/open-graph-logo.png and b/static/img/open-graph-logo.png differ diff --git a/static/manifest.webmanifest b/static/manifest.webmanifest new file mode 100644 index 0000000..a2ecebf --- /dev/null +++ b/static/manifest.webmanifest @@ -0,0 +1,8 @@ +{ + "short_name": "Ed.", + "name": "Ed: a Hugo theme for minimal editions", + "icons": [ + { "src": "/icon-192.png", "type": "image/png", "sizes": "192x192" }, + { "src": "/icon-512.png", "type": "image/png", "sizes": "512x512" } + ] +} -- cgit v1.2.3