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.
1 parent e31e4d4 commit 7a2356eCopy full SHA for 7a2356e
layouts/partials/posts/post.html
@@ -1,3 +1,4 @@
1
+{{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
2
<section class="post content-padding flex-row">
3
<div class="content-container">
4
{{ partial "breadcrumbs.html" . }}
@@ -7,7 +8,10 @@ <h5 class="subtitle">{{ .Params.Subtitle }}</h5>
7
8
{{ end }}
9
<div class="post-meta">{{ partial "posts/meta.html" . }}</div>
10
<div class="post-content">
- {{ .Content }}
11
+ {{ with $featuredImage }}
12
+ <img src="{{ .RelPermalink }}" {{ if .Params.description }}alt="{{ .Params.description }}"{{ end }}/>
13
+ {{ end }}
14
+ {{ .Content }}
15
</div>
16
17
{{ partial "shortcuts.html" . }}
0 commit comments