Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default site-wide og:image to config.toml param #188

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" |
| `images` | No | The social sharing image used by Facebook, Twitter, etc. This can be overridden by setting the images field in an episode file. This image needs to be relative to your baseURL | ["img/episode/default-social.jpg"] |
| `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" |
Expand Down
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ enable_jumbo = "true"
# enable_jumbo = "false"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
2 changes: 1 addition & 1 deletion layouts/partials/head/seo/open_graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}" />
<meta property="og:type" content="{{ if .Params.type }}{{ .Params.type }}{{ else }}website{{ end }}" />
<meta property="og:url" content="{{ .Permalink }}" />
{{ with .Params.images }}{{ range first 1 . }}
{{ with $.Param "images" }}{{ range first 1 . }}
{{ if (eq (slicestr . 0 4) "http") }}
<meta property="og:image" content="{{ . }}" file= {{ slicestr . 0 4 }}/>
{{ else }}
Expand Down
1 change: 1 addition & 0 deletions test/blue-grid-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ site_theme = "blue"
site_layout = "grid"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
1 change: 1 addition & 0 deletions test/blue-row-jumbo-false-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ site_layout = "row"
enable_jumbo = "false"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
1 change: 1 addition & 0 deletions test/blue-row-jumbo-true-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ site_layout = "row"
enable_jumbo = "true"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
1 change: 1 addition & 0 deletions test/blue-row-no-jumbo-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ site_theme = "blue"
site_layout = "row"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
1 change: 1 addition & 0 deletions test/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ enable_jumbo = "true"
# enable_jumbo = "false"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
1 change: 1 addition & 0 deletions test/grey-grid-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ site_theme = "grey"
site_layout = "grid"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
1 change: 1 addition & 0 deletions test/grey-row-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ site_layout = "row"
# enable_jumbo = "false"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
1 change: 1 addition & 0 deletions test/grey-row-jumbo-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ site_layout = "row"
enable_jumbo = "true"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
1 change: 1 addition & 0 deletions test/orange-grid-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ site_theme = "orange"
site_layout = "grid"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
1 change: 1 addition & 0 deletions test/orange-row-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ site_theme = "orange"
site_layout = "row"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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
1 change: 1 addition & 0 deletions test/orange-row-jumbo-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ site_layout = "row"
enable_jumbo = "true"
# truncate = "100"
# about_logo = "/img/hugocast.png"
images = ["img/episode/default-social.jpg"]
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