diff options
author | EuAndreh <eu@euandre.org> | 2023-04-10 17:58:46 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-10 17:58:46 -0300 |
commit | d52106454cb10a448ecc486bee1d8b9b92ab16cc (patch) | |
tree | 800e30cfb7e2742599a397251e9190be58f57923 /v2/src/bin/makemake | |
parent | v2: <link /> to collection feed inside <head> (diff) | |
download | euandre.org-d52106454cb10a448ecc486bee1d8b9b92ab16cc.tar.gz euandre.org-d52106454cb10a448ecc486bee1d8b9b92ab16cc.tar.xz |
v2: <link /> to rel="{prev,next}" in <head> of collection items
Diffstat (limited to '')
-rwxr-xr-x | v2/src/bin/makemake | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/v2/src/bin/makemake b/v2/src/bin/makemake index 3f4679d..22e92c9 100755 --- a/v2/src/bin/makemake +++ b/v2/src/bin/makemake @@ -136,6 +136,10 @@ for lang in $(langs); do echo "$CONTENT_PREFIX/$lang/${coll_path}index.extrahtml: $CONTENT_PREFIX/$lang/${coll_path}index.html" echo "$CONTENT_PREFIX/$lang/${coll_path}index.extrafeeds: $CONTENT_PREFIX/$lang/${coll_path}feed.xml" + + echo "$CONTENT_PREFIX/$lang/${coll_path}index.series: \$($c.$lang.conf)" + echo "\$($c.$lang.html): $CONTENT_PREFIX/$lang/${coll_path}index.series" + printf '\n\n' done @@ -152,6 +156,11 @@ for lang in $(langs); do collections | xargs -I% coll2path "$lang" % | + sed "s|^\(.*\)\$|$CONTENT_PREFIX/$lang/\1index.series|" | + varlist "all-generated.$lang.series" + + collections | + xargs -I% coll2path "$lang" % | sed "s|^\(.*\)\$|$CONTENT_PREFIX/$lang/\1index.categories|" | varlist "all-generated.$lang.categories" @@ -175,10 +184,11 @@ for lang in $(langs); do sed "s|^\(.*\)\$|$CONTENT_PREFIX/$lang/\1feed.xml|" | varlist "all-generated.$lang.xml" - extensions '.categories' '.extrahtml' '.extrafeeds' '.index' '.xml' | + extensions '.series' '.categories' '.extrahtml' '.extrafeeds' '.index' '.xml' | sed "s|^\(.*\)\$|\$(all-generated.$lang\1)|" | varlist "all-generated.$lang" + printf '\n' done @@ -201,7 +211,7 @@ printf 'svgs = $(svgs.uncolored:.uncolored=)\n\n' } > "$CONTENT_PREFIX"/.gitignore -for e in $(extensions '.categories' '.extrahtml' '.extrafeeds' '.index' '.xml'); do +for e in $(extensions '.series' '.categories' '.extrahtml' '.extrafeeds' '.index' '.xml'); do langs | sed "s|^\(.*\)\$|\$(all-generated.\1$e)|" | varlist "all-generated$e" |