M README => README +0 -4
@@ 80,10 80,6 @@ cd smu
sudo make install
```
-> **Important**: If you are running `barf` on either OpenBSD or MacOs, be sure
-to edit the main `Makefile` and change the `./barf` command under `build` to
-either `./barf_openbsd` or `./barf_macos` respectively.
-
Then clone this directory and build:
```sh
M barf => barf +6 -2
@@ 20,13 20,17 @@ index_html() {
# Intro text
$MARKDOWN index.md
+ echo "<ul>"
+
# Posts
while read -r f title created; do
link=$(echo "$f" | sed -E 's|.*/(.*).md|\1/|')
created=$(echo $(head -3 "$f" | tail -1))
- echo "<span class='created'>$created — <a href=\"$link\">$title</a></span>"
+ echo "<li>$created · <a href=\"$link\">$title</a></li>"
done < "$1" | sort -r
+ echo "</ul>"
+
# Print footer after post list
cat footer.html
}
@@ 84,7 88,7 @@ write_page() {
> "$target" && cat footer.html >> "$target"
}
-rm -fr build && mkdir build
+rm -rf build && mkdir build
# Blog posts
index_tsv posts | sort -rt " " -k 3 > build/posts.tsv
D barf_macos => barf_macos +0 -105
@@ 1,105 0,0 @@
-#!/bin/sh
-set -eu
-MARKDOWN=smu
-IFS=' '
-
-# Create tab separated file with filename, title, creation date, last update
-index_tsv() {
- for f in "$1"/*.md
- do
- title=$(gsed -n '/^# /{s/# //p; q}' "$f")
- printf '%s\t%s\t%s\t%s\n' "$f" "${title:="No Title"}"
- done
-}
-
-index_html() {
- # Print header
- title=$(gsed -n '/^# /{s/# //p; q}' index.md)
- gsed "s/{{TITLE}}/$title/" header.html
-
- # Intro text
- $MARKDOWN index.md
-
- echo "<ul>"
-
- # Posts
- while read -r f title created; do
- link=$(echo "$f" | gsed -E 's|.*/(.*).md|\1/|')
- created=$(echo $(head -3 "$f" | tail -1))
- echo "<li>$created <br> <a href=\"$link\">$title</a></li><br>"
- done < "$1" | sort -r
-
- echo "</ul>"
-
- # Print footer after post list
- cat footer.html
-}
-
-atom_xml() {
- uri=$(gsed -rn '/atom.xml/ s/.*href="([^"]*)".*/\1/ p' header.html)
- domain=$(echo "$uri" | gsed 's/atom.xml//g' | gsed 's|/[^/]*$||')
-
- cat <<EOF
-<?xml version="1.0" encoding="utf-8"?>
-<feed xmlns="http://www.w3.org/2005/Atom">
- <title>$(gsed -n '/^# /{s/# //p; q}' index.md)</title>
- <link href="$domain/atom.xml" rel="self" />
- <updated>$(date +%FT%TZ)</updated>
- <author>
- <name>$(git config user.name)</name>
- </author>
- <id>$domain,$(date +%F):default-atom-feed/</id>
-EOF
-
- while read -r f title created; do
-
- content=$($MARKDOWN "$f" | gsed 's/&/\&/g; s/</\</g; s/>/\>/g;
-s/"/\"/g; s/'"'"'/\'/g')
- post_link=$(echo "$f" | gsed -E 's|posts/(.*).md|\1|')
- basic_date=$(echo $(head -3 "$f" | tail -1))
- published_date=$(gdate -d $basic_date -u +%Y-%m-%dT10:%M:%SZ)
-
- cat <<EOF
- <entry>
- <title>$title</title>
- <content type="html">$content</content>
- <link href="$domain/$post_link"/>
- <id>$domain/$post_link</id>
- <updated>$published_date</updated>
- <published>$published_date</published>
- </entry>
-EOF
- done < "$1"
-
- echo '</feed>'
-}
-
-write_page() {
- filename=$1
- directory=$(echo $(basename "$filename" .md))
- $(mkdir -p build/$directory)
- target=$(echo "$filename" | gsed -r 's|\w+/(.*).md|build/\1/index.html|')
- created=$(echo $(head -3 "$filename" | tail -1))
- title=$2
-
- $MARKDOWN "$filename" | \
- cat header.html - |\
- gsed "s|{{TITLE}}|$title|" \
- > "$target" && cat footer.html >> "$target"
-}
-
-rm -rf build && mkdir build
-
-# Blog posts
-index_tsv posts | sort -rt " " -k 3 > build/posts.tsv
-index_html build/posts.tsv > build/index.html
-atom_xml build/posts.tsv > build/atom.xml
-while read -r f title created; do
- write_page "$f" "$title" "$created"
-done < build/posts.tsv
-
-# Pages
-index_tsv pages > build/pages.tsv
-while read -r f title created; do
- write_page "$f" "$title" "$created"
-done < build/pages.tsv
D barf_openbsd => barf_openbsd +0 -105
@@ 1,105 0,0 @@
-#!/bin/sh
-set -eu
-MARKDOWN=smu
-IFS=' '
-
-# Create tab separated file with filename, title, creation date, last update
-index_tsv() {
- for f in "$1"/*.md
- do
- title=$(gsed -n '/^# /{s/# //p; q}' "$f")
- printf '%s\t%s\t%s\t%s\n' "$f" "${title:="No Title"}"
- done
-}
-
-index_html() {
- # Print header
- title=$(gsed -n '/^# /{s/# //p; q}' index.md)
- gsed "s/{{TITLE}}/$title/" header.html
-
- # Intro text
- $MARKDOWN index.md
-
- echo "<ul>"
-
- # Posts
- while read -r f title created; do
- link=$(echo "$f" | gsed -E 's|.*/(.*).md|\1/|')
- created=$(echo $(head -3 "$f" | tail -1))
- echo "<li>$created <br> <a href=\"$link\">$title</a></li><br>"
- done < "$1" | sort -r
-
- echo "</ul>"
-
- # Print footer after post list
- cat footer.html
-}
-
-atom_xml() {
- uri=$(gsed -rn '/atom.xml/ s/.*href="([^"]*)".*/\1/ p' header.html)
- domain=$(echo "$uri" | gsed 's/atom.xml//g' | gsed 's|/[^/]*$||')
-
- cat <<EOF
-<?xml version="1.0" encoding="utf-8"?>
-<feed xmlns="http://www.w3.org/2005/Atom">
- <title>$(gsed -n '/^# /{s/# //p; q}' index.md)</title>
- <link href="$domain/atom.xml" rel="self" />
- <updated>$(date +%FT%TZ)</updated>
- <author>
- <name>$(git config user.name)</name>
- </author>
- <id>$domain,$(date +%F):default-atom-feed/</id>
-EOF
-
- while read -r f title created; do
-
- content=$($MARKDOWN "$f" | gsed 's/&/\&/g; s/</\</g; s/>/\>/g;
-s/"/\"/g; s/'"'"'/\'/g')
- post_link=$(echo "$f" | gsed -E 's|posts/(.*).md|\1|')
- basic_date=$(echo $(head -3 "$f" | tail -1))
- published_date=$(gdate -d $basic_date -u +%Y-%m-%dT10:%M:%SZ)
-
- cat <<EOF
- <entry>
- <title>$title</title>
- <content type="html">$content</content>
- <link href="$domain/$post_link"/>
- <id>$domain/$post_link</id>
- <updated>$published_date</updated>
- <published>$published_date</published>
- </entry>
-EOF
- done < "$1"
-
- echo '</feed>'
-}
-
-write_page() {
- filename=$1
- directory=$(echo $(basename "$filename" .md))
- $(mkdir -p build/$directory)
- target=$(echo "$filename" | gsed -r 's|\w+/(.*).md|build/\1/index.html|')
- created=$(echo $(head -3 "$filename" | tail -1))
- title=$2
-
- $MARKDOWN "$filename" | \
- cat header.html - |\
- gsed "s|{{TITLE}}|$title|" \
- > "$target" && cat footer.html >> "$target"
-}
-
-rm -rf build && mkdir build
-
-# Blog posts
-index_tsv posts | sort -rt " " -k 3 > build/posts.tsv
-index_html build/posts.tsv > build/index.html
-atom_xml build/posts.tsv > build/atom.xml
-while read -r f title created; do
- write_page "$f" "$title" "$created"
-done < build/posts.tsv
-
-# Pages
-index_tsv pages > build/pages.tsv
-while read -r f title created; do
- write_page "$f" "$title" "$created"
-done < build/pages.tsv
M build/about/index.html => build/about/index.html +10 -105
@@ 3,116 3,14 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
<title>About `barf`</title>
<link href="https://barf.bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
- <style>
- * {
- box-sizing: border-box;
- }
- body {
- font-family: sans-serif;
- line-height: 1.45;
- margin: 0 auto;
- max-width: 45rem;
- padding: 0 15px;
- }
- hr {
- background-color: grey;
- border: 0;
- height: 1px;
- margin: 2rem 0;
- }
- nav {
- margin: 2rem 0 0;
- }
- main {
- hyphens: auto;
- }
- main p {
- margin: 1rem;
- }
- h1,h2,h3,h4 {
- margin: 2rem 0 0;
- }
- h1 {
- margin-bottom: 0.5rem;
- }
- h1 + p {
- margin: 0 0 1rem;
- }
- span.created {
- display: block;
- margin: 4px 15px;
- }
- img {
- border: 1px solid lightgrey;
- height: auto;
- max-width: 100%;
- width: auto;
- }
- blockquote {
- border: 1px solid;
- border-left: 6px solid;
- margin: 2rem 0;
- padding: 10px;
- }
- blockquote p {
- margin: 0;
- }
- figure {
- margin: 2rem 0;
- }
- figcaption {
- color: slategrey;
- }
- code {
- border: 1px solid;
- padding: 0.1rem 0.3rem;
- tab-size: 4;
- }
- pre {
- border: 1px solid;
- }
- pre code {
- border: 0;
- display: block;
- overflow-x: auto;
- padding: 0.3rem 0.6rem;
- }
- table {
- border-collapse: collapse;
- margin: 2rem 0;
- text-align: left;
- width: 100%;
- }
- tr {
- border-bottom: 1px solid lightgrey;
- }
- tr:nth-of-type(odd) td {
- background-color: #f8f8f8;
- }
- th,td {
- padding: 6px;
- }
- footer {
- border-top: 1px dashed grey;
- margin: 2rem 0;
- padding: 1rem 15px;
- }
- @supports (color-scheme: dark light) {
- @media screen and (prefers-color-scheme: dark) {
- a:link {color: #9e9eff;}
- a:visited {color: #d0adf0;}
- a:active {color: red;}
- }
- }
- </style>
+ <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}</style>
</head>
<nav>
- <a href="/">Home</a><span> | </span><a href="/about">About</a><span> | </span><a href="/websites">Websites</a><span> | </span><a href="https://git.sr.ht/~bt/barf">Source Code</a>
+ <a href="#menu">Menu ↓</a>
</nav>
<main>
@@ 122,7 20,14 @@
<p>This project was created by me, <a href="https://bt.ht">Bradley Taunt</a>, out of frustration with overly complex and bloated blogging options. I tried <em>so many</em> "minimal" generators but each one ended up having some glaring issue or heavy reliance on dependencies. </p>
<p>I wanted to have a system that I could easily replicate on any Linux machine. Something that didn't require me to download half the internet just to get up and running. I'm a sucker for keeping things simple.</p>
<footer role="contentinfo">
- <span><a href="#">↑ Back to Top</a></span><br><br>
+ <hr>
+ <h3 id="menu">Menu Navigation</h3>
+ <ul>
+ <li><a href="/">Home</a></li>
+ <li><a href="/about">About</a></li>
+ <li><a href="/websites">Websites</a></li>
+ <li><a href="https://git.sr.ht/~bt/barf">Source Code</a></li>
+ </ul>
<small>
Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
The <a href="https://git.sr.ht/~bt/barf">code for this site</a> is <a href="https://git.sr.ht/~bt/barf/tree/master/item/LICENSE">MIT</a>.
M build/atom.xml => build/atom.xml +30 -8
@@ 1,10 1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
- <title></title>
+ <title>barf</title>
<link href="https://barf.bt.ht/atom.xml" rel="self" />
- <updated>2023-08-13T14:41:53Z</updated>
+ <updated>2023-10-09T09:32:08Z</updated>
<author>
- <name></name>
+ <name>Bradley Taunt</name>
</author>
<id>https://barf.bt.ht,2023-01-04:default-atom-feed/</id>
<entry>
@@ 16,11 16,8 @@
<p>Along with your Markdown parser of choice (<code>barf</code> assumes you will be using my version of <a href="https://git.sr.ht/~bt/smu">smu</a>) you will also need to install the required packages on your OpenBSD system:</p>
<pre><code>doas pkg_add rsync coreutils gsed cmake gcc
</code></pre>
-<p>Then ensure that your Makefile calls the proper <code>barf_openbsd</code> file:</p>
-<pre><code>build:
- sh ./barf_openbsd
-</code></pre>
-<p>After that, everything should work perfectly fine!</p></content>
+<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></content>
<link href="https://barf.bt.ht/openbsd"/>
<id>https://barf.bt.ht/openbsd</id>
<updated>2023-08-12T10:00:00Z</updated>
@@ 310,4 307,29 @@ sudo ln -fs /opt/homebrew/bin/gdate /usr/local/bin/date
<updated>2023-03-07T10:00:00Z</updated>
<published>2023-03-07T10:00:00Z</published>
</entry>
+ <entry>
+ <title>Cleaning Up barf's Structure</title>
+ <content type="html"><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>
+<ul>
+<li><a href="/macos">Running <code>barf</code> on MacOS</a></li>
+<li><a href="/openbsd">Running <code>barf</code> on OpenBSD</a></li>
+</ul>
+<p>As for the "default" look of <code>barf</code>, I've simplified things further. The total CSS styling now consists of only:</p>
+<pre><code>*{box-sizing:border-box;}
+body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}
+img{max-width:100%;}
+pre{overflow:auto;}
+</code></pre>
+<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></content>
+ <link href="https://barf.bt.ht/cleanup"/>
+ <id>https://barf.bt.ht/cleanup</id>
+ <updated>2023-10-09T10:00:00Z</updated>
+ <published>2023-10-09T10:00:00Z</published>
+ </entry>
</feed>
A build/cleanup/index.html => build/cleanup/index.html +48 -0
@@ 0,0 1,48 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="icon" href="data:,">
+ <title>Cleaning Up barf's Structure</title>
+ <link href="https://barf.bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
+ <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}</style>
+</head>
+
+<nav>
+ <a href="#menu">Menu ↓</a>
+</nav>
+
+<main>
+<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>
+<ul>
+<li><a href="/macos">Running <code>barf</code> on MacOS</a></li>
+<li><a href="/openbsd">Running <code>barf</code> on OpenBSD</a></li>
+</ul>
+<p>As for the "default" look of <code>barf</code>, I've simplified things further. The total CSS styling now consists of only:</p>
+<pre><code>*{box-sizing:border-box;}
+body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}
+img{max-width:100%;}
+pre{overflow:auto;}
+</code></pre>
+<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><meta name="color-scheme" content="dark light">
+</code></pre>
+<p>Hopefully these changes reduce the overall scope of the project, which was a main point made on the README originally!</p>
+<footer role="contentinfo">
+ <hr>
+ <h3 id="menu">Menu Navigation</h3>
+ <ul>
+ <li><a href="/">Home</a></li>
+ <li><a href="/about">About</a></li>
+ <li><a href="/websites">Websites</a></li>
+ <li><a href="https://git.sr.ht/~bt/barf">Source Code</a></li>
+ </ul>
+ <small>
+ Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
+ The <a href="https://git.sr.ht/~bt/barf">code for this site</a> is <a href="https://git.sr.ht/~bt/barf/tree/master/item/LICENSE">MIT</a>.
+ </small>
+</footer><
\ No newline at end of file
M build/dark-mode/index.html => build/dark-mode/index.html +10 -105
@@ 3,116 3,14 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
<title>Supporting Basic Dark Mode</title>
<link href="https://barf.bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
- <style>
- * {
- box-sizing: border-box;
- }
- body {
- font-family: sans-serif;
- line-height: 1.45;
- margin: 0 auto;
- max-width: 45rem;
- padding: 0 15px;
- }
- hr {
- background-color: grey;
- border: 0;
- height: 1px;
- margin: 2rem 0;
- }
- nav {
- margin: 2rem 0 0;
- }
- main {
- hyphens: auto;
- }
- main p {
- margin: 1rem;
- }
- h1,h2,h3,h4 {
- margin: 2rem 0 0;
- }
- h1 {
- margin-bottom: 0.5rem;
- }
- h1 + p {
- margin: 0 0 1rem;
- }
- span.created {
- display: block;
- margin: 4px 15px;
- }
- img {
- border: 1px solid lightgrey;
- height: auto;
- max-width: 100%;
- width: auto;
- }
- blockquote {
- border: 1px solid;
- border-left: 6px solid;
- margin: 2rem 0;
- padding: 10px;
- }
- blockquote p {
- margin: 0;
- }
- figure {
- margin: 2rem 0;
- }
- figcaption {
- color: slategrey;
- }
- code {
- border: 1px solid;
- padding: 0.1rem 0.3rem;
- tab-size: 4;
- }
- pre {
- border: 1px solid;
- }
- pre code {
- border: 0;
- display: block;
- overflow-x: auto;
- padding: 0.3rem 0.6rem;
- }
- table {
- border-collapse: collapse;
- margin: 2rem 0;
- text-align: left;
- width: 100%;
- }
- tr {
- border-bottom: 1px solid lightgrey;
- }
- tr:nth-of-type(odd) td {
- background-color: #f8f8f8;
- }
- th,td {
- padding: 6px;
- }
- footer {
- border-top: 1px dashed grey;
- margin: 2rem 0;
- padding: 1rem 15px;
- }
- @supports (color-scheme: dark light) {
- @media screen and (prefers-color-scheme: dark) {
- a:link {color: #9e9eff;}
- a:visited {color: #d0adf0;}
- a:active {color: red;}
- }
- }
- </style>
+ <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}</style>
</head>
<nav>
- <a href="/">Home</a><span> | </span><a href="/about">About</a><span> | </span><a href="/websites">Websites</a><span> | </span><a href="https://git.sr.ht/~bt/barf">Source Code</a>
+ <a href="#menu">Menu ↓</a>
</nav>
<main>
@@ 128,7 26,14 @@
<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>
<footer role="contentinfo">
- <span><a href="#">↑ Back to Top</a></span><br><br>
+ <hr>
+ <h3 id="menu">Menu Navigation</h3>
+ <ul>
+ <li><a href="/">Home</a></li>
+ <li><a href="/about">About</a></li>
+ <li><a href="/websites">Websites</a></li>
+ <li><a href="https://git.sr.ht/~bt/barf">Source Code</a></li>
+ </ul>
<small>
Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
The <a href="https://git.sr.ht/~bt/barf">code for this site</a> is <a href="https://git.sr.ht/~bt/barf/tree/master/item/LICENSE">MIT</a>.
M build/index.html => build/index.html +22 -117
@@ 3,136 3,41 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
- <title></title>
+ <title>barf</title>
<link href="https://barf.bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
- <style>
- * {
- box-sizing: border-box;
- }
- body {
- font-family: sans-serif;
- line-height: 1.45;
- margin: 0 auto;
- max-width: 45rem;
- padding: 0 15px;
- }
- hr {
- background-color: grey;
- border: 0;
- height: 1px;
- margin: 2rem 0;
- }
- nav {
- margin: 2rem 0 0;
- }
- main {
- hyphens: auto;
- }
- main p {
- margin: 1rem;
- }
- h1,h2,h3,h4 {
- margin: 2rem 0 0;
- }
- h1 {
- margin-bottom: 0.5rem;
- }
- h1 + p {
- margin: 0 0 1rem;
- }
- span.created {
- display: block;
- margin: 4px 15px;
- }
- img {
- border: 1px solid lightgrey;
- height: auto;
- max-width: 100%;
- width: auto;
- }
- blockquote {
- border: 1px solid;
- border-left: 6px solid;
- margin: 2rem 0;
- padding: 10px;
- }
- blockquote p {
- margin: 0;
- }
- figure {
- margin: 2rem 0;
- }
- figcaption {
- color: slategrey;
- }
- code {
- border: 1px solid;
- padding: 0.1rem 0.3rem;
- tab-size: 4;
- }
- pre {
- border: 1px solid;
- }
- pre code {
- border: 0;
- display: block;
- overflow-x: auto;
- padding: 0.3rem 0.6rem;
- }
- table {
- border-collapse: collapse;
- margin: 2rem 0;
- text-align: left;
- width: 100%;
- }
- tr {
- border-bottom: 1px solid lightgrey;
- }
- tr:nth-of-type(odd) td {
- background-color: #f8f8f8;
- }
- th,td {
- padding: 6px;
- }
- footer {
- border-top: 1px dashed grey;
- margin: 2rem 0;
- padding: 1rem 15px;
- }
- @supports (color-scheme: dark light) {
- @media screen and (prefers-color-scheme: dark) {
- a:link {color: #9e9eff;}
- a:visited {color: #d0adf0;}
- a:active {color: red;}
- }
- }
- </style>
+ <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}</style>
</head>
<nav>
- <a href="/">Home</a><span> | </span><a href="/about">About</a><span> | </span><a href="/websites">Websites</a><span> | </span><a href="https://git.sr.ht/~bt/barf">Source Code</a>
+ <a href="#menu">Menu ↓</a>
</nav>
<main>
-<p><img style="border:0;margin-top:2rem;" src="/public/images/barf.svg" alt="barf logo">
-</p>
+<h1>barf</h1>
<p><strong>barf is an extremely minimal blog generator.</strong></p>
<p>The entire build script is less than 100 lines of shell.</p>
<p>It could almost be called "suckless", but probably isn't. It was created for those focused on writing, not tinkering.</p>
-<p>You can learn more by reading the <a href="https://git.sr.ht/~bt/barf">official README</a>.</p>
-<p>You can also view the generated <a href="/atom.xml">Atom feed here</a></p>
-<blockquote><p><strong>barf</strong></p>
-<p>Blogs Are Really Fun</p>
-</blockquote>
+<p>You can learn more by reading the <a href="https://git.sr.ht/~bt/barf">official README</a> and view the generated <a href="/atom.xml">Atom feed here</a></p>
+<p><strong>barf</strong> = blogs are really fun</p>
<hr />
-<span class='created'>2023-08-12 — <a href="openbsd/">Running `barf` on OpenBSD</a></span>
-<span class='created'>2023-03-07 — <a href="dark-mode/">Supporting Basic Dark Mode</a></span>
-<span class='created'>2023-01-18 — <a href="macos/">Running `barf` on MacOS</a></span>
-<span class='created'>2023-01-05 — <a href="markdown-examples/">Markdown Examples in barf</a></span>
+<h3>Articles</h3>
+<ul>
+<li>2023-10-09 · <a href="cleanup/">Cleaning Up barf's Structure</a></li>
+<li>2023-08-12 · <a href="openbsd/">Running `barf` on OpenBSD</a></li>
+<li>2023-03-07 · <a href="dark-mode/">Supporting Basic Dark Mode</a></li>
+<li>2023-01-18 · <a href="macos/">Running `barf` on MacOS</a></li>
+<li>2023-01-05 · <a href="markdown-examples/">Markdown Examples in barf</a></li>
+</ul>
<footer role="contentinfo">
- <span><a href="#">↑ Back to Top</a></span><br><br>
+ <hr>
+ <h3 id="menu">Menu Navigation</h3>
+ <ul>
+ <li><a href="/">Home</a></li>
+ <li><a href="/about">About</a></li>
+ <li><a href="/websites">Websites</a></li>
+ <li><a href="https://git.sr.ht/~bt/barf">Source Code</a></li>
+ </ul>
<small>
Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
The <a href="https://git.sr.ht/~bt/barf">code for this site</a> is <a href="https://git.sr.ht/~bt/barf/tree/master/item/LICENSE">MIT</a>.
M build/macos/index.html => build/macos/index.html +10 -105
@@ 3,116 3,14 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
<title>Running `barf` on MacOS</title>
<link href="https://barf.bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
- <style>
- * {
- box-sizing: border-box;
- }
- body {
- font-family: sans-serif;
- line-height: 1.45;
- margin: 0 auto;
- max-width: 45rem;
- padding: 0 15px;
- }
- hr {
- background-color: grey;
- border: 0;
- height: 1px;
- margin: 2rem 0;
- }
- nav {
- margin: 2rem 0 0;
- }
- main {
- hyphens: auto;
- }
- main p {
- margin: 1rem;
- }
- h1,h2,h3,h4 {
- margin: 2rem 0 0;
- }
- h1 {
- margin-bottom: 0.5rem;
- }
- h1 + p {
- margin: 0 0 1rem;
- }
- span.created {
- display: block;
- margin: 4px 15px;
- }
- img {
- border: 1px solid lightgrey;
- height: auto;
- max-width: 100%;
- width: auto;
- }
- blockquote {
- border: 1px solid;
- border-left: 6px solid;
- margin: 2rem 0;
- padding: 10px;
- }
- blockquote p {
- margin: 0;
- }
- figure {
- margin: 2rem 0;
- }
- figcaption {
- color: slategrey;
- }
- code {
- border: 1px solid;
- padding: 0.1rem 0.3rem;
- tab-size: 4;
- }
- pre {
- border: 1px solid;
- }
- pre code {
- border: 0;
- display: block;
- overflow-x: auto;
- padding: 0.3rem 0.6rem;
- }
- table {
- border-collapse: collapse;
- margin: 2rem 0;
- text-align: left;
- width: 100%;
- }
- tr {
- border-bottom: 1px solid lightgrey;
- }
- tr:nth-of-type(odd) td {
- background-color: #f8f8f8;
- }
- th,td {
- padding: 6px;
- }
- footer {
- border-top: 1px dashed grey;
- margin: 2rem 0;
- padding: 1rem 15px;
- }
- @supports (color-scheme: dark light) {
- @media screen and (prefers-color-scheme: dark) {
- a:link {color: #9e9eff;}
- a:visited {color: #d0adf0;}
- a:active {color: red;}
- }
- }
- </style>
+ <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}</style>
</head>
<nav>
- <a href="/">Home</a><span> | </span><a href="/about">About</a><span> | </span><a href="/websites">Websites</a><span> | </span><a href="https://git.sr.ht/~bt/barf">Source Code</a>
+ <a href="#menu">Menu ↓</a>
</nav>
<main>
@@ 136,7 34,14 @@ sudo ln -fs /opt/homebrew/bin/gdate /usr/local/bin/date
</code></pre>
<p>Reload your <code>bash</code> instance and everything should work as intended!</p>
<footer role="contentinfo">
- <span><a href="#">↑ Back to Top</a></span><br><br>
+ <hr>
+ <h3 id="menu">Menu Navigation</h3>
+ <ul>
+ <li><a href="/">Home</a></li>
+ <li><a href="/about">About</a></li>
+ <li><a href="/websites">Websites</a></li>
+ <li><a href="https://git.sr.ht/~bt/barf">Source Code</a></li>
+ </ul>
<small>
Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
The <a href="https://git.sr.ht/~bt/barf">code for this site</a> is <a href="https://git.sr.ht/~bt/barf/tree/master/item/LICENSE">MIT</a>.
M build/markdown-examples/index.html => build/markdown-examples/index.html +10 -105
@@ 3,116 3,14 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
<title>Markdown Examples in barf</title>
<link href="https://barf.bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
- <style>
- * {
- box-sizing: border-box;
- }
- body {
- font-family: sans-serif;
- line-height: 1.45;
- margin: 0 auto;
- max-width: 45rem;
- padding: 0 15px;
- }
- hr {
- background-color: grey;
- border: 0;
- height: 1px;
- margin: 2rem 0;
- }
- nav {
- margin: 2rem 0 0;
- }
- main {
- hyphens: auto;
- }
- main p {
- margin: 1rem;
- }
- h1,h2,h3,h4 {
- margin: 2rem 0 0;
- }
- h1 {
- margin-bottom: 0.5rem;
- }
- h1 + p {
- margin: 0 0 1rem;
- }
- span.created {
- display: block;
- margin: 4px 15px;
- }
- img {
- border: 1px solid lightgrey;
- height: auto;
- max-width: 100%;
- width: auto;
- }
- blockquote {
- border: 1px solid;
- border-left: 6px solid;
- margin: 2rem 0;
- padding: 10px;
- }
- blockquote p {
- margin: 0;
- }
- figure {
- margin: 2rem 0;
- }
- figcaption {
- color: slategrey;
- }
- code {
- border: 1px solid;
- padding: 0.1rem 0.3rem;
- tab-size: 4;
- }
- pre {
- border: 1px solid;
- }
- pre code {
- border: 0;
- display: block;
- overflow-x: auto;
- padding: 0.3rem 0.6rem;
- }
- table {
- border-collapse: collapse;
- margin: 2rem 0;
- text-align: left;
- width: 100%;
- }
- tr {
- border-bottom: 1px solid lightgrey;
- }
- tr:nth-of-type(odd) td {
- background-color: #f8f8f8;
- }
- th,td {
- padding: 6px;
- }
- footer {
- border-top: 1px dashed grey;
- margin: 2rem 0;
- padding: 1rem 15px;
- }
- @supports (color-scheme: dark light) {
- @media screen and (prefers-color-scheme: dark) {
- a:link {color: #9e9eff;}
- a:visited {color: #d0adf0;}
- a:active {color: red;}
- }
- }
- </style>
+ <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}</style>
</head>
<nav>
- <a href="/">Home</a><span> | </span><a href="/about">About</a><span> | </span><a href="/websites">Websites</a><span> | </span><a href="https://git.sr.ht/~bt/barf">Source Code</a>
+ <a href="#menu">Menu ↓</a>
</nav>
<main>
@@ 350,7 248,14 @@ 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>
<footer role="contentinfo">
- <span><a href="#">↑ Back to Top</a></span><br><br>
+ <hr>
+ <h3 id="menu">Menu Navigation</h3>
+ <ul>
+ <li><a href="/">Home</a></li>
+ <li><a href="/about">About</a></li>
+ <li><a href="/websites">Websites</a></li>
+ <li><a href="https://git.sr.ht/~bt/barf">Source Code</a></li>
+ </ul>
<small>
Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
The <a href="https://git.sr.ht/~bt/barf">code for this site</a> is <a href="https://git.sr.ht/~bt/barf/tree/master/item/LICENSE">MIT</a>.
M build/openbsd/index.html => build/openbsd/index.html +12 -110
@@ 3,116 3,14 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
<title>Running `barf` on OpenBSD</title>
<link href="https://barf.bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
- <style>
- * {
- box-sizing: border-box;
- }
- body {
- font-family: sans-serif;
- line-height: 1.45;
- margin: 0 auto;
- max-width: 45rem;
- padding: 0 15px;
- }
- hr {
- background-color: grey;
- border: 0;
- height: 1px;
- margin: 2rem 0;
- }
- nav {
- margin: 2rem 0 0;
- }
- main {
- hyphens: auto;
- }
- main p {
- margin: 1rem;
- }
- h1,h2,h3,h4 {
- margin: 2rem 0 0;
- }
- h1 {
- margin-bottom: 0.5rem;
- }
- h1 + p {
- margin: 0 0 1rem;
- }
- span.created {
- display: block;
- margin: 4px 15px;
- }
- img {
- border: 1px solid lightgrey;
- height: auto;
- max-width: 100%;
- width: auto;
- }
- blockquote {
- border: 1px solid;
- border-left: 6px solid;
- margin: 2rem 0;
- padding: 10px;
- }
- blockquote p {
- margin: 0;
- }
- figure {
- margin: 2rem 0;
- }
- figcaption {
- color: slategrey;
- }
- code {
- border: 1px solid;
- padding: 0.1rem 0.3rem;
- tab-size: 4;
- }
- pre {
- border: 1px solid;
- }
- pre code {
- border: 0;
- display: block;
- overflow-x: auto;
- padding: 0.3rem 0.6rem;
- }
- table {
- border-collapse: collapse;
- margin: 2rem 0;
- text-align: left;
- width: 100%;
- }
- tr {
- border-bottom: 1px solid lightgrey;
- }
- tr:nth-of-type(odd) td {
- background-color: #f8f8f8;
- }
- th,td {
- padding: 6px;
- }
- footer {
- border-top: 1px dashed grey;
- margin: 2rem 0;
- padding: 1rem 15px;
- }
- @supports (color-scheme: dark light) {
- @media screen and (prefers-color-scheme: dark) {
- a:link {color: #9e9eff;}
- a:visited {color: #d0adf0;}
- a:active {color: red;}
- }
- }
- </style>
+ <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}</style>
</head>
<nav>
- <a href="/">Home</a><span> | </span><a href="/about">About</a><span> | </span><a href="/websites">Websites</a><span> | </span><a href="https://git.sr.ht/~bt/barf">Source Code</a>
+ <a href="#menu">Menu ↓</a>
</nav>
<main>
@@ 123,13 21,17 @@
<p>Along with your Markdown parser of choice (<code>barf</code> assumes you will be using my version of <a href="https://git.sr.ht/~bt/smu">smu</a>) you will also need to install the required packages on your OpenBSD system:</p>
<pre><code>doas pkg_add rsync coreutils gsed cmake gcc
</code></pre>
-<p>Then ensure that your Makefile calls the proper <code>barf_openbsd</code> file:</p>
-<pre><code>build:
- sh ./barf_openbsd
-</code></pre>
-<p>After that, everything should work perfectly fine!</p>
+<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>
<footer role="contentinfo">
- <span><a href="#">↑ Back to Top</a></span><br><br>
+ <hr>
+ <h3 id="menu">Menu Navigation</h3>
+ <ul>
+ <li><a href="/">Home</a></li>
+ <li><a href="/about">About</a></li>
+ <li><a href="/websites">Websites</a></li>
+ <li><a href="https://git.sr.ht/~bt/barf">Source Code</a></li>
+ </ul>
<small>
Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
The <a href="https://git.sr.ht/~bt/barf">code for this site</a> is <a href="https://git.sr.ht/~bt/barf/tree/master/item/LICENSE">MIT</a>.
M build/posts.tsv => build/posts.tsv +1 -0
@@ 2,3 2,4 @@ posts/openbsd.md Running `barf` on OpenBSD
posts/markdown-examples.md Markdown Examples in barf
posts/macos.md Running `barf` on MacOS
posts/dark-mode.md Supporting Basic Dark Mode
+posts/cleanup.md Cleaning Up barf's Structure
M build/websites/index.html => build/websites/index.html +10 -107
@@ 3,116 3,14 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
<title>Websites Built with `barf`</title>
<link href="https://barf.bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
- <style>
- * {
- box-sizing: border-box;
- }
- body {
- font-family: sans-serif;
- line-height: 1.45;
- margin: 0 auto;
- max-width: 45rem;
- padding: 0 15px;
- }
- hr {
- background-color: grey;
- border: 0;
- height: 1px;
- margin: 2rem 0;
- }
- nav {
- margin: 2rem 0 0;
- }
- main {
- hyphens: auto;
- }
- main p {
- margin: 1rem;
- }
- h1,h2,h3,h4 {
- margin: 2rem 0 0;
- }
- h1 {
- margin-bottom: 0.5rem;
- }
- h1 + p {
- margin: 0 0 1rem;
- }
- span.created {
- display: block;
- margin: 4px 15px;
- }
- img {
- border: 1px solid lightgrey;
- height: auto;
- max-width: 100%;
- width: auto;
- }
- blockquote {
- border: 1px solid;
- border-left: 6px solid;
- margin: 2rem 0;
- padding: 10px;
- }
- blockquote p {
- margin: 0;
- }
- figure {
- margin: 2rem 0;
- }
- figcaption {
- color: slategrey;
- }
- code {
- border: 1px solid;
- padding: 0.1rem 0.3rem;
- tab-size: 4;
- }
- pre {
- border: 1px solid;
- }
- pre code {
- border: 0;
- display: block;
- overflow-x: auto;
- padding: 0.3rem 0.6rem;
- }
- table {
- border-collapse: collapse;
- margin: 2rem 0;
- text-align: left;
- width: 100%;
- }
- tr {
- border-bottom: 1px solid lightgrey;
- }
- tr:nth-of-type(odd) td {
- background-color: #f8f8f8;
- }
- th,td {
- padding: 6px;
- }
- footer {
- border-top: 1px dashed grey;
- margin: 2rem 0;
- padding: 1rem 15px;
- }
- @supports (color-scheme: dark light) {
- @media screen and (prefers-color-scheme: dark) {
- a:link {color: #9e9eff;}
- a:visited {color: #d0adf0;}
- a:active {color: red;}
- }
- }
- </style>
+ <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}</style>
</head>
<nav>
- <a href="/">Home</a><span> | </span><a href="/about">About</a><span> | </span><a href="/websites">Websites</a><span> | </span><a href="https://git.sr.ht/~bt/barf">Source Code</a>
+ <a href="#menu">Menu ↓</a>
</nav>
<main>
@@ 120,11 18,16 @@
<p>Send an email to brad [at] bt [dot] ht if you would like me to add your barf-generated website to this list.</p>
<ul>
<li><a href="https://bt.ht">bt.ht</a></li>
-<li><a href="https://hamblingreen.com">hamblingreen.com</a></li>
-<li><a href="https://andersamer.com/blog/">andersamer.com/blog/</a></li>
</ul>
<footer role="contentinfo">
- <span><a href="#">↑ Back to Top</a></span><br><br>
+ <hr>
+ <h3 id="menu">Menu Navigation</h3>
+ <ul>
+ <li><a href="/">Home</a></li>
+ <li><a href="/about">About</a></li>
+ <li><a href="/websites">Websites</a></li>
+ <li><a href="https://git.sr.ht/~bt/barf">Source Code</a></li>
+ </ul>
<small>
Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
The <a href="https://git.sr.ht/~bt/barf">code for this site</a> is <a href="https://git.sr.ht/~bt/barf/tree/master/item/LICENSE">MIT</a>.
M => +8 -1
@@ 1,5 1,12 @@
<footer role="contentinfo">
<span><a href="#">↑ Back to Top</a></span><br><br>
<hr>
<h3 id="menu">Menu Navigation</h3>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about">About</a></li>
<li><a href="/websites">Websites</a></li>
<li><a href="https://git.sr.ht/~bt/barf">Source Code</a></li>
</ul>
<small>
Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
The <a href="https://git.sr.ht/~bt/barf">code for this site</a> is <a href="https://git.sr.ht/~bt/barf/tree/master/item/LICENSE">MIT</a>.
M => +2 -104
@@ 3,116 3,14 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
<title>{{TITLE}}</title>
<link href="https://barf.bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
<style>
* {
box-sizing: border-box;
}
body {
font-family: sans-serif;
line-height: 1.45;
margin: 0 auto;
max-width: 45rem;
padding: 0 15px;
}
hr {
background-color: grey;
border: 0;
height: 1px;
margin: 2rem 0;
}
nav {
margin: 2rem 0 0;
}
main {
hyphens: auto;
}
main p {
margin: 1rem;
}
h1,h2,h3,h4 {
margin: 2rem 0 0;
}
h1 {
margin-bottom: 0.5rem;
}
h1 + p {
margin: 0 0 1rem;
}
span.created {
display: block;
margin: 4px 15px;
}
img {
border: 1px solid lightgrey;
height: auto;
max-width: 100%;
width: auto;
}
blockquote {
border: 1px solid;
border-left: 6px solid;
margin: 2rem 0;
padding: 10px;
}
blockquote p {
margin: 0;
}
figure {
margin: 2rem 0;
}
figcaption {
color: slategrey;
}
code {
border: 1px solid;
padding: 0.1rem 0.3rem;
tab-size: 4;
}
pre {
border: 1px solid;
}
pre code {
border: 0;
display: block;
overflow-x: auto;
padding: 0.3rem 0.6rem;
}
table {
border-collapse: collapse;
margin: 2rem 0;
text-align: left;
width: 100%;
}
tr {
border-bottom: 1px solid lightgrey;
}
tr:nth-of-type(odd) td {
background-color: #f8f8f8;
}
th,td {
padding: 6px;
}
footer {
border-top: 1px dashed grey;
margin: 2rem 0;
padding: 1rem 15px;
}
@supports (color-scheme: dark light) {
@media screen and (prefers-color-scheme: dark) {
a:link {color: #9e9eff;}
a:visited {color: #d0adf0;}
a:active {color: red;}
}
}
</style>
<style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}</style>
</head>
<nav>
<a href="/">Home</a><span> | </span><a href="/about">About</a><span> | </span><a href="/websites">Websites</a><span> | </span><a href="https://git.sr.ht/~bt/barf">Source Code</a>
<a href="#menu">Menu ↓</a>
</nav>
<main>
M index.md => index.md +5 -7
@@ 1,4 1,4 @@
-<img style="border:0;margin-top:2rem;" src="/public/images/barf.svg" alt="barf logo">
+# barf
**barf is an extremely minimal blog generator.**
@@ 6,12 6,10 @@ The entire build script is less than 100 lines of shell.
It could almost be called "suckless", but probably isn't. It was created for those focused on writing, not tinkering.
-You can learn more by reading the [official README](https://git.sr.ht/~bt/barf).
+You can learn more by reading the [official README](https://git.sr.ht/~bt/barf) and view the generated [Atom feed here](/atom.xml)
-You can also view the generated [Atom feed here](/atom.xml)
-
-> **barf**
->
-> Blogs Are Really Fun
+**barf** = blogs are really fun
---
+
+### Articles
M pages/websites.md => pages/websites.md +0 -2
@@ 3,5 3,3 @@
Send an email to brad [at] bt [dot] ht if you would like me to add your barf-generated website to this list.
- [bt.ht](https://bt.ht)
-- [hamblingreen.com](https://hamblingreen.com)
-- [andersamer.com/blog/](https://andersamer.com/blog/)
A posts/cleanup.md => posts/cleanup.md +27 -0
@@ 0,0 1,27 @@
+# Cleaning Up barf's Structure
+
+2023-10-09
+
+Things probably look a little different around here. Both in terms of this demo site *and* the core `barf` files itself.
+
+This project was always intended to be focused on Linux platforms. So, I've removed the included `barf_macos` and `barf_openbsd` 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:
+
+- [Running `barf` on MacOS](/macos)
+- [Running `barf` on OpenBSD](/openbsd)
+
+As for the "default" look of `barf`, I've simplified things further. The total CSS styling now consists of only:
+
+```
+*{box-sizing:border-box;}
+body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}
+img{max-width:100%;}
+pre{overflow:auto;}
+```
+
+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 `head` tags:
+
+```
+<meta name="color-scheme" content="dark light">
+```
+
+Hopefully these changes reduce the overall scope of the project, which was a main point made on the README originally!<
\ No newline at end of file
M posts/openbsd.md => posts/openbsd.md +2 -7
@@ 12,11 12,6 @@ Along with your Markdown parser of choice (`barf` assumes you will be using my v
doas pkg_add rsync coreutils gsed cmake gcc
```
-Then ensure that your Makefile calls the proper `barf_openbsd` file:
+Then ensure that you alter all instances of `sed` with `gsed` in the core `barf` file. (Or make an alias if you'd prefer not to alter the main file)
-```
-build:
- sh ./barf_openbsd
-```
-
-After that, everything should work perfectly fine!
+After that, everything should work perfectly fine when building!