From: Joann Mõndresku Date: Fri, 16 Jul 2021 12:51:39 +0000 (+0300) Subject: Add OpenGraph description support to blogit X-Git-Url: https://git.based.quest/?a=commitdiff_plain;h=8c9e33cda9a6753f01cf770e15e65077d6fe614c;p=web-old.git Add OpenGraph description support to blogit --- diff --git a/articles/launch-and-intentions.md b/articles/launch-and-intentions.md index 33f7c14..f96bd27 100644 --- a/articles/launch-and-intentions.md +++ b/articles/launch-and-intentions.md @@ -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. diff --git a/articles/steam-deck-a-linux-loveletter.md b/articles/steam-deck-a-linux-loveletter.md index 16718ce..9e6f221 100644 --- a/articles/steam-deck-a-linux-loveletter.md +++ b/articles/steam-deck-a-linux-loveletter.md @@ -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. diff --git a/articles/web-git-viewable.md b/articles/web-git-viewable.md index 23f39d9..1ad8e8b 100644 --- a/articles/web-git-viewable.md +++ b/articles/web-git-viewable.md @@ -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 5be2429..4f590f4 100755 --- 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 \ diff --git a/templates/article_header.html b/templates/article_header.html index c0557b6..8f2c196 100644 --- a/templates/article_header.html +++ b/templates/article_header.html @@ -1,4 +1,5 @@ - + + <-- Back

$TITLE

diff --git a/templates/header.html b/templates/header.html index 39618d3..1ec9f38 100644 --- a/templates/header.html +++ b/templates/header.html @@ -1 +1 @@ -$TITLE +$TITLE diff --git a/templates/index_header.html b/templates/index_header.html index 0284394..44f7b21 100644 --- a/templates/index_header.html +++ b/templates/index_header.html @@ -1,3 +1,4 @@ +

> curl based.quest -v

* Trying 127.0.0.1:80...

diff --git a/templates/tag_index_header.html b/templates/tag_index_header.html index 59bed19..4753889 100644 --- a/templates/tag_index_header.html +++ b/templates/tag_index_header.html @@ -1 +1,2 @@ +

$TITLE