paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9f357864dbf52b257f16894870488560b9c8dd09
parent 71f8cce9d32245c751a033071da164cd081d8525
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Fri,  3 Jul 2020 16:50:08 -0400

Publish new blog post

Diffstat:
Mpages/blog.md | 4++++
Apages/blog/adding-search-to-my-blog.md | 38++++++++++++++++++++++++++++++++++++++
Mpages/home.md | 4++--
Mpublic/feeds/sitewide-feed.xml | 15+++++++++++++++
Mpublic/sitemap.xml | 1+
5 files changed, 60 insertions(+), 2 deletions(-)

diff --git a/pages/blog.md b/pages/blog.md @@ -18,8 +18,12 @@ For more short-form content, you can find me on my instance of the social/microblogging platform <a rel="me" href="https://social.paritybit.ca/@jbauer">Mastodon</a>. +&#128270; [Search this +blog](https://duckduckgo.com/?q=site%3Awww.paritybit.ca%2Fblog&t=hk&ia=web) + ### 2020 <ul> + <li>2020-07-03 <a href="blog/adding-search-to-my-blog">Adding Search to my Blog</a></li> <li>2020-07-02 <a href="blog/a-month-and-a-half-of-self-hosted-email">A Month-and-a-Half of Self-Hosted Email</a></li> </ul> #### June diff --git a/pages/blog/adding-search-to-my-blog.md b/pages/blog/adding-search-to-my-blog.md @@ -0,0 +1,38 @@ +## Adding Search to my Blog + +[//]: # "As my collection of blog posts keeps growing, it is becoming increasingly apparent to me that I need to offer my users some way to search my previous posts. This post details how I implemented search for my blog." + +[//]: # "main.min.css" + +[//]: # + +<div class="byline"> +<b>Written By:</b> Jake Bauer | + <b>Posted:</b> 2020-07-03 | + <b>Last Updated:</b> 2020-07-03 +</div> + +As my collection of blog posts keeps growing, it is becoming increasingly +apparent to me that I need to offer visitors some way to search through my +previous posts. It will also be a lot easier for me to find an old post where I +half-remember the title and have some idea of the content by being able to +search for it instead of needing to scroll through my list of previous posts. + +For those reasons, today I have added a way for people to search my blog posts. +The feature is available through a link on the [blog page](/blog). Go ahead, +check it out now. + +See? It took all of 30 seconds to implement and I didn't even have to program +anything! All I did was go to [duckduckgo.com](https://duckduckgo.com), type in +`site:www.paritybit.ca/blog` into the search bar, hit `Enter`, copy the URL, and +link to that URL from my blog page. By using this method, I can still avoid +having any JavaScript, back-end scripts building the search results dynamically, +or complex search solutions such as ElasticSearch. + +It really is super easy to add search to your site, even if all you want is a +simple static site. + +_This is my fifty-ninth post for the +[#100DaysToOffload](https://social.paritybit.ca/tags/100DaysToOffload) +challenge. You can learn more about this challenge over at +[https://100daystooffload.com](https://100daystooffload.com)._ diff --git a/pages/home.md b/pages/home.md @@ -20,6 +20,8 @@ extent)! Access through `gopher://paritybit.ca` or `gemini://paritybit.ca`. src="/img/feed-icon.png" width="15" height="15" alt="Click for RSS Feed"/> </a> </div> +2020-07-03 <a class="feed-item" href="blog/adding-search-to-my-blog">Adding Search to my Blog</a> + 2020-07-02 <a class="feed-item" href="blog/a-month-and-a-half-of-self-hosted-email">A Month-and-a-Half of Self-Hosted Email</a> 2020-06-28 <a class="feed-item" href="blog/how-i-keep-my-home-directory-clean">How I Keep My Home Directory Clean</a> @@ -37,8 +39,6 @@ extent)! Access through `gopher://paritybit.ca` or `gemini://paritybit.ca`. 2020-06-21 <a class="feed-item" href="blog/reflecting-on-50-days-of-blogging">Reflecting on 50 Days of Blogging</a> 2020-06-20 <a class="feed-item" href="blog/how-to-create-an-rss-feed-for-your-blog-3">How to Create an RSS Feed for Your Blog — 3 — Automating Updates</a> - -2020-06-19 <a class="feed-item" href="blog/how-to-create-an-rss-feed-for-your-blog-2">How to Create an RSS Feed for Your Blog — 2 — The Basics</a> ### What is a Parity Bit? It is a bit (in the 1's and 0's sense) used in checking for errors in digital diff --git a/public/feeds/sitewide-feed.xml b/public/feeds/sitewide-feed.xml @@ -7,6 +7,21 @@ <description>The feed that covers all notable additions, updates, announcements, and other changes for the entire paritybit.ca website.</description> <item> + <title>Adding Search to my Blog</title> + <link>https://www.paritybit.ca/blog/adding-search-to-my-blog</link> + <guid>https://www.paritybit.ca/blog/adding-search-to-my-blog</guid> + <pubDate>Fri, 03 Jul 2020 16:49:51 -0400</pubDate> + <description><![CDATA[<h2 id="adding-search-to-my-blog">Adding Search to my Blog</h2> +<div class="byline"> +<p><b>Written By:</b> Jake Bauer | <b>Posted:</b> 2020-07-03 | <b>Last Updated:</b> 2020-07-03</p> +</div> +<p>As my collection of blog posts keeps growing, it is becoming increasingly apparent to me that I need to offer visitors some way to search through my previous posts. It will also be a lot easier for me to find an old post where I half-remember the title and have some idea of the content by being able to search for it instead of needing to scroll through my list of previous posts.</p> +<p>For those reasons, today I have added a way for people to search my blog posts. The feature is available through a link on the <a href="/blog">blog page</a>. Go ahead, check it out now.</p> +<p>See? It took all of 30 seconds to implement and I didn’t even have to program anything! All I did was go to <a href="https://duckduckgo.com">duckduckgo.com</a>, type in <code>site:www.paritybit.ca/blog</code> into the search bar, hit <code>Enter</code>, copy the URL, and link to that URL from my blog page. By using this method, I can still avoid having any JavaScript, back-end scripts building the search results dynamically, or complex search solutions such as ElasticSearch.</p> +<p>It really is super easy to add search to your site, even if all you want is a simple static site.</p> +<p><em>This is my fifty-ninth post for the <a href="https://social.paritybit.ca/tags/100DaysToOffload">#100DaysToOffload</a> challenge. You can learn more about this challenge over at <a href="https://100daystooffload.com">https://100daystooffload.com</a>.</em></p>]]></description> + </item> +<item> <title>A Month-and-a-Half of Self-Hosted Email</title> <link>https://www.paritybit.ca/blog/a-month-and-a-half-of-self-hosted-email</link> <guid>https://www.paritybit.ca/blog/a-month-and-a-half-of-self-hosted-email</guid> diff --git a/public/sitemap.xml b/public/sitemap.xml @@ -3,6 +3,7 @@ <url><loc>https://www.paritybit.ca</loc></url> <url><loc>https://www.paritybit.ca/home</loc></url> <url><loc>https://www.paritybit.ca/blog</loc></url> + <url><loc>https://www.paritybit.ca/blog/adding-search-to-my-blog</loc></url> <url><loc>https://www.paritybit.ca/blog/a-month-and-a-half-of-self-hosted-email</loc></url> <url><loc>https://www.paritybit.ca/blog/how-i-keep-my-home-directory-clean</loc></url> <url><loc>https://www.paritybit.ca/blog/my-first-ctf</loc></url>