Skip to content

Commit

Permalink
Update about page logo
Browse files Browse the repository at this point in the history
Fixes #24
  • Loading branch information
mattstratton committed Oct 6, 2016
1 parent e748d99 commit 69a5437
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"``
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 5 additions & 1 deletion layouts/about/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ <h1>About {{ .Site.Title }}</h1>
</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 }}
Expand Down

0 comments on commit 69a5437

Please sign in to comment.