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

@@ -1,4 +1,5 @@
{{ define "main" }}
<h1 class="post-title">{{ .Title }}</h1>
{{ if .Date }}
<time>{{ .Date.Format "January 2, 2006" }}</time>
@@ -10,6 +11,17 @@
</div>
{{ template "_internal/disqus.html" . }}
{{ if .Site.Params.enableKofi }}
<script type='text/javascript' src='https://ko-fi.com/widgets/widget_2.js'></script>
<script type='text/javascript'>
const kofiId = '{{ .Site.Params.Kofi }}';
kofiwidget2.init('Support Me on Ko-fi', '#29abe0', kofiId);
kofiwidget2.draw();
</script>
{{ end }}
<div class="page-footer">
{{if .Params.tags}}
<hr class="footer-divider">