#286, Add ability to set image for posts

This commit is contained in:
Alex Shpak
2021-05-03 21:47:19 +02:00
parent e0823c2138
commit c197f3399b
6 changed files with 13 additions and 7 deletions
+10
View File
@@ -11,3 +11,13 @@
</div>
{{ end }}
{{ end }}
<p>
{{ if .Params.image}}
{{ with .Resources.GetMatch .Params.image }}
<img src={{ .RelPermalink }} />
{{ else }}
<img src={{ .Params.image | relURL }} />
{{ end }}
{{ end }}
</p>