diff options
author | EuAndreh <eu@euandre.org> | 2022-09-02 13:19:24 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-09-02 13:19:24 -0300 |
commit | e99d2c5bb114ea3d7016d20fc1a2ac916ff29835 (patch) | |
tree | 35f8624c0a5b220c7510952f2b0c253ab05beae5 /v2/src/development | |
parent | v2/: Centralize all env vars in the generated *.entry-env file (diff) | |
download | euandre.org-e99d2c5bb114ea3d7016d20fc1a2ac916ff29835.tar.gz euandre.org-e99d2c5bb114ea3d7016d20fc1a2ac916ff29835.tar.xz |
v2/src/development/genhtml.sh: Get content from *.entry-content
Diffstat (limited to 'v2/src/development')
-rwxr-xr-x | v2/src/development/genhtml.sh | 10 |
1 files changed, 1 insertions, 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 | |