added crossorigin anonymous, resizing for large images, and ko-fi button

This commit is contained in:
kimcc
2020-04-13 09:01:36 -05:00
parent 9ec04a2978
commit 18f05635bf
11 changed files with 328 additions and 254 deletions

View File

@@ -0,0 +1,11 @@
{{ $src := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) }}
{{ if .Get "caption"}}
<figure class="article-figure">
{{ end }}
<img class="article-image" src="{{ $src.RelPermalink }}" {{ with .Get "alt" }}alt="{{.}}"{{ else }}alt=""{{ end }}>
{{ if .Get "caption"}}
<figcaption>{{ .Get "caption" }}</figcaption>
</figure>
{{ end }}