From a22ed0a0c480e06162d99a1dd77ad36c2338a6af Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 17 Oct 2023 16:36:14 +0300 Subject: [demo] Updated with more detail --- demo/awk-scripts/Blog-info.awk | 6 ++++++ demo/awk-scripts/Heading-anchors.awk | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 demo/awk-scripts/Blog-info.awk create mode 100644 demo/awk-scripts/Heading-anchors.awk (limited to 'demo/awk-scripts') diff --git a/demo/awk-scripts/Blog-info.awk b/demo/awk-scripts/Blog-info.awk new file mode 100644 index 0000000..89e044a --- /dev/null +++ b/demo/awk-scripts/Blog-info.awk @@ -0,0 +1,6 @@ +# .*blog/.*/.*\.html +# Adds an element with date created, date edited and estimated read time below h1 + +/

Created: " created " | Last edited: " edited " | Read time: " (int(words / 180)+1) " min" +} diff --git a/demo/awk-scripts/Heading-anchors.awk b/demo/awk-scripts/Heading-anchors.awk new file mode 100644 index 0000000..7216c6d --- /dev/null +++ b/demo/awk-scripts/Heading-anchors.awk @@ -0,0 +1,7 @@ +# .*\.html +# Adds an HTML anchor after every header element (except h1), with an href to that header + +/§" +} -- cgit v1.3.1-26-gb76a