From d52106454cb10a448ecc486bee1d8b9b92ab16cc Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Apr 2023 17:58:46 -0300 Subject: v2: to rel="{prev,next}" in of collection items --- v2/src/bin/html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'v2/src/bin/html') diff --git a/v2/src/bin/html b/v2/src/bin/html index 578c539..a54ab68 100755 --- a/v2/src/bin/html +++ b/v2/src/bin/html @@ -213,6 +213,22 @@ emit_body() { warn_duplicate_ids } +if [ -r "$FILENAME".prev ]; then + collection_head_prev_html="$( + printf ' ' \ + "$(url-for < "$FILENAME".prev)" + )" + export collection_head_prev_html +fi + +if [ -r "$FILENAME".next ]; then + collection_head_next_html="$( + printf ' ' \ + "$(url-for < "$FILENAME".next)" + )" + export collection_head_next_html +fi + envsubst < src/lib/preamble.html emit_body | tee "${FILENAME%.*}.htmlbody" envsubst < src/lib/postamble.html -- cgit v1.2.3