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

github.com/eshlox/simplicity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBennet Blischke <benne.blischket@haw-hamburg.de>2019-05-17 00:33:32 +0300
committerBennet Blischke <benne.blischket@haw-hamburg.de>2019-05-17 19:03:20 +0300
commit7e5a0ba57380f5c5549a2391f18503e004200f37 (patch)
treeb16c5ec6d8b02efdeb88385b1147f7eb3856328d
parent38c6713da34d4d11409fea7149ee5b0131d0330b (diff)
fix(favicons) not showing up, fixing with hugo pipes
-rw-r--r--README.md2
-rw-r--r--layouts/partials/head.html6
2 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index b4c0538..855992f 100644
--- a/README.md
+++ b/README.md
@@ -122,7 +122,7 @@ Copy `config.toml` from `exampleSite` to the root directory of your Hugo site an
### favicons
-This theme contains default favicon with `S` letter. If you want to change it, create a directory `static/assets/img` inside the root of your Hugo site and put your favicon files there. They should have names: `favicon.ico` and `apple-touch-icon.png`.
+This theme contains default favicon with `S` letter. If you want to change it, create a directory `assets/src/images` inside the root of your Hugo site and put your favicon files there. They should have names: `favicon.ico` and `apple-touch-icon.png`.
## Shortcodes
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 25077b4..b0773a2 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -21,8 +21,10 @@
<link href="//fonts.googleapis.com/css?family=Roboto:400" rel="stylesheet">
<!-- Icons -->
- <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ print "/assets/img/apple-touch-icon.png" | relURL }}">
- <link rel="shortcut icon" href="{{ print "/assets/img/favicon.ico" | relURL }}">
+ {{ $touchicon := resources.Get "/src/images/apple-touch-icon.png" }}
+ {{ $favicon := resources.Get "/src/images/favicon.ico" }}
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ $touchicon.RelPermalink }}">
+ <link rel="shortcut icon" href="{{ $favicon.RelPermalink }}">
<!-- RSS -->
<link href="{{ $.LanguagePrefix }}{{ "/posts/index.xml" | relURL }}" rel="alternate" type="application/rss+xml" title="{{- .Site.Title -}}" />