paritybit.ca

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

commit 8c15d51ace25ab85e5fce13ceccfb0084bb9b3a1
parent cf88a0a3249544ba82eb53f9e0341be63d69d047
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Wed, 27 Mar 2019 01:03:17 -0400

Re-implement capitalization for page titles

The previous solution caused links to break because they were looking
for lowercase file names like home.html, etc. The simpler way to fix
this was to re-implement the title string substitutions using a new
shell variable to store the capitalized name of the file (e.g. Home).

Diffstat:
Mcreatepages.sh | 3++-
Rpages/About-Me.md -> pages/about-me.md | 0
Rpages/About-Site.md -> pages/about-site.md | 0
Rpages/Essays.md -> pages/essays.md | 0
Rpages/Guides.md -> pages/guides.md | 0
Rpages/Home.md -> pages/home.md | 0
Rpages/Projects.md -> pages/projects.md | 0
Rpages/Toolset.md -> pages/toolset.md | 0
Apublic/html/about-me.html | 47+++++++++++++++++++++++++++++++++++++++++++++++
Apublic/html/about-site.html | 92+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apublic/html/essays.html | 51+++++++++++++++++++++++++++++++++++++++++++++++++++
Apublic/html/guides.html | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apublic/html/home.html | 91+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apublic/html/projects.html | 47+++++++++++++++++++++++++++++++++++++++++++++++
Apublic/html/toolset.html | 55+++++++++++++++++++++++++++++++++++++++++++++++++++++++
15 files changed, 444 insertions(+), 1 deletion(-)

