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" ...@@ -3,6 +3,9 @@ title: "How to become a successful artist on Mastodon"
date: 2018-06-24 date: 2018-06-24
draft: false draft: false
author: gargron author: gargron
resources:
- name: hero
src: hero.jpg
categories: categories:
- Guides - Guides
tags: tags:
...@@ -60,4 +63,4 @@ There is also an off-by-default preference to always view sensitive media withou ...@@ -60,4 +63,4 @@ There is also an off-by-default preference to always view sensitive media withou
In conclusion, In conclusion,
{{< mastodon "https://mastodon.social/@Prawnlegs/100260595084343127" >}} {{< mastodon "https://mastodon.social/@Prawnlegs/100260595084343127" >}}
\ No newline at end of file
...@@ -33,6 +33,14 @@ ...@@ -33,6 +33,14 @@
<div class="image-large"> <div class="image-large">
<img src="{{ .Params.hero }}" alt="" /> <img src="{{ .Params.hero }}" alt="" />
</div> </div>
{{ else }}
{{ $hero := .Page.Resources.GetMatch "hero" }}
{{ if $hero }}
<div class="image-large">
<img src="{{ $hero.RelPermalink }}" alt="" />
</div>
{{ end }}
{{ end }} {{ end }}
</header> </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