From 3c835904c2cde1d0d4a1860654c2c87d067825a7 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Mon, 24 Feb 2025 18:04:32 -0600 Subject: [PATCH] Updating webring data generation process to using hugo data files --- .gitignore | 2 +- go.mod | 18 ++++++ go.sum | 18 ++++++ layouts/_default/baseof.html | 2 +- layouts/partials/webring-out.html | 21 +++++++ openring.go | 98 +++++++++++++++++++++++++++++++ 6 files changed, 157 insertions(+), 2 deletions(-) create mode 100644 go.mod create mode 100644 go.sum create mode 100644 layouts/partials/webring-out.html create mode 100644 openring.go diff --git a/.gitignore b/.gitignore index c6ef245..9458e1f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ resources/ test-article.md .hugo_build.lock wring.sh -layouts/partials/webring-out.html +data/openring.toml diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..c11adc5 --- /dev/null +++ b/go.mod @@ -0,0 +1,18 @@ +module git.code.netlandish.com/~netlandish/linktaco-blog + +go 1.23.4 + +require ( + github.com/BurntSushi/toml v1.4.0 + github.com/SlyMarbo/rss v1.0.5 + github.com/mattn/go-runewidth v0.0.16 + github.com/microcosm-cc/bluemonday v1.0.27 +) + +require ( + github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394 // indirect + github.com/aymerick/douceur v0.2.0 // indirect + github.com/gorilla/css v1.0.1 // indirect + github.com/rivo/uniseg v0.2.0 // indirect + golang.org/x/net v0.26.0 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..ed496ac --- /dev/null +++ b/go.sum @@ -0,0 +1,18 @@ +github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0= +github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= +github.com/SlyMarbo/rss v1.0.5 h1:DPcZ4aOXXHJ5yNLXY1q/57frIixMmAvTtLxDE3fsMEI= +github.com/SlyMarbo/rss v1.0.5/go.mod h1:w6Bhn1BZs91q4OlEnJVZEUNRJmlbFmV7BkAlgCN8ofM= +github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394 h1:OYA+5W64v3OgClL+IrOD63t4i/RW7RqrAVl9LTZ9UqQ= +github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394/go.mod h1:Q8n74mJTIgjX4RBBcHnJ05h//6/k6foqmgE45jTQtxg= +github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= +github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4= +github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= +github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= +github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= +github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/microcosm-cc/bluemonday v1.0.27 h1:MpEUotklkwCSLeH+Qdx1VJgNqLlpY2KXwXFM08ygZfk= +github.com/microcosm-cc/bluemonday v1.0.27/go.mod h1:jFi9vgW+H7c3V0lb6nR74Ib/DIB5OBs92Dimizgw2cA= +github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3d841f0..2d19ffc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -73,7 +73,7 @@