diff options
author | Matt Stratton <matt.stratton@gmail.com> | 2016-10-06 19:03:51 +0300 |
---|---|---|
committer | Matt Stratton <matt.stratton@gmail.com> | 2016-10-06 19:03:51 +0300 |
commit | 69a5437ea8129d34e782c2f4e33171959dd3930c (patch) | |
tree | 09a83267d97ef7aeca76379da7b45db2c48c2b8b | |
parent | e748d99ad955d36dc61e7b0c1fd00e64c7e3d74b (diff) |
Update about page logov.0.2.0
Fixes #24
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/about/single.html | 6 |
3 files changed, 7 insertions, 3 deletions
@@ -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 ee4f38b..62ea892 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 98b5ad4..8f898c4 100644 --- a/layouts/about/single.html +++ b/layouts/about/single.html @@ -7,7 +7,11 @@ </div> <div class = "row"> <div class = "col-md-3"> - <img src = "/img/hugocast-logo.png" width = "250px"/> + {{ if isset $.Site.Params "about_logo" }} + <img src = "{{ $.Site.Params.about_logo }}" width = "250px"/> + {{ else }} + <img src = "{{ .Site.Params.feed.itunes_image }}" width = "250px"/> + {{ end }} </div> <div class = "col-md-6"> {{ .Site.Params.description | markdownify }} |