From 5c9e3886de0f9041e4a6fb6fea9917e29a8fbd76 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 4 Apr 2023 00:17:01 +0300 Subject: add source-hightlight example --- testpage.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'testpage.html') diff --git a/testpage.html b/testpage.html index 393a34f0..abcef0df 100644 --- a/testpage.html +++ b/testpage.html @@ -18,6 +18,41 @@

* Entry 1 jo yay jo

* Entry 2 jo yay jo

* Entry 3 jo yay jo

+ +
#!/usr/bin/env bash
+#
+# The Gemtexter blog engine and static site generator
+# by Paul Buetow 2021, 2022, 2023
+
+declare -r ARG="$1"; shift
+declare CONTENT_FILTER="$1"; shift
+declare -r VERSION=2.0.1
+declare -r VERSION_DESCR=bugfix
+declare -r DATE_FORMAT='--iso-8601=seconds'
+declare DATE=date
+declare SED=sed
+declare GREP=grep
+declare XMLLINT=''
+which gdate &>/dev/null && DATE=gdate
+which gsed &>/dev/null && SED=gsed
+which ggrep &>/dev/null && GREP=ggrep
+readonly DATE
+readonly SED
+readonly GREP
+
+# Set unset variables to make 'set -u' work, they can optionally be passed as
+# enviroments to Gemtexter
+test -z "$CONFIG_FILE_PATH" && CONFIG_FILE_PATH=''
+test -z "$GIT_COMMIT_MESSAGE" && GIT_COMMIT_MESSAGE=''
+test -z "$LOG_VERBOSE" && LOG_VERBOSE=''
+test -z "$PRE_GENERATE_HOOK" && PRE_GENERATE_HOOK=''
+test -z "$POST_PUBLISH_HOOK" && POST_PUBLISH_HOOK=''
+
+set -euf -o pipefail
+
https://foo.zone
link
link jo yay jo
-- cgit v1.2.3