summaryrefslogtreecommitdiff
path: root/lib/template.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-09 00:10:31 +0300
committerPaul Buetow <paul@buetow.org>2025-07-09 00:10:31 +0300
commit1c1109b7e0d741a113af1d94a5741d9fe7373f04 (patch)
tree9cab77a26d0f89fe249755c784352ab7d479ca3a /lib/template.source.sh
parent99078f90bf5222c618a60e536cb148850e4b89e2 (diff)
feat: auto-detect language for source-highlight
Diffstat (limited to 'lib/template.source.sh')
-rw-r--r--lib/template.source.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/template.source.sh b/lib/template.source.sh
index c93b66e..8ab19d5 100644
--- a/lib/template.source.sh
+++ b/lib/template.source.sh
@@ -106,12 +106,12 @@ template::inline::_index () {
# Can be used from a .gmi.tpl template for generating an index for a given topic.
template::inline::index () {
- template::inline::_index $@ | sort | uniq
+ template::inline::_index "$@" | sort | uniq
}
# Same as index, but reverse order
template::inline::rindex () {
- template::inline::_index $@ | sort -r | uniq
+ template::inline::_index "$@" | sort -r | uniq
}
# TODO: Write unit test.