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

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stratton <matt.stratton@gmail.com>2016-10-06 19:03:51 +0300
committerMatt Stratton <matt.stratton@gmail.com>2016-10-06 19:03:51 +0300
commit69a5437ea8129d34e782c2f4e33171959dd3930c (patch)
tree09a83267d97ef7aeca76379da7b45db2c48c2b8b
parente748d99ad955d36dc61e7b0c1fd00e64c7e3d74b (diff)
Update about page logov.0.2.0
Fixes #24
-rw-r--r--README.md2
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/about/single.html6
3 files changed, 7 insertions, 3 deletions
diff --git a/README.md b/README.md
index 32e9419..dceff09 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 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 }}