Hugo blogpost

This commit is contained in:
2020-07-14 20:00:36 +01:00
parent 804564c896
commit 05198ec957
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
---
layout: post
title: "Go Hugo!"
date: 2020-07-14
categories: webdev, selfhosting
---
I've just moved the site over from Jekyll to Hugo. Why? Because I have a growing vendetta against Ruby and (relatedly so) it was easier to make a webhook-based build system for Hugo. No matter what I do, I can never get RVM set up right, I can just about manage Python Venvs! This all spiraled from trying to finish my build system, as these things do. Now every time I push to master in my git repo, the site will be automatically built and copied in place, which was the last piece missing for a self-hosted equivalent to GitHub Pages. Win! And I only totally FUBARed Docker once in the process...
Still very much working on the webdesign and have taken a bit of a step backwards for now, but it is functional, at least.

25
layouts/blog/single.html Normal file
View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en-GB">
{{ partial "head.html" . }}
<body>
<div class="container">
<header>
<h3><a href="/">Arona Jones</a></h3>
<nav id="main-nav">
<a href="/">Home</a>
{{ $currentNode := . }}
{{ range .Site.Menus.main }}
<a href="{{.URL}}">{{.Name}}</a>
{{ end }}
</nav>
</header>
<main aria-label="Content">
<article>
<h3 style="color: black; padding-top: 2em; padding-bottom: 1em;">{{ .Title }}</h3>
{{.Content}}
</article>
</main>
{{ partial "footer.html" . }}
</div>
</body>
</html>