<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Could be worse</title><link>https://couldbeworse.dev/</link><description>Recent content on Could be worse</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 02 Oct 2025 16:31:52 +0100</lastBuildDate><atom:link href="https://couldbeworse.dev/index.xml" rel="self" type="application/rss+xml"/><item><title>Adding D2 to Hugo</title><link>https://couldbeworse.dev/posts/adding-d2-to-hugo/</link><pubDate>Thu, 02 Oct 2025 16:31:52 +0100</pubDate><guid>https://couldbeworse.dev/posts/adding-d2-to-hugo/</guid><description>&lt;p&gt;I currently use a fork of a theme called &lt;a href="https://github.com/lukeorth/poison" target="_blank"&gt;poison&lt;/a&gt; for this site. It supports mermaid for generating certain visualisations (such as this one)&lt;/p&gt;


&lt;script type="module"&gt;
 import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';

 const lsTheme = localStorage.getItem("theme")
 const hugoTheme = document.body.classList.contains("dark-theme") ? "dark" : null
 const currTheme = lsTheme ? lsTheme : hugoTheme;
 const mermaidTheme = currTheme == "light" ? "default" : "dark"

 mermaid.initialize({theme: mermaidTheme});
&lt;/script&gt;



&lt;div class="mermaid"&gt;
flowchart LR
A --&gt; B --&gt; C

&lt;/div&gt;

&lt;p&gt;While mermaid is a fantastic tool, I prefer &lt;a href="https://d2lang.com" target="_blank"&gt;D2&lt;/a&gt; because I think the syntax is a bit cleaner for certain diagrams and the output by default looks a bit nicer. It also supports more advanced diagrams like SQL tables.&lt;/p&gt;</description></item><item><title>Hello World</title><link>https://couldbeworse.dev/posts/hello-world/</link><pubDate>Sat, 27 Sep 2025 14:20:11 +0100</pubDate><guid>https://couldbeworse.dev/posts/hello-world/</guid><description>&lt;p&gt;Hello! These are the ramblings of someone who wanted to document the tech they&amp;rsquo;ve encountered but without any of the complexities.&lt;/p&gt;
&lt;p&gt;The tech stack I work most frequently with is &lt;a href="https://dot.net" target="_blank"&gt;&lt;em&gt;dotnet&lt;/em&gt;&lt;/a&gt; and &lt;a href="https://nodejs.org" target="_blank"&gt;&lt;em&gt;nodejs&lt;/em&gt;&lt;/a&gt; but I like to experiment and dabble with other things as well!&lt;/p&gt;</description></item></channel></rss>