aboutsummaryrefslogtreecommitdiff
path: root/v2/src/bin/makemake
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-10 17:58:46 -0300
committerEuAndreh <eu@euandre.org>2023-04-10 17:58:46 -0300
commitd52106454cb10a448ecc486bee1d8b9b92ab16cc (patch)
tree800e30cfb7e2742599a397251e9190be58f57923 /v2/src/bin/makemake
parentv2: <link /> to collection feed inside <head> (diff)
downloadeuandre.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-xv2/src/bin/makemake14
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"