Add OpenGraph description support to blogit
authorJoann Mõndresku <joann@cernodile.com>
Fri, 16 Jul 2021 12:51:39 +0000 (15:51 +0300)
committerJoann Mõndresku <joann@cernodile.com>
Fri, 16 Jul 2021 12:51:39 +0000 (15:51 +0300)
articles/launch-and-intentions.md
articles/steam-deck-a-linux-loveletter.md
articles/web-git-viewable.md
blogit
templates/article_header.html
templates/header.html
templates/index_header.html
templates/tag_index_header.html

index 33f7c1475b73292afb5e1da007bf34571827a439..f96bd272dc90614ab21bfdf8adcb3f1e39144b4f 100644 (file)
@@ -20,3 +20,4 @@ Thanks for reading,
 - Cernodile
 
 ;tags:site future news
+;description:Learn the intentions behind based.quest and what made Cernodile create this website in this blog post.
index 16718ce632815ae479e17cea55ac8dbb431f800b..9e6f221ee2c0519cd37ed829bde2d6c761955cb7 100644 (file)
@@ -35,3 +35,4 @@ Thanks for reading,
 - Cernodile
 
 ;tags:steam hardware handheld linux
+;description:Valve recently announced Steam Deck and it is looking like a really good option for Linux gamers and anyone tired of Switch hardware. Learn more in-depth of Cernodile's opinions in this blog post.
index 23f39d958a7809cc65c348cc0b8403bff007bda3..1ad8e8b29a48a33edf661f33e2e8a5ce23920af6 100644 (file)
@@ -9,3 +9,4 @@ Enjoy,
 - Cernodile
 
 ;tags:site news git
+;description:Learn how based.quest blog was made at git.based.quest.
diff --git a/blogit b/blogit
index 5be242954ea9b3e0d0bab525081ae84cb4591b9f..4f590f4ad53d34b7bb22ad1920f07bae41d726e9 100755 (executable)
--- a/blogit
+++ b/blogit
@@ -139,6 +139,8 @@ blog/%.html: $(BLOG_SRC)/%.md $(addprefix templates/,$(addsuffix .html,header ar
        export DATE_EDITED; \
        TAGS="$(shell grep -i '^; *tags:' "$<" | cut -d: -f2- | paste -sd ',')"; \
        export TAGS; \
+       DESCRIPTION="$(shell grep -i '^; *description:' "$<" | cut -d: -f2-)"; \
+       export DESCRIPTION; \
        envsubst < templates/header.html > $@; \
        envsubst < templates/article_header.html >> $@; \
        sed -e 1d \
index c0557b63068dc95a7bcafd6d9bf93191072b807d..8f2c196745a0d97074f12c2d6cc31aadbdddeba7 100644 (file)
@@ -1,4 +1,5 @@
-<meta property="og:description" content="Blog post - $TITLE. Learn more by visiting the page.">
+<meta property="og:title" content="based.quest - $TITLE">
+<meta property="og:description" content="$DESCRIPTION">
 <a href="index.html"><-- Back</a>
 <div id="post">
 <h1>$TITLE</h1>
index 39618d35fc36439a095705ff36b06339261aef36..1ec9f3844a99a4489b8a8bc4dfcf686e68973315 100644 (file)
@@ -1 +1 @@
-<!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"><meta property="og:title" content="based.quest"><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;}</style></head><body>
+<!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;}</style></head><body>
index 028439431db64a8105eba04388047697dc60356b..44f7b21418c3a611773879117bd1bc9743bd48bf 100644 (file)
@@ -1,3 +1,4 @@
+<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>
index 59bed190e317e744ae119ed3b313930026756e80..4753889af5e337bdd9eda166c5be07d1fd042c0a 100644 (file)
@@ -1 +1,2 @@
+<meta type="og:name" content="based.quest - $TITLE">
 <h2>$TITLE</h2>