From 1d280856feae01dc135cdbb28bfa681ad7d6a63e Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Thu, 6 Jun 2024 09:35:41 -0400 Subject: Update RSS structure, testing check for operating system --- barf | 6 ++--- build/about/index.html | 3 ++- build/atom.xml | 2 +- build/cleanup/index.html | 3 ++- build/dark-mode/index.html | 3 ++- build/index.html | 3 ++- build/macos/index.html | 3 ++- build/markdown-examples/index.html | 3 ++- build/openbsd/index.html | 3 ++- build/rss.xml | 46 +++++++++++++++++++------------------- build/websites/index.html | 3 ++- header.html | 3 ++- 12 files changed, 45 insertions(+), 36 deletions(-) diff --git a/barf b/barf index 528dece..a88f32a 100755 --- a/barf +++ b/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 diff --git a/build/about/index.html b/build/about/index.html index be0489e..fac6c41 100644 --- a/build/about/index.html +++ b/build/about/index.html @@ -5,7 +5,8 @@ About `barf` - + + diff --git a/build/atom.xml b/build/atom.xml index dfe09d2..dfdebe1 100644 --- a/build/atom.xml +++ b/build/atom.xml @@ -2,7 +2,7 @@ barf - 2024-06-06T08:34:47Z + 2024-06-06T08:48:45Z Bradley Taunt diff --git a/build/cleanup/index.html b/build/cleanup/index.html index 16b7672..4c24c20 100644 --- a/build/cleanup/index.html +++ b/build/cleanup/index.html @@ -5,7 +5,8 @@ Cleaning Up barf's Structure - + + diff --git a/build/dark-mode/index.html b/build/dark-mode/index.html index a5aaf19..1c2ecd5 100644 --- a/build/dark-mode/index.html +++ b/build/dark-mode/index.html @@ -5,7 +5,8 @@ Supporting Basic Dark Mode - + + diff --git a/build/index.html b/build/index.html index b47b9af..6786dc8 100644 --- a/build/index.html +++ b/build/index.html @@ -5,7 +5,8 @@ barf - + + diff --git a/build/macos/index.html b/build/macos/index.html index f3d1d74..02464e5 100644 --- a/build/macos/index.html +++ b/build/macos/index.html @@ -5,7 +5,8 @@ Running `barf` on MacOS - + + diff --git a/build/markdown-examples/index.html b/build/markdown-examples/index.html index 043a664..1e28801 100644 --- a/build/markdown-examples/index.html +++ b/build/markdown-examples/index.html @@ -5,7 +5,8 @@ Markdown Examples in barf - + + diff --git a/build/openbsd/index.html b/build/openbsd/index.html index 7d75ce1..1b80e58 100644 --- a/build/openbsd/index.html +++ b/build/openbsd/index.html @@ -5,7 +5,8 @@ Running `barf` on OpenBSD - + + diff --git a/build/rss.xml b/build/rss.xml index 065e51d..52220d3 100644 --- a/build/rss.xml +++ b/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/date <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/date </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 diff --git a/build/websites/index.html b/build/websites/index.html index 417afa5..29715cd 100644 --- a/build/websites/index.html +++ b/build/websites/index.html @@ -5,7 +5,8 @@ Websites Built with `barf` - + + diff --git a/header.html b/header.html index b621f2e..7b95bf6 100644 --- a/header.html +++ b/header.html @@ -5,7 +5,8 @@ {{TITLE}} - + + -- cgit v1.2.3-54-g00ecf