From 43a3d45c9ffa0c7f8a4ecef37dc46e4d514eeb6c Mon Sep 17 00:00:00 2001 From: Michael T Lombardi Date: Fri, 3 Aug 2018 13:09:11 -0500 Subject: [PATCH] (#6) Add solution for favicon (#189) Prior to this commit the favicon for a castanet site was not set by the theme. This commit adds a tag for the favicon to the header partial, defaulting to `icons/favicon.ico` but allowing an override in the site configuration. Resolves #6 Signed-off-by: Michael T Lombardi --- REFERENCE.md | 1 + layouts/partials/head_includes.html | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/REFERENCE.md b/REFERENCE.md index e1590dd2..fab9d2f2 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -46,6 +46,7 @@ These should be set under the `[params]` section: | `truncate` | No | The number of characters to truncate the summary on the row layout. This can be overridden per-episode as well. The default value (if not set) is 600 characters. | "700" | | `custom_css` | No | Array of custom CSS files for over-riding theme settings or adding your own classes. These files should be put into your `static` directory (not the `static` directory of the theme). | ["custom.css", "other_custom.css"] | | `about_logo` | No | The logo (250px x 250px) you would like to appear on your About page. If not set, this will default to your iTunes image. This path should be relative to your main URL, for example, a file put in your `static` directory. This path should not start with a `/`. | "img/my_logo.png" | +| `favicon` | No | The favicon file you would like to use for your site. If not set, this will default to the file `icons/favicon.ico`. This file should be put into your static directory (not the `static` directory of the theme). | "icon/favicon_x32.png" | | `copyright_notice` | Yes | Your copyright information for the footer of the page. Can contain Markdown. | `"Copyright 2016 [Matt Stratton](https://www.mattstrattion.io)"` | | `itunes_subscribe` | No | The URL of your podcast in the iTunes store. | "http://itunes.apple.com/us/podcast/arrested-devops/id773888088?mt=2&uo=4&at=11lsCi" | | `android_subscribe` | No | The URL for your podcast for Android users. You can generate this URL at [Subscribe on Android](https://subscribeonandroid.com). | "http://subscribeonandroid.com/feeds.podtrac.com/VGAulpN7MY1U" | diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html index 14d86745..5b9ead9d 100644 --- a/layouts/partials/head_includes.html +++ b/layouts/partials/head_includes.html @@ -1,3 +1,8 @@ +{{ if isset $.Site.Params "favicon"}} + +{{ else }} + +{{ end }} {{ if isset $.Site.Params "site_theme"}} {{ else }}