Commit 7b5e368
Changed files (7)
blog
content
layouts
blog/content/blog/_index.md
@@ -0,0 +1,5 @@
++++
+title = "Blog"
+menu = "main"
+weight = 100
++++
blog/content/blog/hello-world.md
@@ -0,0 +1,17 @@
++++
+date = '2026-10-01T02:48:19+10:00'
+draft = false
+title = 'Hello World'
++++
+
+Hello and welcome to yet another of my attempts at blogging!
+
+In the spirit of "programmer over-engineers blog engine rather than just writing”, this is a [Hugo](https://gohugo.io)-based static site, hosted on an ancient computer in my house and also behind Fastly’s CDN. I hope to have more to say about the tech stack soon.
+
+As an attempt to avoid some of the things that have plagued my previous attempts at writing, I’m trying to think of this as writing for myself, rather than writing for other people. To that end:
+
+ - I’m not making any promises about this blog’s availability or continued existence. The lack of commitment is even in the domain name - intermittent.network. If you’d like to keep any content you find useful, consider [cloning the blog’s repo via git](https://www.intermittent.network/git/www/index.html).
+
+ - I’m trying not to think of “success” in terms of any quantity or timeline of posts. To that end, I have no analytics or tracking. No Google Analytics, no per-post hit counts. Because I'm using a CDN, I don't get an accurate `access.log` on my server, and I'm not exporting per-request logging from Fastly either. All I have is Fastly's built-in analytics, which don’t break down requests by URL. Hopefully this will free me from trying to optimise the content for what gets clicks!
+
+Lastly, in a very 2026 thing to have to say: the writing is my own. I’ve not used generative AI or large language models anywhere in the writing or editing process.
blog/content/_index.md
@@ -0,0 +1,7 @@
++++
+title = "Home"
+menu = "main"
+weight = 1
++++
+
+Hello and welcome to yet another of my attempts at blogging!
blog/layouts/_default/baseof.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.Language.Locale }}">
+
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ {{- partial "favicon.html" . -}}
+ <title>{{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }}</title>
+
+ {{- partial "seo_tags.html" . -}}
+ <meta name="referrer" content="no-referrer-when-downgrade" />
+
+ {{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
+ {{- partial "style.html" . -}}
+
+ <!-- A partial to be overwritten by the user.
+ Simply place a custom_head.html into
+ your local /layouts/partials-directory -->
+ {{- partial "custom_head.html" . -}}
+</head>
+
+<body>
+ <header>
+ {{- partial "header.html" . -}}
+ </header>
+ <main>
+ {{- block "main" . }}{{- end }}
+ </main>
+ <footer>
+ {{- partial "footer.html" . -}}
+ </footer>
+
+ <!-- A partial to be overwritten by the user.
+ Simply place a custom_body.html into
+ your local /layouts/partials-directory -->
+ {{- partial "custom_body.html" . -}}
+</body>
+
+</html>
blog/layouts/partials/recent-posts.html
@@ -0,0 +1,10 @@
+<h2>Recent Posts</h2>
+<ul>
+ {{ range first 5 (where .Site.RegularPages "Type" "blog") }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ <span class="date">{{ .Date.Format "2006-01-02" }}</span>
+ </li>
+ {{ end }}
+</ul>
+
blog/layouts/index.html
@@ -0,0 +1,4 @@
+{{ define "main" }}
+ {{ .Content }}
+ {{ partial "recent-posts.html" . }}
+{{ end }}
blog/hugo.toml
@@ -1,4 +1,62 @@
baseURL = 'https://www.intermittent.network/'
-locale = 'en-au'
title = 'intermittent blog'
-theme = 'hugo-bearblog'
+
+# Basic metadata configuration for your blog.
+author = "Daniel Axtens"
+copyright = "[CC BY-NC-SA 4.0 International](https://creativecommons.org/licenses/by-nc-sa/4.0/)"
+locale = "en-AU"
+theme = "hugo-bearblog"
+
+# Generate a nice robots.txt for SEO
+enableRobotsTXT = true
+
+# Generate "Bearblog"-like URLs !only!, see https://bearblog.dev/.
+disableKinds = ["taxonomy"]
+ignoreErrors = ["error-disable-taxonomy"]
+[permalinks]
+ blog = "/:slug/"
+ tags = "/blog/:slug"
+
+[params]
+ # The "description" of your website. This is used in the meta data of your generated html.
+ description = "intermittent blog"
+
+ # The path to your "favicon". This should be a square (at least 32px x 32px) png-file.
+ # Hint: It's good practise to also put a "favicon.ico"-file into your "static"-folder.
+ favicon = "images/favicon.png"
+
+ # These "images" are used for the structured data templates. This will show up, when
+ # services like Twitter or Slack want to generate a preview of a link to your site.
+ # See https://gohugo.io/templates/internal#twitter-cards and
+ # https://gohugo.io/templates/internal#open-graph.
+ images = ["images/share.png"]
+
+ # Another "title" :-). This one is used as the site_name on the Hugo's internal
+ # opengraph structured data template.
+ # See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph.
+ title = "intermittent.blog"
+
+ # This theme will, by default, inject a made-with-line at the bottom of the page.
+ # You can turn it off, but we would really appreciate if you don’t :-).
+ # hideMadeWithLine = true
+
+ # By default, if you want to read more than one blog post you have to always go
+ # back to the /blog page.
+ # By enabling this feature each blog post will have at the end a navigator
+ enablePostNavigator = true
+
+ # By default, this theme displays dates with a format like "02 Jan, 2006", but
+ # you can customize it by setting the `dateFormat` param in your site's config
+ # file. See [Hugo's Format function docs](https://gohugo.io/functions/format/)
+ # for details. An example TOML config that uses [ISO
+ # 8601](https://en.wikipedia.org/wiki/ISO_8601) format:
+ dateFormat = "2006-01-02"
+
+# Configure markup highlighter to match "Bearblog" aesthetics, see
+# https://gohugo.io/configuration/markup/#highlight
+[markup]
+ [markup.highlight]
+ style = 'friendly'
+ lineNos = true
+ lineNumbersInTable = false
+ codeFences = true