From 69a5437ea8129d34e782c2f4e33171959dd3930c Mon Sep 17 00:00:00 2001 From: Matt Stratton Date: Thu, 6 Oct 2016 11:03:51 -0500 Subject: [PATCH] Update about page logo Fixes #24 --- README.md | 2 +- exampleSite/config.toml | 2 +- layouts/about/single.html | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 32e94196..dceff09e 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ You will need to add a handful of configuration items to your `config.toml` file - `disqusShortname` - the shortname for use in Disqus comments. Example: `"arresteddevops"`. Note: The Disqus comments will not appear if you are running on `localhost`. - `[params]` - - ~`homepage` - the fully qualified domain name of your homepage. This is different than the `BaseURL` setting, as it must be externally available for feed readers, and others. This must NOT end with a slash. Example: `"https://www.mattstratton.com"`~ + - `about_logo` - the logo (250px x 250px) you would like to appear on your About page. Optional. If not set, this will default to your iTunes image. - `copyright_notice` - Your copyright information for the footer of the page. Can contain Markdown. Example: `"Copyright 2016 [Matt Stratton](https://www.mattstrattion.io)"` - `itunes_subscribe` - The URL of your podcast in the iTunes store. Optional. Example: `"http://itunes.apple.com/us/podcast/arrested-devops/id773888088?mt=2&uo=4&at=11lsCi"` - `android_subscribe` - The URL for your podcast for Android users. You can generate this URL at [Subscribe on Android](https://subscribeonandroid.com). Optional. Example: ``"http://subscribeonandroid.com/feeds.podtrac.com/VGAulpN7MY1U"`` diff --git a/exampleSite/config.toml b/exampleSite/config.toml index ee4f38bd..62ea8921 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -37,7 +37,7 @@ disqusShortname = "arresteddevops" parent = "resources" [params] -homepage = "http://sample-castanet.netlify.com" # must not end with a slash +# about_logo = "/img/hugocast.png" copyright_notice = "Copyright 2016 [Matt Stratton](https://www.mattstrattion.io)" itunes_subscribe = "http://itunes.apple.com/us/podcast/arrested-devops/id773888088?mt=2&uo=4&at=11lsCi" android_subscribe = "http://subscribeonandroid.com/feeds.podtrac.com/VGAulpN7MY1U" diff --git a/layouts/about/single.html b/layouts/about/single.html index 98b5ad49..8f898c41 100644 --- a/layouts/about/single.html +++ b/layouts/about/single.html @@ -7,7 +7,11 @@

About {{ .Site.Title }}

- + {{ if isset $.Site.Params "about_logo" }} + + {{ else }} + + {{ end }}
{{ .Site.Params.description | markdownify }}