commit a0408033602d4d595a70b72c8555d6dbfb98d0ba
parent bc95a2ae11835860e396383a9cc2fa847ce2f17f
Author: Jake Bauer <jbauer@paritybit.ca>
Date: Fri, 6 Dec 2019 02:18:16 -0500
Fix a lot of stuff after running validation
Fix all(most all) errors reported by W3C's HTML validator, and all
errors reported by the CSS/RSS validators. Badges added on about-site
page for CSS/RSS.
Some things reported as errors with HTML are intentional and will not be
fixed though this doesn't at all impact the layout or operation of the
website.
Diffstat:
13 files changed, 50 insertions(+), 26 deletions(-)
diff --git a/build/base.css b/build/base.css
@@ -87,6 +87,14 @@ audio {
height: 2.3em;
}
+img {
+ border: 0;
+}
+
+hr {
+ width: 70%;
+}
+
ul.inline {
padding: .1em 0 .5em 0;
margin: 0;
diff --git a/build/footer.html b/build/footer.html
@@ -1,15 +1,15 @@
<!-- BEGINNING OF FOOTER -->
</div>
<div id="footer">
- <hr width="70%">
+ <hr>
<a class="debian-banner" href="https://www.debian.org"><img
class="debian-banner"
src="/img/debian-openlogo-75.png"
- alt="Powered by Debian" border="0"></a>
+ alt="Powered by Debian"></a>
<a class="eff-banner" href="https://www.eff.org/join"><img
class="eff-banner"
src="/img/eff-join2_0.png"
- alt="Join the EFF!" border="0"></a>
+ alt="Join the EFF!"></a>
<p id="contact-info">
To report any technical issues with the website or to leave a suggestion,
please send an email to
diff --git a/build/header.html b/build/header.html
@@ -13,14 +13,14 @@
</div>
<div id="side-bar">
<ul>
- <li><a href="/">Home<a/></li>
+ <li><a href="/">Home</a></li>
<li><a href="/blog">Blog</a>
<ul>
<li><a href="/blog/other-blogs">Blogroll</a></li>
</ul>
</li>
<li><a href="/projects">Projects</a></li>
- <li><a href="/guides">Guides<a/></li>
+ <li><a href="/guides">Guides</a></li>
<li><a href="/about-site">About This Site</a></li>
<li><a href="/about-me">About Me</a>
<ul>
diff --git a/createpages.sh b/createpages.sh
@@ -167,18 +167,21 @@ for page in $@; do
# Check if this is supposed to be a sub-sub-section & add 2x<ul>
if echo "$sectionName" | grep -qi "^subsub:"; then
sectionName=${sectionName:7}
- sed -i "/toc-title/a <ul><ul><li><a href=\"#$sectionName\">$sectionName</a></li></ul></ul>" \
+ sectionNameNS=$(sed -e 's/ //g' <<< "$sectionName")
+ sed -i "/toc-title/a <ul><ul><li><a href=\"#$sectionNameNS\">$sectionName</a></li></ul></ul>" \
$htmldir/$savepath/$pagename.html
# Or a sub-section
elif echo "$sectionName" | grep -qi "^sub:"; then
sectionName=${sectionName:4}
- sed -i "/toc-title/a <ul><li><a href=\"#$sectionName\">$sectionName</a></li></ul>" \
+ sectionNameNS=$(sed -e 's/ //g' <<< "$sectionName")
+ sed -i "/toc-title/a <ul><li><a href=\"#$sectionNameNS\">$sectionName</a></li></ul>" \
$htmldir/$savepath/$pagename.html
# Or just a regular section
else
- sed -i "/toc-title/a <li><a href=\"#$sectionName\">$sectionName</a></li>" \
+ sectionNameNS=$(sed -e 's/ //g' <<< "$sectionName")
+ sed -i "/toc-title/a <li><a href=\"#$sectionNameNS\">$sectionName</a></li>" \
$htmldir/$savepath/$pagename.html
- sed -i "/<h3>$sectionName<\/h3>/i <a name=\"$sectionName\"></a>" \
+ sed -i "/<h3>$sectionName<\/h3>/i <a id=\"$sectionNameNS\"></a>" \
$htmldir/$savepath/$pagename.html
fi
done
diff --git a/pages/about-site.md b/pages/about-site.md
@@ -106,13 +106,26 @@ Average downtime: 3 minutes and 50 seconds
Current uptime: 5 minutes and 31 seconds since 01:53:56 10/08/19
</code></pre>
+<p>
+ <a href="https://jigsaw.w3.org/css-validator/">
+ <img style="border:0;width:88px;height:31px"
+ src="img/vcss.gif"
+ alt="Valid CSS!" />
+ </a>
+ <a href="https://validator.w3.org/feed/">
+ <img style="border:0;width:88px;height:31px"
+ src="img/valid-rss-rogers.png"
+ alt="Valid RSS Feeds!" />
+ </a>
+</p>
+
### References
-<a name=1></a>
+<a id=1></a>
[1] [The Git Repository For This Website](https://git.sr.ht/~jbauer/paritybit.ca)
-<a name=2></a>
+<a id=2></a>
[2] [Drew DeVault's Article on Website Design](https://drewdevault.com/2018/09/04/Conservative-web-development.html)
-<a name=3></a>
+<a id=3></a>
[3] [CSS Minifier Service](https://cssminifier.com)
diff --git a/pages/blog.md b/pages/blog.md
@@ -7,7 +7,7 @@
[//]: # "2019"
<a class="rss-icon" href="/feeds/blog-feed.xml"> <img
-src="/img/feed-icon.png" width="15px" height="15px" alt="RSS_ICON"</img>
+src="/img/feed-icon.png" width="15" height="15" alt="Click for RSS"/>
Subscribe to this page!</a>
This is the place where I put all of my ramblings, rants, essays, and random
diff --git a/pages/guides.md b/pages/guides.md
@@ -7,7 +7,7 @@
[//]: #
<a class="rss-icon" href="/feeds/guides-feed.xml"> <img
-src="/img/feed-icon.png" width="15px" height="15px" alt="RSS_ICON"</img>
+src="/img/feed-icon.png" width="15" height="15" alt="Click for RSS"/>
Subscribe to this page!</a>
This is the place where I put things like tips and tricks on software
diff --git a/pages/home.md b/pages/home.md
@@ -17,7 +17,7 @@ below. There may be something that interests you.
<div class="feed-wrapper">
<h3 class="feed-candidate">Recently Updated:</h3>
<a class="rss-icon" href="/feeds/sitewide-feed.xml"> <img
- src="/img/feed-icon.png" width="15px" height="15px" alt="RSS_ICON"></img>
+ src="/img/feed-icon.png" width="15" height="15" alt="Click for RSS"/>
</a>
</div>
diff --git a/pages/projects.md b/pages/projects.md
@@ -7,7 +7,7 @@
[//]: #
<a class="rss-icon" href="/feeds/projects-feed.xml"> <img
-src="/img/feed-icon.png" width="15px" height="15px" alt="RSS_ICON"</img>
+src="/img/feed-icon.png" width="15px" height="15px" alt="Click for RSS"/>
Subscribe to this page!</a>
Below is a selection of links to my various projects and places where you can
diff --git a/pages/projects/dnd/initiative.md b/pages/projects/dnd/initiative.md
@@ -6,7 +6,7 @@
[//]: #
-<script type="text/javascript" src=/js/initiative.js></script>
+<script src=/js/initiative.js></script>
<noscript>Your browser must support or enable Javascript for this applet to
function.</noscript>
@@ -22,10 +22,10 @@ lowest initiative value.</p>
<div id="add-char">
<form>
- <input id="char-name" type="text" placeholder="Character Name"></input>
- <input id="init-val" type="number" placeholder="0"></input>
+ <input id="char-name" type="text" placeholder="Character Name"/>
+ <input id="init-val" type="number" placeholder="0"/>
</form>
-<button onClick=addChar() id="add-char">Add Character</button>
+<button onClick=addChar()>Add Character</button>
</div>
<div class="initiative-list" id="initiative-list">
</div>
diff --git a/pages/projects/dnd/roll.md b/pages/projects/dnd/roll.md
@@ -6,7 +6,7 @@
[//]: #
-<script type="text/javascript" src=/js/roll.js></script>
+<script src=/js/roll.js></script>
<noscript>Your browser must support or enable Javascript for this applet to
function</noscript>
diff --git a/public/feeds/guides-feed.xml b/public/feeds/guides-feed.xml
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
-<atom:link href="https://www.paritybit.ca/feeds/guide-feed.xml" rel="self" type="application/rss+xml" />
+<atom:link href="https://www.paritybit.ca/feeds/guides-feed.xml" rel="self" type="application/rss+xml" />
<title>paritybit.ca — Guides</title>
<link>https://www.paritybit.ca/guides</link>
<description>The feed that covers all notable additions and updates to the
Guides section of paritybit.ca. </description>
<item>
<title>New Guide: Using the "rm" Command with Trash</title>
- <link>https://www.paritybit.ca/guides/debian-with-btrfs</link>
- <guid>https://www.paritybit.ca/guides/debian-with-btrfs</guid>
+ <link>https://www.paritybit.ca/guides/using-rm-with-trash</link>
+ <guid>https://www.paritybit.ca/guides/using-rm-with-trash</guid>
<pubDate>Tue, 26 Nov 2019 18:05:00 +0000</pubDate>
<description>This guide will show you how to make `rm` remove a file to the
Trash folder first so that you can prevent yourself from accidentally
diff --git a/public/feeds/sitewide-feed.xml b/public/feeds/sitewide-feed.xml
@@ -8,8 +8,8 @@
and other changes for the entire paritybit.ca website.</description>
<item>
<title>New Guide: Using the "rm" Command with Trash</title>
- <link>https://www.paritybit.ca/guides/debian-with-btrfs</link>
- <guid>https://www.paritybit.ca/guides/debian-with-btrfs</guid>
+ <link>https://www.paritybit.ca/guides/using-rm-with-trash</link>
+ <guid>https://www.paritybit.ca/guides/using-rm-with-trash</guid>
<pubDate>Tue, 26 Nov 2019 18:05:00 +0000</pubDate>
<description>This guide will show you how to make `rm` remove a file to the
Trash folder first so that you can prevent yourself from accidentally