From e99d2c5bb114ea3d7016d20fc1a2ac916ff29835 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 2 Sep 2022 13:19:24 -0300 Subject: v2/src/development/genhtml.sh: Get content from *.entry-content --- v2/src/development/genhtml.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/v2/src/development/genhtml.sh b/v2/src/development/genhtml.sh index e4c6d1a..f1ccf43 100755 --- a/v2/src/development/genhtml.sh +++ b/v2/src/development/genhtml.sh @@ -105,13 +105,6 @@ slugify_once() { fi } -extract_content() { - awk ' - separator >= 2 - /^---$/ { separator++ } - ' -} - add_preamble() { printf '%s\n%s\n' "$PREAMBLE" "$(cat -)" } @@ -210,8 +203,7 @@ add_headings_anchors() { } emit_body() { - cat "$FILENAME" | - extract_content | + cat "${FILENAME%.md}.entry-content" | add_preamble | markdown_to_html | extract_plaintext_snippets | -- cgit v1.2.3