Commit 67a858aa authored by Eugen Rochko's avatar Eugen Rochko

Add hero image to 2018-06-24_How-to-become-a-successful-artist-on-Mastodon

parent cfd18ab4
Pipeline #44 passed with stages
in 0 seconds
......@@ -3,6 +3,9 @@ title: "How to become a successful artist on Mastodon"
date: 2018-06-24
draft: false
author: gargron
resources:
- name: hero
src: hero.jpg
categories:
- Guides
tags:
......@@ -60,4 +63,4 @@ There is also an off-by-default preference to always view sensitive media withou
In conclusion,
{{< mastodon "https://mastodon.social/@Prawnlegs/100260595084343127" >}}
\ No newline at end of file
{{< mastodon "https://mastodon.social/@Prawnlegs/100260595084343127" >}}
......@@ -33,6 +33,14 @@
<div class="image-large">
<img src="{{ .Params.hero }}" alt="" />
</div>
{{ else }}
{{ $hero := .Page.Resources.GetMatch "hero" }}
{{ if $hero }}
<div class="image-large">
<img src="{{ $hero.RelPermalink }}" alt="" />
</div>
{{ end }}
{{ end }}
</header>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment