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

github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kaussow <mail@geeklabor.de>2021-09-27 23:47:13 +0300
committerGitHub <noreply@github.com>2021-09-27 23:47:13 +0300
commit4bfc17ac9d2fe11673b4fd2142a3c73711377aa4 (patch)
tree1f64ef7c6eb2e89e8cb0651e1439e0a4c5fbecc4 /exampleSite
parente5896900b4faa9ca10f4d32344cefe063c2d0ae7 (diff)
chore: normalize default favicons and add docs (#213)
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/content/features/theming/_index.md46
1 files changed, 46 insertions, 0 deletions
diff --git a/exampleSite/content/features/theming/_index.md b/exampleSite/content/features/theming/_index.md
index 482f32a..eb850fa 100644
--- a/exampleSite/content/features/theming/_index.md
+++ b/exampleSite/content/features/theming/_index.md
@@ -1,3 +1,11 @@
+---
+title: Theming
+---
+
+{{< toc >}}
+
+## Color Scheme
+
If you want to customize the theme's color scheme to give it your individual touch, you are only a few lines of CSS away. Generally, you need to override the default settings. The easiest way to do this is to create a file named `static/custom.css` right at the root of your site.
All the necessary CSS customization properties are listed below. If you want to customize elements that don't use these properties, you can always look up the class name and override it directly. For inspiration, you can also take a look at [https://www.color-hex.com/color-palettes/](https://www.color-hex.com/). In this simple example, we'll use the [_Beach_](https://www.color-hex.com/color-palette/895) color palette.
@@ -12,4 +20,42 @@ All the necessary CSS customization properties are listed below. If you want to
<!-- spellchecker-enable -->
<!-- prettier-ignore-end -->
+## Favicons
+
+The Theme is shipped with a set of default Favicons in various formats generated by a [Favicon Generator](https://realfavicongenerator.net/). All files can be found in the `static/favicon` folder of the release tarball. To make the replacement of the default Favicons as simple as possible, the theme loads only a very small subset of the Favicon formats.
+
+<!-- prettier-ignore -->
+```tpl
+<link rel="icon" type="image/svg+xml" href="{{ "favicon/favicon.svg" | relURL }}">
+<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon/favicon-32x32.png" | relURL }}">
+<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon/favicon-16x16.png" | relURL }}">
+```
+
+### Simple replacement
+
+The minimal steps to load a custom Favicon is to overwrite tree default Favicon files. Therefor place these files into your projects root folder:
+
+- `static/favicon/favicon.svg`
+- `static/favicon/favicon-32x32.png`
+- `static/favicon/favicon-16x16.png`
+
+### Full replacement
+
+If you want to add more Favicon formats you have to [overwrite](https://gohugo.io/templates/partials/#partial-template-lookup-order) the default partial that is used to load the files. In the next step you have to place the required files in the `static` folder of your project as well.
+
+**Example:**
+
+<!-- prettier-ignore -->
+```tpl
+<!-- layouts/partials/head/favicons.html -->
+<link rel="icon" type="image/svg+xml" href="{{ "favicon/favicon.svg" | relURL }}">
+<link rel="apple-touch-icon" sizes="180x180" href="{{ "favicon/apple-touch-icon.png" | relURL }}">
+<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon/favicon-32x32.png" | relURL }}">
+<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon/favicon-16x16.png" | relURL }}">
+<link rel="manifest" href="{{ "favicon/site.webmanifest" | relURL }}">
+<link rel="mask-icon" href="{{ "favicon/safari-pinned-tab.svg" | relURL }}" color="#2f333e">
+<meta name="msapplication-TileColor" content="#2f333e">
+<meta name="theme-color" content="#2f333e">
+```
+
Happy customizing!