Rename build file to avoid auto-builds
Add new website to sites page, update README and index for MacOS packages
Setup sourcehut build config
barf is an extremely minimal blog generator.
The entire build script is >170 lines of shell.
It could almost be called "suckless", but probably isn't.
(barf is a modified/forked version of Karl Bartel's fantastic blog.sh. Be sure to check it out since my version does things slightly different.)
You can see a live demo here
barf
blogs are really fun
barf was originally built on and for Linux, but has since been
updated to include support for both OpenBSD and MacOS out-of-the-box.
Example on Alpine:
sudo apk add rsync
Please refer to the main tutorial on setting up barf on OpenBSD: https://barf.btxx.org/openbsd
Example:
doas pkg_add coreutils gcc cmake gsed
Please refer to the main tutorial on setting up barf on MacOS: https://barf.btxx.org/macos
Example:
brew install coreutils gnu-sed rsync multimarkdown
Clone this repo and navigate inside it. Edit the "header.html" and "footer.html" files with your own information, navigation, etc.
Be sure to edit the domain variable inside barf or else your feed won't validate!
Build MultiMarkdown
git clone https://github.com/fletcher/MultiMarkdown-6.git
cd MultiMarkdown-6
sudo cmake . -DCMAKE_BUILD_TYPE=Release
sudo make
sudo make install
Install the required dependencies, then build:
make build
Your blog content will be in the build directory.
Now you can delete the dummy posts/pages and start making your own!
Media (such as images, videos) are placed in the "public" folder and
carried over to the "build" folder via rsync. You can easily remove
this altogether inside the main barf script if you plan to store
media elsewhere (or not use any at all).
The first line of any markdown file inside your posts directory
should start with a h1 heading, then a line break, then the date
in YYYY-MM-DD format.
Like so:
# This is the Post Title
2023-01-05
Changing this structure or date format will break things or require
you to edit the barf script accordingly.
Please send me patches via git email: [email protected]
Thanks!
Inside your project directory run:
make watch
cd build && python3 -m http.server 3003
Most likely not. I'm happy with how things are currently. If you want to add something - great! The point of this project is to give others the ability to fork it, tweak it, patch it, and share it as much as they'd like. The core of barf will remain minimal for this reason.
Of course, any patches that can help reduce the project's footprint or even speed things up are more than welcome!
Of course! Simply edit the main barf script and swap out lowdown with
something else. I wouldn't advise doing this if you already have pre-existing
content based-off lowdown, since this could break some of your pages.
But give lowdown a try - it is very lightweight and fast!
MORE FAQs TO COME...