From 095d3dc2a22e571d643a9c13761c61a850b9951b Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Fri, 19 Mar 2021 09:07:49 +0100 Subject: [PATCH] Modified ssg5 to support og:title and twitter:title tags for better integration Signed-off-by: Louis Vallat --- src/_header.html | 10 +++++----- ssg5 | 10 +++++++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/_header.html b/src/_header.html index 25a103a..90b7204 100644 --- a/src/_header.html +++ b/src/_header.html @@ -16,16 +16,16 @@ PAGE CODED BY : - + - - + + - - + + diff --git a/ssg5 b/ssg5 index c1b85f4..a6e09a5 100755 --- a/ssg5 +++ b/ssg5 @@ -228,7 +228,15 @@ render_html_file() { } n = split(ENVIRON["HEADER"], header, /\n/) for (i = 1; i <= n; i++) { - if (match(tolower(header[i]), "")) { + if (match(tolower(header[i]), "")) { + head = substr(header[i], 1, RSTART - 1) + tail = substr(header[i], RSTART + RLENGTH) + print head "" tail + } else if (match(tolower(header[i]), "")) { + head = substr(header[i], 1, RSTART - 1) + tail = substr(header[i], RSTART + RLENGTH) + print head "" tail + } else if (match(tolower(header[i]), "")) { head = substr(header[i], 1, RSTART - 1) tail = substr(header[i], RSTART + RLENGTH) print head "" title "" tail