From c70433585a18d8a382bf70998a084b415430eac9 Mon Sep 17 00:00:00 2001 From: glaszig Date: Thu, 1 Aug 2019 15:37:27 +0200 Subject: [PATCH] move all other favicon-types into dist/icons folder, point to icons via link and meta tags, leave favicon.ico in root old browsers, added custom jekyll layout file to use the icons for the project website as well. https://help.github.com/en/articles/customizing-css-and-html-in-your-jekyll-theme https://github.com/pages-themes/minimal/blob/master/_layouts/default.html https://stackoverflow.com/a/48969053 --- _layouts/default.html | 74 ++++++++++++++++++ .../icons/android-chrome-192x192.png | Bin .../icons/apple-touch-icon.png | Bin .../icons/browserconfig.xml | 0 .../icons/favicon-16x16.png | Bin .../icons/favicon-32x32.png | Bin favicon.png => dist/icons/favicon.png | Bin dist/icons/site.webmanifest | 2 +- index.php | 12 +-- 9 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 _layouts/default.html rename android-chrome-192x192.png => dist/icons/android-chrome-192x192.png (100%) rename apple-touch-icon.png => dist/icons/apple-touch-icon.png (100%) rename browserconfig.xml => dist/icons/browserconfig.xml (100%) rename favicon-16x16.png => dist/icons/favicon-16x16.png (100%) rename favicon-32x32.png => dist/icons/favicon-32x32.png (100%) rename favicon.png => dist/icons/favicon.png (100%) diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 00000000..14d02718 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + +{% seo %} + + + + +
+
+

{{ site.title | default: site.github.repository_name }}

+ + {% if site.logo %} + Logo + {% endif %} + +

{{ site.description | default: site.github.project_tagline }}

+ + {% if site.github.is_project_page %} +

View the Project on GitHub {{ site.github.repository_nwo }}

+ {% endif %} + + {% if site.github.is_user_page %} +

View My GitHub Profile

+ {% endif %} + + {% if site.show_downloads %} + + {% endif %} +
+
+ + {{ content }} + +
+ +
+ + {% if site.google_analytics %} + + {% endif %} + + diff --git a/android-chrome-192x192.png b/dist/icons/android-chrome-192x192.png similarity index 100% rename from android-chrome-192x192.png rename to dist/icons/android-chrome-192x192.png diff --git a/apple-touch-icon.png b/dist/icons/apple-touch-icon.png similarity index 100% rename from apple-touch-icon.png rename to dist/icons/apple-touch-icon.png diff --git a/browserconfig.xml b/dist/icons/browserconfig.xml similarity index 100% rename from browserconfig.xml rename to dist/icons/browserconfig.xml diff --git a/favicon-16x16.png b/dist/icons/favicon-16x16.png similarity index 100% rename from favicon-16x16.png rename to dist/icons/favicon-16x16.png diff --git a/favicon-32x32.png b/dist/icons/favicon-32x32.png similarity index 100% rename from favicon-32x32.png rename to dist/icons/favicon-32x32.png diff --git a/favicon.png b/dist/icons/favicon.png similarity index 100% rename from favicon.png rename to dist/icons/favicon.png diff --git a/dist/icons/site.webmanifest b/dist/icons/site.webmanifest index 8242651f..321ab7db 100644 --- a/dist/icons/site.webmanifest +++ b/dist/icons/site.webmanifest @@ -3,7 +3,7 @@ "short_name": "RaspAP", "icons": [ { - "src": "/android-chrome-192x192.png", + "src": "/dist/icons/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" } diff --git a/index.php b/index.php index fd74dc60..df096b93 100755 --- a/index.php +++ b/index.php @@ -91,12 +91,14 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES); - - - - + + + + + - + +