File tree Expand file tree Collapse file tree 1 file changed +33
-4
lines changed
themes/hugoplate/layouts/blog Expand file tree Collapse file tree 1 file changed +33
-4
lines changed Original file line number Diff line number Diff line change 33 < div class ="container ">
44 < div class ="row justify-center ">
55 < article class ="lg:col-10 ">
6- {{ $image:= .Params.image }}
6+ {{ $image := .Params.image }}
77 {{ if $image }}
8- < div class ="mb-10 ">
9- {{ partial "image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "w-full rounded") }}
10- </ div >
8+ < figure class ="mb-10 ">
9+ {{ partial "image" (dict
10+ "Src" $image
11+ "Context" .Page
12+ "Alt" (or .Params.image_alt .Title)
13+ "Class" "w-full rounded")
14+ }}
15+
16+ {{ if or .Params.image_credit .Params.image_license }}
17+ < figcaption class ="mt-2 text-sm text-gray-500 ">
18+ {{ with .Params.image_credit }}
19+ {{ if $.Params.image_credit_link -}}
20+ < a href ="{{ $.Params.image_credit_link }} "> {{ . }}</ a >
21+ {{- else -}}
22+ {{ . }}
23+ {{- end }}
24+ {{ end }}
25+
26+ {{ with .Params.image_license }}
27+ {{ if or $.Params.image_credit $.Params.image_credit_link }}
28+ {{ print ", " }}
29+ {{ end }}
30+ licensed under
31+ < a href ="{{ $.Params.image_license_link }} "> {{ . }}</ a >
32+ {{ end }}
33+ .
34+ {{ with .Params.image_changes }}Changes: {{ . }}.{{ end }}
35+ </ figcaption >
36+ {{ end }}
37+ </ figure >
1138 {{ end }}
39+
40+
1241 < h1 class ="h2 mb-4 ">
1342 {{ .Title }}
1443 </ h1 >
You can’t perform that action at this time.
0 commit comments