Skip to content

Commit 7a2356e

Browse files
authored
Add back featuredImage that was removed by accident (#363)
1 parent e31e4d4 commit 7a2356e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

layouts/partials/posts/post.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
12
<section class="post content-padding flex-row">
23
<div class="content-container">
34
{{ partial "breadcrumbs.html" . }}
@@ -7,7 +8,10 @@ <h5 class="subtitle">{{ .Params.Subtitle }}</h5>
78
{{ end }}
89
<div class="post-meta">{{ partial "posts/meta.html" . }}</div>
910
<div class="post-content">
10-
{{ .Content }}
11+
{{ with $featuredImage }}
12+
<img src="{{ .RelPermalink }}" {{ if .Params.description }}alt="{{ .Params.description }}"{{ end }}/>
13+
{{ end }}
14+
{{ .Content }}
1115
</div>
1216
</div>
1317
{{ partial "shortcuts.html" . }}

0 commit comments

Comments
 (0)