aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2024-03-27 20:49:30 +0000
committerMartin Ashby <martin@ashbysoft.com>2024-03-27 20:49:30 +0000
commit6a68d2e06932d848571948eea9ec586027a42fd6 (patch)
tree37dcdc00981de673344156f3fb6bea59f8dc0d29
parent525ade5a6de3837699b5c7e66686c3e5c8b5a1f3 (diff)
downloadmfashby.net-6a68d2e06932d848571948eea9ec586027a42fd6.tar.gz
mfashby.net-6a68d2e06932d848571948eea9ec586027a42fd6.tar.bz2
mfashby.net-6a68d2e06932d848571948eea9ec586027a42fd6.tar.xz
mfashby.net-6a68d2e06932d848571948eea9ec586027a42fd6.zip
Add post on zine
Remove video assets from git, they are now hosted on move IT Tube Add client-side redirect to help when using zine serve.
-rw-r--r--content/index.md6
-rw-r--r--content/posts/2024-03-27-zine.md15
-rw-r--r--content/posts/assets/10-11-21-longboard-slides.mp4bin45783829 -> 0 bytes
-rw-r--r--content/posts/assets/drop-in.mp4bin1573234 -> 0 bytes
-rw-r--r--content/posts/assets/skate4.mp4bin22065301 -> 0 bytes
-rw-r--r--layouts/redirect.html14
6 files changed, 35 insertions, 0 deletions
diff --git a/content/index.md b/content/index.md
new file mode 100644
index 0000000..2daad45
--- /dev/null
+++ b/content/index.md
@@ -0,0 +1,6 @@
+---
+.title = "Home",
+.author = "Martin Ashby",
+.date = @date("2024-03-27T20:26:45+00:00"),
+.layout = "redirect.html",
+--- \ No newline at end of file
diff --git a/content/posts/2024-03-27-zine.md b/content/posts/2024-03-27-zine.md
new file mode 100644
index 0000000..9dd23ad
--- /dev/null
+++ b/content/posts/2024-03-27-zine.md
@@ -0,0 +1,15 @@
+---
+.title = "Zine",
+.author = "Martin Ashby",
+.date = @date("2024-03-27T20:26:45+00:00"),
+.layout = "single.html",
+.custom = {"comments": true},
+---
+
+I converted my blog from [hugo](https://gohugo.io/) to [zine](https://zine-ssg.io/). Hugo has been pretty good, but it had a couple of small annoyances like simple inclusion of raw HTML being difficult. Mostly though, I wanted to try something new, and my personal site is a safe space for me to do that :)
+
+Zine is very new, in fact the disclaimer on the site "Zine is alpha software. Using Zine today means participating in its development." turned out to be true, and I had to submit a couple of changes to Zine to make it work for me. Thankfully the maintainer was really helpful, and they also pointed out how I could generate an RSS XML feed for my blog just like hugo did.
+
+Code for my website can be found [here](https://code.mfashby.net/mfashby.net/). Since I have a quite a few posts, I wrote a [little program](https://code.mfashby.net/mfashby.net/tree/converter/src/main.zig) to convert the frontmatter for all my pages from hugo's YAML format to zine's ziggy format; although the output still needed some manual tweaks afterwards.
+
+Tangentially related, I moved the couple of videos I was hosting directly from my site to [move IT Tube](https://tube.spdns.org/) to save bandwidth at home and so others can view them faster. \ No newline at end of file
diff --git a/content/posts/assets/10-11-21-longboard-slides.mp4 b/content/posts/assets/10-11-21-longboard-slides.mp4
deleted file mode 100644
index 50152b8..0000000
--- a/content/posts/assets/10-11-21-longboard-slides.mp4
+++ /dev/null
Binary files differ
diff --git a/content/posts/assets/drop-in.mp4 b/content/posts/assets/drop-in.mp4
deleted file mode 100644
index 7b07ab5..0000000
--- a/content/posts/assets/drop-in.mp4
+++ /dev/null
Binary files differ
diff --git a/content/posts/assets/skate4.mp4 b/content/posts/assets/skate4.mp4
deleted file mode 100644
index f557355..0000000
--- a/content/posts/assets/skate4.mp4
+++ /dev/null
Binary files differ
diff --git a/layouts/redirect.html b/layouts/redirect.html
new file mode 100644
index 0000000..9cfd747
--- /dev/null
+++ b/layouts/redirect.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML>
+<html lang="en-US">
+ <head>
+ <meta charset="UTF-8">
+ <meta http-equiv="refresh" content="0; url=/posts/">
+ <script type="text/javascript">
+ window.location.href = "/posts/"
+ </script>
+ <title>Page Redirection</title>
+ </head>
+ <body>
+ If you are not redirected automatically, follow this <a href='/post/'>link</a>.
+ </body>
+</html>