diff options
Diffstat (limited to 'build/my-static-blog-publishing-setup/index.html')
-rw-r--r-- | build/my-static-blog-publishing-setup/index.html | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/build/my-static-blog-publishing-setup/index.html b/build/my-static-blog-publishing-setup/index.html new file mode 100644 index 0000000..e5af89b --- /dev/null +++ b/build/my-static-blog-publishing-setup/index.html @@ -0,0 +1,95 @@ +<!doctype html> +<html lang="en" id="top"> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="icon" href="data:,"> + <title>My Static Blog Publishing Setup and an Apology to RSS Subscribers</title> + <link href="https://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;}table{text-align:left;width:100%;}</style> +</head> + +<nav> + <a href="#menu">Menu ↓</a> +</nav> + +<main> +<h1>My Static Blog Publishing Setup and an Apology to RSS Subscribers</h1> +<p>2022-03-21</p> +<p>In case you missed it, this website is now generated with pure HTML & CSS. Although, generated isn't the proper way to describe it anymore. <em>Written</em> is a better description.</p> +<p>No more Markdown files. No more build scripts. No more Jekyll. Clean, simple, static HTML & CSS is my "CMS". More on that in a moment. First, I must apologize.</p> +<h2>I'm Sorry Dear RSS Subscribers</h2> +<p>RSS feeds are tricky things for me personally. I always botch them with a site redesign or a re-structure of my previous posts. Those of you subscribed via RSS were likely bombarded with post spam when I rebuilt this website. Sorry about that - I know how annoying that can be.</p> +<p>Fortunately, that all stops today. Moving forward my RSS feed (Atom) will be edited manually with every new post I write. Each entry will feature the post title, post url, and post date. No summaries or full-inline content will be included (since that would involve a great amount of extra overhead). RSS subs will need to follow the link directly if they are interested in the article itself. I hope this doesn't anger too many readers...</p> +<p>Again, sorry everyone.</p> +<h2>What is this New Blog "System"</h2> +<p>This publishing flow isn't for everyone and is less flexible than pre-existing static site generators (referred to as SSGs moving forward). For me though, it works. I find it more flexible than most SSGs.</p> +<p>There are a couple articles that explain the reasoning behind this system better than I could (plus, why would I repeat the same points?):</p> +<ul> +<li><a href="http://john.ankarstrom.se/html/">Writing HTML in HTML</a></li> +<li><a href="https://blog.steren.fr/2020/my-stack-will-outlive-yours/">My stack will outlive yours</a></li> +</ul> +<p>So, what does my blog-posting system look like?</p> +<h2>Simple Explanation</h2> +<ol> +<li>Copy an existing article's <code>HTML</code> file</li> +<li>Change file name, edit the page title, heading, post date and comment link</li> +<li>Write the new article content</li> +<li>Make manual new entry in RSS feed</li> +<li>Save changes, push to git repo</li> +<li>Sync new file(s) / changes to remote server</li> +</ol> +<p>Pretty simple, eh? Let's break things down into greater detail though...</p> +<h2>Detailed Explanation</h2> +<h4>Text Editor</h4> +<p>I code and write everything exclusively in Sublime Text on my MacBook Air. I know, it's not an open source editor, but I love how incredibly fast and intuitive it is. I used VSCode in the past but ended up requiring far too many plugins to get things setup the way I like it. Sublime Text works best for me even right out of the box. (I do need Emmet and theming changes though).</p> +<p>I perform the following for a new article:</p> +<ul> +<li>Copy an existing article, ie. <code>blog-post-1.html</code></li> +<li>Rename article file name, ie. <code>blog-post-2.html</code></li> +<li>Open this newly created file and change: +<ul> +<li>page <code>title</code> tag</li> +<li>page <code>h1</code> heading and top bar text</li> +<li><code>time</code> tag to match publish date</li> +<li>comment <code>mailto:</code> link url</li> +</ul> +</li> +<li>Start writing content inside the <code>article</code> section</li> +</ul> +<p>Once the article is complete, I add a static entry in my <code>feed.xml</code> and run a crude rsync script. More on that below.</p> +<h4>Git</h4> +<p>Normally I would pull, commit and push directly in my Terminal - but lately I've been enjoying my time using Sublime Merge. I'm a sucker for visually appealing GUI applications and Merge is the perfect balance of simplicity and beauty. I recommend it if you haven't tried it yet.</p> +<h4>Hosting</h4> +<p>This blog is now hosted through NearlyFreeSpeech. I could opt for a free service like Netlify or DigitalOcean Apps but I feel it's important to help support communities that align with my own core beliefs. From their <a href="https://www.nearlyfreespeech.net/about/">about page</a>:</p> +<blockquote><p>NearlyFreeSpeech.NET is about three things: fairness, innovation, and free speech.</p> +</blockquote> +<p>Hard to argue with those principles. If you're feeling generous, I'd greatly appreciate anyone who considers contributing to <a href="https://www.nearlyfreespeech.net/contribute/tdarb.org">offset this website's hosting costs through NearlyFreeSpeech</a> (code: tdarb). No money is directly handed to me, it pays NFS directly for hosting fees. Donate if you feel like this humble blog of mine has helped you in any way. No pressure!</p> +<p>NFS gives me server access via <code>SSH</code> (and even <code>SFTP</code> if I desire) which makes things simple to sync my local files with production code. This is handled via rsync with a basic <code>deploy.sh</code> script:</p> +<pre><code>rsync -vrzc --exclude 'deploy.sh' --exclude '.git' --delete ./ username@my.remote.nfs.server: +</code></pre> +<p>The included parameters ensure files with a conflicting checksum are updated on the server, instead of re-syncing all the files every time the script runs. That would be overkill.</p> +<h2>Closing Thoughts</h2> +<p>I love this new setup. It's portable, lightweight, has zero dependencies, and gives me the opportunity to write directly in HTML. Others may find this workflow idiotic or cumbersome but I couldn't disagree more. Site wide changes can be made with simple <code>Find/Replace</code> actions or even whipping up a basic script. Things should be as complex as you wish to make them!</p> +<p>At the end of the day, anything that helps you be more efficient and gets you producing more content is a winning strategy in my book. Who knows, this concept could even inspire one random reader out there to do the same.</p> +<footer role="contentinfo"> + <h2>Menu Navigation</h2> + <ul id="menu"> + <li><a href="/">Home</a></li> + <li><a href="/projects">Projects</a></li> + <li><a href="/uses">Uses</a></li> + <li><a href="/wiki">Wiki</a></li> + <li><a href="/resume">Resume</a></li> + <li><a href="/colophon">Colophon</a></li> + <li><a href="/now">Now</a></li> + <li><a href="/donate">Donate</a></li> + <li><a href="/atom.xml">RSS</a></li> + <li><a href="#top">↑ Top of the page</a></li> + </ul> + <small> + Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br> + Maintained with ♥ for the web. <br> + Proud supporter of <a href="https://usefathom.com/ref/DKHJVX">Fathom</a> & <a href="https://nextdns.io/?from=74d3p3h8">NextDNS</a>. <br> + The content for this site is <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>.<br> The <a href="https://git.sr.ht/~bt/bt.ht">code for this site</a> is <a href="https://git.sr.ht/~bt/bt.ht/tree/master/item/LICENSE">MIT</a>. + </small> +</footer>
\ No newline at end of file |