diff --git a/createpages.sh b/createpages.sh @@ -30,7 +30,8 @@ for page in $@; do cat build/header.html >> $htmldir/$pagename.html cat build/$pagename-content.html >> $htmldir/$pagename.html cat build/footer.html >> $htmldir/$pagename.html - sed -i "s/<title>.*<\/title>/<title>paritybit.ca – $pagename<\/title>/" $htmldir/$pagename.html + uppername=${pagename^} + sed -i "s/<title>.*<\/title>/<title>paritybit.ca – $uppername<\/title>/" $htmldir/$pagename.html ((numpages++)) echo -e "=====Created $pagename.html=====\n" fi diff --git a/pages/About-Me.md b/pages/about-me.md diff --git a/pages/About-Site.md b/pages/about-site.md diff --git a/pages/Essays.md b/pages/essays.md diff --git a/pages/Guides.md b/pages/guides.md diff --git a/pages/Home.md b/pages/home.md diff --git a/pages/Projects.md b/pages/projects.md diff --git a/pages/Toolset.md b/pages/toolset.md diff --git a/public/html/about-me.html b/public/html/about-me.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + +<html> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial scale=1"> + <title>paritybit.ca – About-me</title> + <link rel="stylesheet" href="/css/base.min.css"> +</head> +<body> + <div id="header"> + <h1 id="web-title"><a href="home.html">paritybit.ca</a></h1> + </div> + <div id="side-bar"> + <ul> + <li><a href="/home.html">Home<a/></li> + <li><a href="/essays.html">Essays</a></li> + <li><a href="/toolset.html">My Toolset</a></li> + <li><a href="/projects.html">My Projects</a></li> + <li><a href="/guides.html">My Guides<a/></li> + <li><a href="/about-me.html">About Me</a></li> + <li><a href="/about-site.html">About This Site</a></li> + </ul> + </div> + + <div id="content"> +<h2>Welcome to the About Me page.</h2> + +<p>This page will be fleshed out with information soon!</p> +</div> +<div id="footer"> + <p id="contact-info"> + To report any technical issues with the website or to leave a suggestion, + please send an email to + <a href="mailto:webmaster@paritybit.ca">webmaster@paritybit.ca</a>. To send + feedback or to comment on an article or the content of a page, please send + an email to <a href="mailto:feedback@paritybit.ca">feedback@paritybit.ca</a>. + </p> + <p> + All content on this website is licensed under the + <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0 International License</a> + All code for this website is licensed under the + <a href="https://www.gnu.org/licenses/gpl.txt">GNU GPL-3.0-or-later</a> + </p> +</div> +</body> +</html> diff --git a/public/html/about-site.html b/public/html/about-site.html @@ -0,0 +1,92 @@ +<!DOCTYPE html> + +<html> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial scale=1"> + <title>paritybit.ca – About-site</title> + <link rel="stylesheet" href="/css/base.min.css"> +</head> +<body> + <div id="header"> + <h1 id="web-title"><a href="home.html">paritybit.ca</a></h1> + </div> + <div id="side-bar"> + <ul> + <li><a href="/home.html">Home<a/></li> + <li><a href="/essays.html">Essays</a></li> + <li><a href="/toolset.html">My Toolset</a></li> + <li><a href="/projects.html">My Projects</a></li> + <li><a href="/guides.html">My Guides<a/></li> + <li><a href="/about-me.html">About Me</a></li> + <li><a href="/about-site.html">About This Site</a></li> + </ul> + </div> + + <div id="content"> +<h2>This is the page about this site.</h2> + +<p>I created this website as a place for me to share my projects, thoughts on +various computing and computer science topics, configuration files, tips and +tricks, and other things that I think others could find useful.</p> + +<p>I designed this website with the principles of minimalism and simplicity in +mind. There is no client-side JavaScript, the server code is contained in a +single file less than 110 lines long, and there aren't any resource-hogging +images or superfluous animations to distract you from the important stuff: the +content. I took an article by Drew DeVault (linked below) as inspiration for +the philosophy behind the design of this website.</p> + +<p>The code for this website is licensed under the GPL-3.0-or-later. I chose this +license because of what the license stands for and what I see my website being +used for. I think people should be able to audit everything about my site and +if they take my code and distribute it I want them to also share what they've +done to the code with the world. Free software is beneficial to the software +development ecosystem and I want to continue supporting that model.</p> + +<p>The content for this website is licensed under the Creative Commons +Attribution-ShareAlike 4.0 International License. I chose this license for the +content because I have no problem with people sharing or doing what they want +with the things that I post or make available on the website, so long as they +don't try to pass off the work as their own.</p> + +<h3>Privacy</h3> + +<p>Unlike many companies and organizations nowadays, I respect the privacy of +those who visit my website and use my services. I do this by not collecting any +of my users' information, by not using tracking cookies (or any cookies at +all), and by building a website that doesn't rely on insane numbers of +impossible-to-audit scripts, obfuscated code, or sketchy ad platforms. I don't +monetize my website because I believe in giving back to the community the +knowledge that I have gained and the things that I have created.</p> + +<p>The only thing I keep track of is how many times my pages have been visited. +You can see how I do this by taking a look at the code for this website below +but it essentially just counts when a page is served and periodically saves +that information into a file. I do this just because I like to see what people +are interested in, what things of mine have been useful, and if any pages have +"gone viral" so to speak.</p> + +<h3>References</h3> + +<p><a href="https://git.sr.ht/~jbauer/paritybit.ca">The Git Repository For This Website</a></p> + +<p><a href="https://drewdevault.com/2018/09/04/Conservative-web-development.html">Drew DeVault's Article on Website Design</a></p> +</div> +<div id="footer"> + <p id="contact-info"> + To report any technical issues with the website or to leave a suggestion, + please send an email to + <a href="mailto:webmaster@paritybit.ca">webmaster@paritybit.ca</a>. To send + feedback or to comment on an article or the content of a page, please send + an email to <a href="mailto:feedback@paritybit.ca">feedback@paritybit.ca</a>. + </p> + <p> + All content on this website is licensed under the + <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0 International License</a> + All code for this website is licensed under the + <a href="https://www.gnu.org/licenses/gpl.txt">GNU GPL-3.0-or-later</a> + </p> +</div> +</body> +</html> diff --git a/public/html/essays.html b/public/html/essays.html @@ -0,0 +1,51 @@ +<!DOCTYPE html> + +<html> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial scale=1"> + <title>paritybit.ca – Essays</title> + <link rel="stylesheet" href="/css/base.min.css"> +</head> +<body> + <div id="header"> + <h1 id="web-title"><a href="home.html">paritybit.ca</a></h1> + </div> + <div id="side-bar"> + <ul> + <li><a href="/home.html">Home<a/></li> + <li><a href="/essays.html">Essays</a></li> + <li><a href="/toolset.html">My Toolset</a></li> + <li><a href="/projects.html">My Projects</a></li> + <li><a href="/guides.html">My Guides<a/></li> + <li><a href="/about-me.html">About Me</a></li> + <li><a href="/about-site.html">About This Site</a></li> + </ul> + </div> + + <div id="content"> +<h2>Welcome to the Essays page.</h2> + +<p>There are no essays here yet but check back periodically for more!</p> + +<p>I have many ideas of essays to write but I have to find the time to write, edit +and then prepare them for this website. I am a little short on time because of +university but I will try to get at least a few essays up every year.</p> +</div> +<div id="footer"> + <p id="contact-info"> + To report any technical issues with the website or to leave a suggestion, + please send an email to + <a href="mailto:webmaster@paritybit.ca">webmaster@paritybit.ca</a>. To send + feedback or to comment on an article or the content of a page, please send + an email to <a href="mailto:feedback@paritybit.ca">feedback@paritybit.ca</a>. + </p> + <p> + All content on this website is licensed under the + <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0 International License</a> + All code for this website is licensed under the + <a href="https://www.gnu.org/licenses/gpl.txt">GNU GPL-3.0-or-later</a> + </p> +</div> +</body> +</html> diff --git a/public/html/guides.html b/public/html/guides.html @@ -0,0 +1,59 @@ +<!DOCTYPE html> + +<html> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial scale=1"> + <title>paritybit.ca – Guides</title> + <link rel="stylesheet" href="/css/base.min.css"> +</head> +<body> + <div id="header"> + <h1 id="web-title"><a href="home.html">paritybit.ca</a></h1> + </div> + <div id="side-bar"> + <ul> + <li><a href="/home.html">Home<a/></li> + <li><a href="/essays.html">Essays</a></li> + <li><a href="/toolset.html">My Toolset</a></li> + <li><a href="/projects.html">My Projects</a></li> + <li><a href="/guides.html">My Guides<a/></li> + <li><a href="/about-me.html">About Me</a></li> + <li><a href="/about-site.html">About This Site</a></li> + </ul> + </div> + + <div id="content"> +<h2>Welcome to the Guides page.</h2> + +<p>There aren't any guides posted here yet but they are coming soon!</p> + +<p>I am planning to post:</p> + +<ul> +<li>A guide to configuring a fresh Debian installation the way I have done.</li> +<li>A guide to generating SSH Keys.</li> +<li>An outline of the steps I took to secure my online life.</li> +<li>A (hopefully simple) guide to managing GPG Keys.</li> +<li>A guide to my server configurations, realistic hardening steps, and other +similar topics.</li> +<li>And more!</li> +</ul> +</div> +<div id="footer"> + <p id="contact-info"> + To report any technical issues with the website or to leave a suggestion, + please send an email to + <a href="mailto:webmaster@paritybit.ca">webmaster@paritybit.ca</a>. To send + feedback or to comment on an article or the content of a page, please send + an email to <a href="mailto:feedback@paritybit.ca">feedback@paritybit.ca</a>. + </p> + <p> + All content on this website is licensed under the + <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0 International License</a> + All code for this website is licensed under the + <a href="https://www.gnu.org/licenses/gpl.txt">GNU GPL-3.0-or-later</a> + </p> +</div> +</body> +</html> diff --git a/public/html/home.html b/public/html/home.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> + +<html> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial scale=1"> + <title>paritybit.ca – Home</title> + <link rel="stylesheet" href="/css/base.min.css"> +</head> +<body> + <div id="header"> + <h1 id="web-title"><a href="home.html">paritybit.ca</a></h1> + </div> + <div id="side-bar"> + <ul> + <li><a href="/home.html">Home<a/></li> + <li><a href="/essays.html">Essays</a></li> + <li><a href="/toolset.html">My Toolset</a></li> + <li><a href="/projects.html">My Projects</a></li> + <li><a href="/guides.html">My Guides<a/></li> + <li><a href="/about-me.html">About Me</a></li> + <li><a href="/about-site.html">About This Site</a></li> + </ul> + </div> + + <div id="content"> +<h2>Welcome to paritybit.ca!</h2> + +<p>This will be a website to host details about my projects, my thoughts on various +subjects in computing and computer science, and will contain a bit about me for +anybody who is curious to learn what I do and how I do it.</p> + +<p>Here is a list of what I plan to do so far:</p> + +<ul> +<li>Make my webserver build pages dynamically including adding proper entries to +the navigation bar.</li> +<li>Refactor some of the server code now that I know how nginx works.</li> +<li>Enable IPv6 support (the domain has it, I just need to program the backend to +respond to IPv6 connections).</li> +<li>Add internal page hit counters so I can gauge the popularity of pages. +connections to the webserver for analytical purposes.</li> +<li>Add links/descriptions to all of my old and current projects.</li> +<li>Add a page about me, which includes what I am a member of, what I value, and +a list of the organizations that I contribute to.</li> +<li>Add some essays and rants. Particularily about: +<ul> +<li>Why unix (or unix-based) is the best option.</li> +<li>Why learning vim (or emacs) is good in the modern age.</li> +<li>Why learning about the history of computing is important.</li> +</ul></li> +<li>Add a section on my recommended reading/watching/online essays.</li> +<li>Add bits about my configuration, which operating systems I run and why, and +which tools I use and why.</li> +<li>Add a section on which Linux distributions I have used and what I did and did +not like about them.</li> +<li>Add a bit about the specifications of my systems and an inventory of my +hardware.</li> +<li>Flesh out the "About This Site" page documenting how the site works, why I +designed it the way I did, and what I think about websites nowadays in +comparison to my goals for this one.</li> +</ul> + +<p>This is a lot to do so expect the website to grow significantly over the next +little while.</p> + +<p>Furthermore, this website is self hosted. Currently it is on a DigitalOcean +droplet but it will be migrated to a physical server that I own in the near +future. I expect that the availability of the website will probably only live +up to the "one nine" standard (total owntime of 36.53 days in a year) which +means that if you consider anything on this site worth more than a simple +bookmark, you should probably download it (or you could recompile the pages +through cloning the git repository).</p> +</div> +<div id="footer"> + <p id="contact-info"> + To report any technical issues with the website or to leave a suggestion, + please send an email to + <a href="mailto:webmaster@paritybit.ca">webmaster@paritybit.ca</a>. To send + feedback or to comment on an article or the content of a page, please send + an email to <a href="mailto:feedback@paritybit.ca">feedback@paritybit.ca</a>. + </p> + <p> + All content on this website is licensed under the + <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0 International License</a> + All code for this website is licensed under the + <a href="https://www.gnu.org/licenses/gpl.txt">GNU GPL-3.0-or-later</a> + </p> +</div> +</body> +</html> diff --git a/public/html/projects.html b/public/html/projects.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + +<html> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial scale=1"> + <title>paritybit.ca – Projects</title> + <link rel="stylesheet" href="/css/base.min.css"> +</head> +<body> + <div id="header"> + <h1 id="web-title"><a href="home.html">paritybit.ca</a></h1> + </div> + <div id="side-bar"> + <ul> + <li><a href="/home.html">Home<a/></li> + <li><a href="/essays.html">Essays</a></li> + <li><a href="/toolset.html">My Toolset</a></li> + <li><a href="/projects.html">My Projects</a></li> + <li><a href="/guides.html">My Guides<a/></li> + <li><a href="/about-me.html">About Me</a></li> + <li><a href="/about-site.html">About This Site</a></li> + </ul> + </div> + + <div id="content"> +<h2>Welcome to the Projects page.</h2> + +<p>Links and pages for my projects are coming soon!</p> +</div> +<div id="footer"> + <p id="contact-info"> + To report any technical issues with the website or to leave a suggestion, + please send an email to + <a href="mailto:webmaster@paritybit.ca">webmaster@paritybit.ca</a>. To send + feedback or to comment on an article or the content of a page, please send + an email to <a href="mailto:feedback@paritybit.ca">feedback@paritybit.ca</a>. + </p> + <p> + All content on this website is licensed under the + <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0 International License</a> + All code for this website is licensed under the + <a href="https://www.gnu.org/licenses/gpl.txt">GNU GPL-3.0-or-later</a> + </p> +</div> +</body> +</html> diff --git a/public/html/toolset.html b/public/html/toolset.html @@ -0,0 +1,55 @@ +<!DOCTYPE html> + +<html> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial scale=1"> + <title>paritybit.ca – Toolset</title> + <link rel="stylesheet" href="/css/base.min.css"> +</head> +<body> + <div id="header"> + <h1 id="web-title"><a href="home.html">paritybit.ca</a></h1> + </div> + <div id="side-bar"> + <ul> + <li><a href="/home.html">Home<a/></li> + <li><a href="/essays.html">Essays</a></li> + <li><a href="/toolset.html">My Toolset</a></li> + <li><a href="/projects.html">My Projects</a></li> + <li><a href="/guides.html">My Guides<a/></li> + <li><a href="/about-me.html">About Me</a></li> + <li><a href="/about-site.html">About This Site</a></li> + </ul> + </div> + + <div id="content"> +<h2>Welcome to the Toolset page.</h2> + +<p>On this page will be details about my toolset. On this page will be:</p> + +<ul> +<li>My chosen shell and configuration details</li> +<li>My chosen desktop environment/window manager and configuration details</li> +<li>My chosen editor and software development tools and configuration details</li> +<li>My chosen Linux distribution(s)</li> +<li>And more!</li> +</ul> +</div> +<div id="footer"> + <p id="contact-info"> + To report any technical issues with the website or to leave a suggestion, + please send an email to + <a href="mailto:webmaster@paritybit.ca">webmaster@paritybit.ca</a>. To send + feedback or to comment on an article or the content of a page, please send + an email to <a href="mailto:feedback@paritybit.ca">feedback@paritybit.ca</a>. + </p> + <p> + All content on this website is licensed under the + <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0 International License</a> + All code for this website is licensed under the + <a href="https://www.gnu.org/licenses/gpl.txt">GNU GPL-3.0-or-later</a> + </p> +</div> +</body> +</html>