HTML 4.01 Strict DTD compliance.
authorJoann Mõndresku <joann@cernodile.com>
Tue, 21 Dec 2021 06:07:36 +0000 (08:07 +0200)
committerJoann Mõndresku <joann@cernodile.com>
Tue, 21 Dec 2021 06:07:36 +0000 (08:07 +0200)
Only 1 error related to OpenGraph tags now, which use
the <meta> property attribute.

blogit
templates/article_header.html
templates/footer.html
templates/header.html
templates/index_header.html

diff --git a/blogit b/blogit
index 7cabbaafc34e655683815d4c8bf35328541fb6cc..e54f9e38a57297145f032f13c32f6ecba4ec445d 100755 (executable)
--- a/blogit
+++ b/blogit
@@ -65,6 +65,8 @@ blog/index.html: $(ARTICLES) $(TAGFILES) $(addprefix templates/,$(addsuffix .htm
        mkdir -p blog
        TITLE="$(BLOG_TITLE)"; \
        export TITLE; \
+       DESCRIPTION="$(BLOG_DESCRIPTION)"; \
+       export DESCRIPTION; \
        envsubst < templates/header.html > $@; \
        envsubst < templates/index_header.html >> $@; \
        envsubst < templates/tag_list_header.html >> $@; \
@@ -103,7 +105,7 @@ tagpages: $(TAGFILES)
 
 blog/@%.html: $(TAGFILES) $(addprefix templates/,$(addsuffix .html,header tag_index_header tag_list_header tag_entry tag_separator tag_list_footer article_list_header article_entry article_separator article_list_footer tag_index_footer footer))
        mkdir -p blog
-       TITLE="Articles tagged $*"; \
+       TITLE="$(BLOG_TITLE) - Articles tagged $*"; \
        TAGS="$*"; \
        export TITLE; \
        export TAGS; \
@@ -129,7 +131,7 @@ blog/@%.html: $(TAGFILES) $(addprefix templates/,$(addsuffix .html,header tag_in
 
 blog/%.html: $(BLOG_SRC)/%.md $(addprefix templates/,$(addsuffix .html,header article_header article_footer footer))
        mkdir -p blog
-       TITLE="$(shell head -n1 $<)"; \
+       TITLE=" $(BLOG_TITLE) - $(shell head -n1 $<)"; \
        export TITLE; \
        AUTHOR="$(shell git log -n 1 --reverse --format="%cn" -- "$<")"; \
        export AUTHOR; \
index 4218d07da3bd0d2881b6c81ef3ba068dd11d9ca9..a0e33e9a43cef892e6e7d324e924598fb18b6a29 100644 (file)
@@ -1,7 +1,4 @@
-<meta property="og:title" content="based.quest - $TITLE">
-<meta property="og:description" content="$DESCRIPTION">
-$OG_IMAGE
-<a href="index.html"><-- Back</a>
+<p><a href="index.html">&lt;-- Back</a></p>
 <div id="post">
 <h1>$TITLE</h1>
 <p class="cern-blue">Posted on $DATE_POSTED</p>
index 65228db8486a12cfef88f37ce73b427155394faf..6d1d648c6e768694c36354bd5790ffdb4401b638 100644 (file)
@@ -1 +1 @@
-<br><p class="cern-blue">Join us at Matrix: #based-quest:cernodile.com</p><p class="cern-blue">&copy; 2021 - based.quest | Powered by <a href="https://pedantic.software/git/blogit/">blogit</a> | <a href="https://cernodile.com/donate.php">Donate</a> | <a href="atom.xml">Atom RSS</a></p></body></html>
+<p class="cern-blue"><br><br>Join us at Matrix: #based-quest:cernodile.com</p><p class="cern-blue">&copy; 2021 - based.quest | Powered by <a href="https://pedantic.software/git/blogit/">blogit</a> | <a href="https://cernodile.com/donate.php">Donate</a> | <a href="atom.xml">Atom RSS</a></p></body></html>
index 11f684fbf6e36c180765f0a9f609bc7a3243b9f0..2dc6e0c146c3cc1d743af001a0538328425c79cb 100644 (file)
@@ -1 +1,13 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><html><head><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>$TITLE</title><style>body,html{background:#000;color:#fff;font-family:monospace;}.cern-blue{color:#397ef6;}a,a:visited{color:#fff;}p{margin:0;padding:0}#post p{margin:12px 0;margin:revert;}#post{max-width:1024px;}code{border:1px solid #00ff00;border-radius:5px;color:#00ffff;}</style></head><body>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+"http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta property="og:title" content="$TITLE">
+<meta property="og:description" content="$DESCRIPTION">
+$OG_IMAGE
+<title>$TITLE</title>
+<style type="text/css">body,html{background:#000;color:#fff;font-family:monospace;}.cern-blue{color:#397ef6;}a,a:visited{color:#fff;}p{margin:0;padding:0}#post p{margin:12px 0;margin:revert;}#post{max-width:1024px;}code{border:1px solid #00ff00;border-radius:5px;color:#00ffff;}</style>
+</head>
+<body>
index 96703522e76fcc94738d8c527a24ca1a45f54ae8..13cf453904fd5429339d49be425fba8f291d3cca 100644 (file)
@@ -1,25 +1,19 @@
-<meta name="og:title" content="based.quest">
-<meta name="og:description" content="A very based website. A quest on its own. Hosting and curated privacy-oriented based projects by a sysadmin prick.">
-<p>&gt; curl based.quest -v</p>
-<p>*   Trying 127.0.0.1:80...</p>
-<p>* Connected to based.quest (127.0.0.1) port 80 (#0)</p>
-<p>&gt; GET / HTTP 1.1</p>
-<p>&gt; Host: based.quest</p>
-<p>&gt; User-Agent: curl/b.45.3d</p>
-<p>&gt; Accept */*</p>
-<p>&gt;</p>
-<br>
-<p>&lt; HTTP/1.1 200 OK</p>
-<p>&lt; Server: nginx</p>
-<p>&lt; Date: Right now o'clock</p>
-<p>&lt; Content-Type: base/based</p>
-<p>&lt; Last-Modified: Doesn't need to be modified, is perfect as-is.</p>
-<p>&lt; Connection: keep-alive</p>
-<br>
-<p>based</p>
-<br>
-<br>
+<p>&gt; curl based.quest -v<br>
+*   Trying 127.0.0.1:80...<br>
+* Connected to based.quest (127.0.0.1) port 80 (#0)<br>
+&gt; GET / HTTP 1.1<br>
+&gt; Host: based.quest<br>
+&gt; User-Agent: curl/b.45.3d<br>
+&gt; Accept */*<br>
+&gt;<br><br></p>
+
+<p>&lt; HTTP/1.1 200 OK<br>
+&lt; Server: nginx<br>
+&lt; Date: Right now o'clock<br>
+&lt; Content-Type: base/based<br>
+&lt; Last-Modified: Doesn't need to be modified, is perfect as-is.<br>
+&lt; Connection: keep-alive<br><br></p>
+<p>based<br><br></p>
 <p class="cern-blue">Quick-links to services I host: <a href="https://iv.based.quest">Invidious</a>, <a href="https://searx.cernodile.com">Searx</a>, <a href="https://piped.based.quest">Piped</a>.</p>
-<p class="cern-blue">Hall of Based: <a href="https://reactos.org">ReactOS</a>, <a href="https://matrix.org">Matrix</a>, <a href="https://postmarketos.org">PostmarketOS</a>, <a href="https://pine64.org">Pine64</a>, <a href="https://landchad.net">Landchad.net</a></p>
-<br>
+<p class="cern-blue">Hall of Based: <a href="https://reactos.org">ReactOS</a>, <a href="https://matrix.org">Matrix</a>, <a href="https://postmarketos.org">PostmarketOS</a>, <a href="https://pine64.org">Pine64</a>, <a href="https://landchad.net">Landchad.net</a><br><br></p>
 <h2>Personal Blog of Cernodile</h2>