mfashby.net

Website mfashby.net
git clone git://code.mfashby.net:/mfashby.net
Log | Files | Refs | Submodules | README

commit 6a68d2e06932d848571948eea9ec586027a42fd6
parent 525ade5a6de3837699b5c7e66686c3e5c8b5a1f3
Author: Martin Ashby <martin@ashbysoft.com>
Date:   Wed, 27 Mar 2024 20:49:30 +0000

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.

Diffstat:
Acontent/index.md | 7+++++++
Acontent/posts/2024-03-27-zine.md | 16++++++++++++++++
Dcontent/posts/assets/10-11-21-longboard-slides.mp4 | 0
Dcontent/posts/assets/drop-in.mp4 | 0
Dcontent/posts/assets/skate4.mp4 | 0
Alayouts/redirect.html | 14++++++++++++++
6 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/content/index.md 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 @@ -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 Binary files differ. diff --git a/content/posts/assets/drop-in.mp4 b/content/posts/assets/drop-in.mp4 Binary files differ. diff --git a/content/posts/assets/skate4.mp4 b/content/posts/assets/skate4.mp4 Binary files differ. diff --git a/layouts/redirect.html 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>