We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
showOnTop
1 parent 6d2e837 commit fded150Copy full SHA for fded150
layouts/partials/posts/post.html
@@ -9,10 +9,12 @@ <h5 class="subtitle">{{ .Params.Subtitle }}</h5>
9
<div class="post-meta">{{ partial "posts/meta.html" . }}</div>
10
<div class="post-content">
11
{{ with $featuredImage }}
12
+ {{ if .Params.showOnTop }}
13
<div class="post-featuredImage">
- <img src="{{ .RelPermalink }}" {{ if .Params.description }}alt="{{ .Params.description }}"{{ end }}/>
14
+ <img src="{{ .RelPermalink }}" {{ with .Params.description }}alt="{{ . }}"{{ end }}/>
15
</div>
16
{{ end }}
17
+ {{ end }}
18
{{ .Content }}
19
{{ partial "posts/comments.html" .}}
20
0 commit comments