aboutsummaryrefslogtreecommitdiff
path: root/build/openring/index.html
diff options
context:
space:
mode:
authorbt <bt@btxx.org>2024-06-08 13:22:19 -0400
committerbt <bt@btxx.org>2024-06-08 13:22:19 -0400
commitdcfb172704f3afb68a30425029ec834be2883274 (patch)
tree02ac480745db802d7af03f3213a0c568322170e3 /build/openring/index.html
parente146f8a64c793c337999ce316b16ebe5fe6f2dab (diff)
More content porting, on-going markdown changes for lowdown support
Diffstat (limited to 'build/openring/index.html')
-rw-r--r--build/openring/index.html138
1 files changed, 86 insertions, 52 deletions
diff --git a/build/openring/index.html b/build/openring/index.html
index a5836b0..85449ba 100644
--- a/build/openring/index.html
+++ b/build/openring/index.html
@@ -1,55 +1,68 @@
<!doctype html>
-<html lang="en" id="top">
+<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:,">
<title>Building openring with Jekyll Build</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>
+ <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
+ <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="RSS feed for blog posts" />
+<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
</head>
<nav>
- <a href="#menu">Menu &darr;</a>
+ <a href="#menu">Menu &darr;</a>
</nav>
<main>
-<h1>Building openring with Jekyll Build</h1>
+<h1 id="building-openring-with-jekyll-build">Building openring with Jekyll Build</h1>
+
<p>2022-12-02</p>
-<p>I think it's great when bloggers post their own personal "reading list" of blogs they themselves follow. Whether this is a customized Blogroll page or footnotes in their individual articles, I find it really helpful to find more interesting content on the "indie" web. This isn't a new concept by any means, but I wanted something a little more "dynamic"[^1] for my own blog.</p>
-<p>After some digging I came across <a href="https://sr.ht/~sircmpwn/openring/">openring</a> and it's great. Fully customizable, lightweight and completely open source. What more could you ask for?</p>
-<p>So, I thought others might be interested in how I've implemented openring through my own Jekyll build system.</p>
-<h2>Installing openring</h2>
-<p>You can pull the project <a href="https://sr.ht/~sircmpwn/openring/">directly via SourceHut</a> if you wish, but I would recommend installing through your default package manager. I'm running Arch, so for me it was as simple as running:</p>
+
+<p>I think it&#8217;s great when bloggers post their own personal &#8220;reading list&#8221; of blogs they themselves follow. Whether this is a customized Blogroll page or footnotes in their individual articles, I find it really helpful to find more interesting content on the &#8220;indie&#8221; web. This isn&#8217;t a new concept by any means, but I wanted something a little more &#8220;dynamic&#8221;[^1] for my own blog.</p>
+
+<p>After some digging I came across <a href="https://sr.ht/~sircmpwn/openring/">openring</a> and it&#8217;s great. Fully customizable, lightweight and completely open source. What more could you ask for?</p>
+
+<p>So, I thought others might be interested in how I&#8217;ve implemented openring through my own Jekyll build system.</p>
+
+<h2 id="installing-openring">Installing openring</h2>
+
+<p>You can pull the project <a href="https://sr.ht/~sircmpwn/openring/">directly via SourceHut</a> if you wish, but I would recommend installing through your default package manager. I&#8217;m running Arch, so for me it was as simple as running:</p>
+
<pre><code>yay -S openring
</code></pre>
-<p>That's it. I now have full local access to openring!</p>
-<h2>Jekyll Includes</h2>
+
+<p>That&#8217;s it. I now have full local access to openring!</p>
+
+<h2 id="jekyll-includes">Jekyll Includes</h2>
+
<p>You <em>could</em> setup a whole new directory specifically for your openring files, but that seems like overkill. Instead, we will simply add two new files to our existing <code>_includes</code> directory. We will name these files <code>openring-in.html</code> and <code>openring-out.html</code>.</p>
-<h3>openring-in.html Contents</h3>
-<pre><code>&lt;!-- License-Id: CC0-1.0 --&gt;
-&lt;section class=&quot;webring&quot;&gt;
- &lt;h3&gt;Articles from blogs I follow around the world wide web&lt;/h3&gt;
- &lt;section class=&quot;articles&quot;&gt;
+
+<h3 id="openring-in.html-contents">openring-in.html Contents</h3>
+
+<pre><code>&#60;!-- License-Id: CC0-1.0 --&#62;
+&#60;section class="webring"&#62;
+ &#60;h3&#62;Articles from blogs I follow around the world wide web&#60;&#47;h3&#62;
+ &#60;section class="articles"&#62;
{{range .Articles}}
- &lt;div class=&quot;article&quot;&gt;
- &lt;h4 class=&quot;title&quot;&gt;
- &lt;a href=&quot;{{.Link}}&quot; rel=&quot;noopener&quot;&gt;{{.Title}}&lt;/a&gt;
- &lt;/h4&gt;
- &lt;p class=&quot;summary&quot;&gt;{{.Summary}}&lt;/p&gt;
- &lt;small class=&quot;source&quot;&gt;
- via &lt;a href=&quot;{{.SourceLink}}&quot;&gt;{{.SourceTitle}}&lt;/a&gt;
- &lt;/small&gt;
- &lt;small class=&quot;date&quot;&gt;{{.Date | datef &quot;January 2, 2006&quot;}}&lt;/small&gt;
- &lt;/div&gt;
+ &#60;div class="article"&#62;
+ &#60;h4 class="title"&#62;
+ &#60;a href="{{.Link}}" rel="noopener"&#62;{{.Title}}&#60;&#47;a&#62;
+ &#60;&#47;h4&#62;
+ &#60;p class="summary"&#62;{{.Summary}}&#60;&#47;p&#62;
+ &#60;small class="source"&#62;
+ via &#60;a href="{{.SourceLink}}"&#62;{{.SourceTitle}}&#60;&#47;a&#62;
+ &#60;&#47;small&#62;
+ &#60;small class="date"&#62;{{.Date | datef "January 2, 2006"}}&#60;&#47;small&#62;
+ &#60;&#47;div&#62;
{{end}}
- &lt;/section&gt;
- &lt;p class=&quot;attribution&quot;&gt;
+ &#60;&#47;section&#62;
+ &#60;p class="attribution"&#62;
Generated by
- &lt;a href=&quot;https://git.sr.ht/~sircmpwn/openring&quot;&gt;openring&lt;/a&gt;
- &lt;/p&gt;
-&lt;/section&gt;
-&lt;style&gt;
+ &#60;a href="https:&#47;&#47;git.sr.ht&#47;~sircmpwn&#47;openring"&#62;openring&#60;&#47;a&#62;
+ &#60;&#47;p&#62;
+&#60;&#47;section&#62;
+&#60;style&#62;
.webring .articles {
display: flex;
flex-wrap: wrap;
@@ -76,39 +89,60 @@
font-size: 0.8rem;
color: #555;
}
-&lt;/style&gt;
+&#60;&#47;style&#62;
</code></pre>
-<blockquote><p>Sidenote: You will get minor Liquid Syntax warnings in the console when running your website via <code>serve</code> or <code>build</code>. I don't really mind those warnings but if you do, feel free to move these files out into their own sub-directory in your project folder.</p>
+
+<blockquote>
+<p>Sidenote: You will get minor Liquid Syntax warnings in the console when running your website via <code>serve</code> or <code>build</code>. I don&#8217;t really mind those warnings but if you do, feel free to move these files out into their own sub-directory in your project folder.</p>
</blockquote>
-<h3>openring-out.html Contents</h3>
+
+<h3 id="openring-out.html-contents">openring-out.html Contents</h3>
+
<p>This will generate itself for us every time we rebuild our Jekyll website. It is important to note that any changes you make in this file will be overwritten the next time you rebuild! All custom styling or layout changes should be made in the <code>openring-in.html</code> file.</p>
-<h2>Our "New" Build Script</h2>
-<p>To simplify things, we are going to place our main commands in a single build script in the root directory of our Jekyll project. For my personal blog, I've named this file <code>build-site.sh</code>. I know - I'm extremely creative.</p>
+
+<h2 id="our-new-build-script">Our &#8220;New&#8221; Build Script</h2>
+
+<p>To simplify things, we are going to place our main commands in a single build script in the root directory of our Jekyll project. For my personal blog, I&#8217;ve named this file <code>build-site.sh</code>. I know - I&#8217;m extremely creative.</p>
+
<p>Place the following inside that file:</p>
+
<pre><code>openring \
- -s https://example.com/feed.xml \
- -s https://example.com/feed.xml \
- -s https://example.com/feed.xml \
- &lt; _includes/openring-in.html \
- &gt; _includes/openring-out.html
+ -s https:&#47;&#47;example.com&#47;feed.xml \
+ -s https:&#47;&#47;example.com&#47;feed.xml \
+ -s https:&#47;&#47;example.com&#47;feed.xml \
+ &#60; _includes&#47;openring-in.html \
+ &#62; _includes&#47;openring-out.html
bundle exec jekyll build
</code></pre>
-<h2>Edit <code>_config.yml</code></h2>
-<p>Next we need to make sure we exclude our new <code>build-site</code> script file, since we really don't need that pushed up to the main server:</p>
-<pre><code># Includes / Excludes
+
+<h2 id="edit-">Edit <code>_config.yml</code></h2>
+
+<p>Next we need to make sure we exclude our new <code>build-site</code> script file, since we really don&#8217;t need that pushed up to the main server:</p>
+
+<pre><code># Includes &#47; Excludes
exclude:
- build-site.sh
</code></pre>
-<h2>Almost Done...</h2>
-<p>Now you just need to decide where you want your <code>openring</code> feed outputs to render. For this example, we will place them at the bottom of every blog post inside the <code>_layouts/post.html</code> file, like so:</p>
+
+<h2 id="almost-done">Almost Done&#8230;</h2>
+
+<p>Now you just need to decide where you want your <code>openring</code> feed outputs to render. For this example, we will place them at the bottom of every blog post inside the <code>_layouts&#47;post.html</code> file, like so:</p>
+
<pre><code>{% raw %}{% include openring-out.html %}{% endraw %}
</code></pre>
-<h2>Build It &amp; They Will Come</h2>
+
+<h2 id="build-it-they-will-come">Build It &#38; They Will Come</h2>
+
<p>This next step is only for those using <a href="https://srht.site">SourceHut Pages</a> to build and host their websites. If you use a different platform (ie Netlify, Vercel, GitHub Pages) the concept should be similar but will most likely require more tweaking on your end. Just a fair warning.</p>
-<p>I won't go into great detail about build script for SourceHut Pages, but feel free to take a look at my <a href="https://git.sr.ht/~bt/bt.ht/tree/master/item/.build.yml">very own build file for this website</a>. That <em>should</em> work out-of-the-box for most standard Jekyll websites. (Just be sure to edit with your own details!)</p>
-<p><strong>That's it</strong>. You now have links to blogs you enjoy that will update with each build. Of course, the "latest" blog posts shown will become out-of-date if you don't blog (or at least re-build your website) on a regular basis. But for me, I see this as a good motivator to keep pushing out content!</p>
+
+<p>I won&#8217;t go into great detail about build script for SourceHut Pages, but feel free to take a look at my <a href="https://git.sr.ht/~bt/bt.ht/tree/master/item/.build.yml">very own build file for this website</a>. That <em>should</em> work out-of-the-box for most standard Jekyll websites. (Just be sure to edit with your own details!)</p>
+
+<p><strong>That&#8217;s it</strong>. You now have links to blogs you enjoy that will update with each build. Of course, the &#8220;latest&#8221; blog posts shown will become out-of-date if you don&#8217;t blog (or at least re-build your website) on a regular basis. But for me, I see this as a good motivator to keep pushing out content!</p>
+
<p>Happy sharing!</p>
-<h2>Refs</h2>
+
+<h2 id="refs">Refs</h2>
+
<ol>
<li>Well, as dynamic as a static website can be!</li>
</ol>