commit effedef972d4e77ffa735136ded4797a1bcc01bb
parent a16c2feed62a614dc3328229ec0e9a5e3b28e618
Author: Eamon Caddigan <eamon.caddigan@gmail.com>
Date: Fri, 13 Dec 2024 21:40:29 -0800
Add a new Links section
This includes the code for the Data People Writing Stuff webring, of
which I am not yet a part.
Raw HTML shortcode courtesy of
<https://anaulin.org/blog/hugo-raw-html-shortcode/>
Diffstat:
3 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/content/links/index.md b/content/links/index.md
@@ -0,0 +1,13 @@
+---
+title: "Links"
+description: "Hyperlinks to other websites!"
+date: 2024-12-17T19:56:22-08:00
+draft: false
+---
+
+{{< rawhtml >}}
+<div id='data-ring-dot-list'>
+<script type="text/javascript" src="https://randyau.github.io/datawebring/onionring-variables.js"></script>
+<script type="text/javascript" src="https://randyau.github.io/datawebring/onionring-widget.js"></script>
+</div>
+{{< /rawhtml >}}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
@@ -6,5 +6,6 @@
{{ if ge $now.Lastmod.Unix (sub time.Now.Unix .Site.Params.now_timeout) }}
<a href="{{ $now.RelPermalink }}">{{ $now.Title }}</a> |
{{ end }}
+ <a href="/links/">Links</a> |
<a href="/posts/index.xml">RSS Feed</a>
</p>
diff --git a/layouts/shortcodes/rawhtml.html b/layouts/shortcodes/rawhtml.html
@@ -0,0 +1,2 @@
+<!-- raw html -->
+{{.Inner}}