5c83d6790496e4cb91638524b451cc2316c93c7d — Johan 4 months ago 6790392 main
Add "title" to the h1 tags

This is because soupault couldn't pick the proper h1 tag to create the
<title> tag from, which became a problem with the css change.
M site/etc/index.html => site/etc/index.html +1 -1
@@ 1,2 1,2 @@
<h1 id="title">etc</h1>
<p>Not sure what I will put here just yet.</p>

M site/index.html => site/index.html +1 -1
@@ 1,4 1,4 @@
<h1 id="title">Welcome</h1>
<p>This is my corner of the Internet.</p>
<p>It's not much, but it's mine.</p>
<p>I'm on <a rel="me" href="https://social.linux.pizza/@johan">Mastodon</a>. And got some things at <a href="https://sr.ht/~jhn/">Sourcehut</a>.</p>

M site/links.html => site/links.html +1 -1
@@ 1,4 1,4 @@
<h1 id="title">links</h1>

M site/writings/cisco-ios-xr-streaming-telemetry-with-telegraf.html => site/writings/cisco-ios-xr-streaming-telemetry-with-telegraf.html +1 -1
@@ 1,4 1,4 @@
<h1>Cisco IOS-XR Streaming Telemetry with Telegraf</h1>
<h1 id="title">Cisco IOS-XR Streaming Telemetry with Telegraf</h1>
<p>Published on <span id="publish-date">2021-05-18</span>.</p>


M site/writings/index.html => site/writings/index.html +1 -1
@@ 1,4 1,4 @@
<h1 id="title">writings</h1>
  <li><a href="/writings/soupault-first-lua-widget.html">Soupault: First Lua Widget</a></li>
  <li><a href="/writings/ipv6-and-docker-containers.html">IPv6 and Docker containers</a></li>

M site/writings/installboot-error-when-installing-openbsd-on-vmware.html => site/writings/installboot-error-when-installing-openbsd-on-vmware.html +1 -1
@@ 1,4 1,4 @@
<h1>installboot error when installing OpenBSD on VMWare</h1>
<h1 id="title">installboot error when installing OpenBSD on VMWare</h1>
<p>Published on <span id="publish-date">2021-06-03</span>.</p>
<p>If you’re installing OpenBSD in a VMWare environment you might get the following error message at the end of the installation:</p>

M site/writings/ipv6-and-docker-containers.html => site/writings/ipv6-and-docker-containers.html +1 -1
@@ 1,4 1,4 @@
<h1>IPv6 and Docker containers</h1>
<h1 id="title">IPv6 and Docker containers</h1>
<p>Published on <span id="publish-date">2021-07-17</span>.</p>

<p>I use Docker to run some services, which is working just fine. I however want to enable IPv6 in my containers so that these services can be reached over IPv6 connections. In this post I will show two ways of doing it.</p>

M site/writings/openbsd-httpd-and-lets-encrypt.html => site/writings/openbsd-httpd-and-lets-encrypt.html +1 -1
@@ 1,4 1,4 @@
<h1>OpenBSD httpd and Let's Encrypt</h1>
<h1 id="title">OpenBSD httpd and Let's Encrypt</h1>
<p>Published on <span id="publish-date">2021-04-23</span>.</p>
<h2>Prepare the zone</h2>
<p>Before we do anything with httpd the DNS settings should already be done. There is no standard way of doing this, it all depends on the server administrator, who is running the DNS servers and what the end result should be. I have decided to use these settings:</p>

M site/writings/soupault-first-lua-widget.html => site/writings/soupault-first-lua-widget.html +1 -1
@@ 1,4 1,4 @@
<h1>Soupault: First Lua Widget</h1>
<h1 id="title">Soupault: First Lua Widget</h1>
<p>Published on <span id="publish-date">2022-01-01</span>.</p>
<p>To manage this little website I'm using the wonderful <a href="https://soupault.app/">Soupault</a> software. For me and my needs it hits the spot between "do everything myself" and using a more advanced tool like Hugo or Jekyll, since I can write the HTML myself and have Soupault put the content into a template.</p>
<p>In addition to that Soupault also allows for plugins (or widgets, as they are called). They are written in Lua and can be used for performing actions on the HTML code before it's written to a file (amongst other things). I see a lot of potential in this, and I wanted to share my experience in writing my first Soupault widget.</p>

M soupault.toml => soupault.toml +2 -2
@@ 30,10 30,10 @@
  publish_date = { selector = ["span#publish-date"] }
  updated_date = { selector = ["span#updated-date"] }

# Takes the content of the first <h1> and inserts it into the <title>
# Takes the content of the selected <h1> and inserts it into the <title>
  widget = "title"
  selector = "h1"
  selector = "h1#title"
  default = "Homepage"
  append = " &mdash; pwd.re"
  force = false