diff options
author | EuAndreh <eu@euandre.org> | 2023-04-04 17:24:12 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-04 17:24:12 -0300 |
commit | 419cd721024f5ebc364cdd9014222e0a48221ac7 (patch) | |
tree | 6de46c7c89853514f5b5be30a392bb7570767354 /v2/src/bin | |
parent | v2: WIP genhtml via envsubst (diff) | |
download | euandre.org-419cd721024f5ebc364cdd9014222e0a48221ac7.tar.gz euandre.org-419cd721024f5ebc364cdd9014222e0a48221ac7.tar.xz |
v2/: HTML! Handle pages, multiple languages, and snippets
Diffstat (limited to 'v2/src/bin')
-rwxr-xr-x | v2/src/bin/makemake | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/v2/src/bin/makemake b/v2/src/bin/makemake index 06a7d33..17fa244 100755 --- a/v2/src/bin/makemake +++ b/v2/src/bin/makemake @@ -66,16 +66,23 @@ varlist() { html_deps() { "$@" | sed 's/^\(.*\)\.md$/\1.conf \1.content: \1.md/' - "$@" | sed 's/^\(.*\)\.md$/\1.html: \1.conf \1.content/' + "$@" | sed 's/^\(.*\)\.md$/\1.snippets \1.html: \1.conf \1.content/' printf '\n' } content_mds() { - find src/content/"$1"/ -type f -name '*.md' + { + if [ "$r" = 'pages' ]; then + echo src/content/*.md + else + echo src/content/"$r"/*.md + fi + } | tr ' ' '\n' } RESOURCES=' +pages pastebins tils ' @@ -87,6 +94,7 @@ EXTENSIONS=' .prehtml .posthtml .html +.snippets ' for r in $RESOURCES; do @@ -111,6 +119,7 @@ for r in $RESOURCES; do printf '\n' done + all_resources() { echo "$RESOURCES" | tr ' ' '\n' | grep . } |