commit 1d280856feae01dc135cdbb28bfa681ad7d6a63e from: Bradley Taunt date: Thu Jun 06 13:35:41 2024 UTC Update RSS structure, testing check for operating system commit - 7b2dc83a3a3b2da494e1b1370e3ecac94a9c9342 commit + 1d280856feae01dc135cdbb28bfa681ad7d6a63e blob - 528dece9f4230bf4c58306281343e2df56f58ee6 blob + a88f32af414f2b137a05457baad5139062005581 --- barf +++ barf @@ -1,5 +1,7 @@ #!/bin/sh +domain="https://barf.btxx.org" + # Check the operating system os_name=$(uname -s) @@ -48,7 +50,6 @@ index_html() { atom_xml() { uri=$(sed -rn '/atom.xml/ s/.*href="([^"]*)".*/\1/ p' header.html) - domain=$(echo "$uri" | sed 's/atom.xml//g' | sed 's|/[^/]*$||') first_commit_date=$(git log --pretty='format:%ai' . | cut -d ' ' -f1 | tail -1) cat < $title - + $content $domain/$post_link $domain/$post_link $published_date blob - be0489e4b68419b4d9eb61df5280493532884581 blob + fac6c4101b9609e8a8518a7be26753ba1a206a38 --- build/about/index.html +++ build/about/index.html @@ -5,7 +5,8 @@ About `barf` - + + blob - dfe09d269a362e9885408892bee186318c28343f blob + dfdebe18354097f6495a57e13365740edaaeae9d --- build/atom.xml +++ build/atom.xml @@ -2,7 +2,7 @@ barf - 2024-06-06T08:34:47Z + 2024-06-06T08:48:45Z Bradley Taunt blob - 16b767272319e0ab21783598225fbbb0ec71bc4f blob + 4c24c2084e5b3f2e916d8118b1b92ba0eb1dac58 --- build/cleanup/index.html +++ build/cleanup/index.html @@ -5,7 +5,8 @@ Cleaning Up barf's Structure - + + blob - a5aaf194bb430df65038274c03e5e88fdf287003 blob + 1c2ecd51f663cbbc7b2a4c52681c1d023139756a --- build/dark-mode/index.html +++ build/dark-mode/index.html @@ -5,7 +5,8 @@ Supporting Basic Dark Mode - + + blob - b47b9afed0e87ea5b53ed50ad20600b27aee078c blob + 6786dc832b9caaec49dc655e8127db7bd5040c57 --- build/index.html +++ build/index.html @@ -5,7 +5,8 @@ barf - + + blob - f3d1d742aa041f550caef4aa345b3300a20d72c6 blob + 02464e5d67342c0791498a2083d7970f61022309 --- build/macos/index.html +++ build/macos/index.html @@ -5,7 +5,8 @@ Running `barf` on MacOS - + + blob - 043a664898b0bc7197a1ca0a0efb1b553f75f62c blob + 1e288019b6d0fd6ea18ffd3dfa92fceecc72be05 --- build/markdown-examples/index.html +++ build/markdown-examples/index.html @@ -5,7 +5,8 @@ Markdown Examples in barf - + + blob - 7d75ce1055cee36304ce9d58807793d9e9a7e228 blob + 1b80e587a0fb9f426c2ab93b05a746a59d767e8e --- build/openbsd/index.html +++ build/openbsd/index.html @@ -5,7 +5,8 @@ Running `barf` on OpenBSD - + + blob - 065e51d13e78a45a4f9807746cd426ed1789826a blob + 52220d3d03bc890f7b3e4dd33422efe9b9bbcc49 --- build/rss.xml +++ build/rss.xml @@ -2,15 +2,15 @@ barf - /rss.xml + https://barf.btxx.org/rss.xml Feed description here - Thu, 06 Jun 2024 12:34:47 +0000 - Thu, 06 Jun 2024 12:34:47 +0000 + Thu, 06 Jun 2024 12:48:45 +0000 + Thu, 06 Jun 2024 12:48:45 +0000 Custom RSS Generator 1800 Running `barf` on OpenBSD - <h1>Running <code>barf</code> on OpenBSD</h1> <p>2023-08-12</p> <p>The <code>barf</code> project was built on Linux and was catered towards Linux users. The core of the project will remain focused on Linux/GNU tools, but I also need to support OpenBSD since that is my personal operating system of choice.</p> <h2>Download Packages</h2> @@ -18,14 +18,14 @@ <pre><code>doas pkg_add rsync coreutils gsed cmake gcc </code></pre> <p>Then ensure that you alter all instances of <code>sed</code> with <code>gsed</code> in the core <code>barf</code> file. (Or make an alias if you'd prefer not to alter the main file)</p> -<p>After that, everything should work perfectly fine when building!</p>]]> - /openbsd - /openbsd +<p>After that, everything should work perfectly fine when building!</p> + https://barf.btxx.org/openbsd + https://barf.btxx.org/openbsd Sat, 12 Aug 2023 00:00:00 +0000 Markdown Examples in barf - <h1>Markdown Examples in barf</h1> <p>2023-01-05</p> <p>This following was lifted from <a href="https://github.com/karlb/smu">https://github.com/karlb/smu</a></p> <h1><code>smu</code> Syntax</h1> @@ -257,14 +257,14 @@ one. passed through to the resulting document without modification. This is a good way to work around features that are missing in smu. If you don't want this behaviour, use the <code>-n</code> flag when executing smu to stricly escape the HTML -tags.</p>]]> - /markdown-examples - /markdown-examples +tags.</p> + https://barf.btxx.org/markdown-examples + https://barf.btxx.org/markdown-examples Thu, 05 Jan 2023 00:00:00 +0000 Running `barf` on MacOS - <h1>Running <code>barf</code> on MacOS</h1> <p>2023-01-18</p> <p>The <code>barf</code> project was built on Linux and was catered towards Linux users. The core of the project will remain focused on Linux/GNU tools, but that doesn't mean MacOS needs to be left out in the cold.</p> <p>There are some very minor changes you'll need to make to your default <code>sed</code> and <code>date</code> paths if you plan to run barf on MacOS.</p> @@ -282,14 +282,14 @@ sudo ln -fs /opt/homebrew/bin/gdate /usr/local/bin/dat <p>and add the following to your <code>.bash_profile</code> file:</p> <pre><code>export PATH=&quot;/usr/local/bin:$PATH&quot; </code></pre> -<p>Reload your <code>bash</code> instance and everything should work as intended!</p>]]> - /macos - /macos +<p>Reload your <code>bash</code> instance and everything should work as intended!</p> + https://barf.btxx.org/macos + https://barf.btxx.org/macos Wed, 18 Jan 2023 00:00:00 +0000 Supporting Basic Dark Mode - <h1>Supporting Basic Dark Mode</h1> <p>2023-03-07</p> <p>The default <code>barf</code> site generator now supports basic dark mode functionality. This has been achieved by including the standard <code>color-scheme</code> meta tag in the core <code>header.html</code> file:</p> <pre><code>&lt;meta name=&quot;color-scheme&quot; content=&quot;dark light&quot;&gt; @@ -299,14 +299,14 @@ sudo ln -fs /opt/homebrew/bin/gdate /usr/local/bin/dat </blockquote> <h2>Minor Caveat</h2> <p>Unfortunately, Safari still has minor <code>ahref</code> / link color issue when defaulting to browser dark mode. If this is a problem for your own build of <code>barf</code>, take a look at a <a href="https://bt.ht/safari-default-dark-mode/">solution I wrote about here</a>.</p> -<p>Personally, I can't be bothered to add that extra code to this project. The Safari team needs to get their shit together and fix such a simple bug. Plus, you shouldn't be using Safari anyway - it's proprietary garbage.</p>]]> - /dark-mode - /dark-mode +<p>Personally, I can't be bothered to add that extra code to this project. The Safari team needs to get their shit together and fix such a simple bug. Plus, you shouldn't be using Safari anyway - it's proprietary garbage.</p> + https://barf.btxx.org/dark-mode + https://barf.btxx.org/dark-mode Tue, 07 Mar 2023 00:00:00 +0000 Cleaning Up barf's Structure - <h1>Cleaning Up barf's Structure</h1> <p>2023-10-09</p> <p>Things probably look a little different around here. Both in terms of this demo site <em>and</em> the core <code>barf</code> files itself.</p> <p>This project was always intended to be focused on Linux platforms. So, I've removed the included <code>barf_macos</code> and <code>barf_openbsd</code> files to keep the generator more streamlined. But have no fear! Instructions for both Mac and OpenBSD can still be found on the main blog:</p> @@ -323,9 +323,9 @@ pre{overflow:auto;} <p>Users still have the ability to tweak things as much as they'd like, but the standard look should be more than enough for anyone just focusing on writing. Dark mode has also been dropped but is easily added by adding the following inside the <code>head</code> tags:</p> <pre><code>&lt;meta name=&quot;color-scheme&quot; content=&quot;dark light&quot;&gt; </code></pre> -<p>Hopefully these changes reduce the overall scope of the project, which was a main point made on the README originally!</p>]]> - /cleanup - /cleanup +<p>Hopefully these changes reduce the overall scope of the project, which was a main point made on the README originally!</p> + https://barf.btxx.org/cleanup + https://barf.btxx.org/cleanup Mon, 09 Oct 2023 00:00:00 +0000 blob - 417afa57f23ea7e76a16ddf66df1d205c1faf364 blob + 29715cd9b86ebe59a4f47c50bcac1cb050423795 --- build/websites/index.html +++ build/websites/index.html @@ -5,7 +5,8 @@ Websites Built with `barf` - + + blob - b621f2eae62098ec2aef7e62d89d47583443b05d blob + 7b95bf6a3c3abe8f91cb5d057a169917588e62d2 --- header.html +++ header.html @@ -5,7 +5,8 @@ {{TITLE}} - + +