aboutsummaryrefslogtreecommitdiff
path: root/bin/compile-notes
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-10 14:36:24 +0100
committerSilvio Rhatto <rhatto@riseup.net>2024-06-10 14:36:24 +0100
commit4f568ab53f2df5a903dfa0131b277fb4b020125f (patch)
tree9fe27cc823f82645aa733029815adb386a2cbc5d /bin/compile-notes
parent456bdacb230fbfcb93114c663685551101dd2543 (diff)
downloadbookup-4f568ab53f2df5a903dfa0131b277fb4b020125f.tar.gz
bookup-4f568ab53f2df5a903dfa0131b277fb4b020125f.tar.bz2
Feat: localization support
Diffstat (limited to 'bin/compile-notes')
-rwxr-xr-xbin/compile-notes3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/compile-notes b/bin/compile-notes
index c56c56b..460f8f2 100755
--- a/bin/compile-notes
+++ b/bin/compile-notes
@@ -22,6 +22,9 @@ fi
STRUCTURE="structure/notes/$LANG"
TEMPLATES="templates/notes/$LANG"
+# Update _output.yml with language information
+sed -e "s|%%lang%%|$LANG|g" templates/_output.yml > _output.yml
+
# Remove any dangling output files
rm -f $OUTPUT.md