Browse Source

refactor($layouts): remove unnecessary assignment

Josh Habdas 1 year ago
parent
commit
036ca9e2c6
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      layouts/post/single.html

+ 1
- 2
layouts/post/single.html View File

@@ -12,8 +12,7 @@
12 12
       {{ if .Description }}
13 13
         <blockquote itemprop="description">{{ .Description }}</blockquote>
14 14
       {{ end }}
15
-      {{ $image := .Resources.GetMatch "header" }}
16
-      {{ if $image }}
15
+      {{ if .Resources.GetMatch "header" }}
17 16
         {{ $image600 := (.Resources.GetMatch "header").Fill "600x338 q60 Center" }}
18 17
         {{ $image900 := (.Resources.GetMatch "header").Fill "900x506 q70 Center" }}
19 18
         {{ $image1200 := (.Resources.GetMatch "header").Fill "1200x675 q80 Center" }}

Loading…
Cancel
Save