Add support me button below each post

This commit is contained in:
Dave Gallant
2023-12-16 14:51:18 -05:00
parent feaf9c6be0
commit 3dc7cd1b5b
71 changed files with 200 additions and 1 deletions

View File

@@ -19,6 +19,16 @@
{{- end -}}
</section>
<script
type="text/javascript"
src="https://storage.ko-fi.com/cdn/widget/Widget_2.js"
></script>
<script type="text/javascript">
kofiwidget2.init("Support Me", "#a15bc2", "F1F2S4LWI");
kofiwidget2.draw();
</script>
<div class="post-tags">
{{ if ne .Type "page" }}
{{ if gt .Params.tags 0 }}

View File

@@ -1,4 +1,5 @@
<footer>
<script src="https://storage.ko-fi.com/cdn/scripts/overlay-widget.js"></script>
<div style="display: flex">
{{- range $index, $key := .Site.Params.Social -}}
<a class="soc" href="{{ $key.url }}" rel="me" title="{{ $key.name }}"
@@ -13,7 +14,6 @@
</footer>
{{ if not .Site.IsServer }} {{ template "_internal/google_analytics.html" . }}
{{ end }} {{- if (isset .Site.Params "social") -}}
<script>
feather.replace();
</script>