Skip to content

Commit fe2fba3

Browse files
Make featuredImage accessible inside inner's scope
1 parent 26d3599 commit fe2fba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/posts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
21
<section class="post content-padding">
32
{{ with partial "_decorators/content-container.html" . }}
43
<div class="post-meta">{{ partial "posts/meta.html" . }}
54
<span class="post-please-comment">🖊️ Please add your comments <a href="#discourse-comments">below!</a></span>
65
</div>
6+
{{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
77
<div class="post-content">
88
{{ with $featuredImage }}
99
{{ if .Params.showOnTop }}

0 commit comments

Comments
 (0)