summaryrefslogtreecommitdiff
path: root/modules/cgit/files/filters/hugo-pre.sh
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-13 23:49:02 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-13 23:49:02 +0100
commit74d5d27d77291654b15c1faffea6fb5f628d7aa7 (patch)
treeb7eacda64d2ca262dda8c4fc142a4fc16b30bdd6 /modules/cgit/files/filters/hugo-pre.sh
parenthornquist.se reword letsencrypt (diff)
parentRaspi setup was a bad idea. (diff)
downloadwebdav_server-74d5d27d77291654b15c1faffea6fb5f628d7aa7.tar.gz
webdav_server-74d5d27d77291654b15c1faffea6fb5f628d7aa7.tar.xz
Merge branch 'raspi'
Diffstat (limited to 'modules/cgit/files/filters/hugo-pre.sh')
-rwxr-xr-xmodules/cgit/files/filters/hugo-pre.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/cgit/files/filters/hugo-pre.sh b/modules/cgit/files/filters/hugo-pre.sh
index de94b26..b716525 100755
--- a/modules/cgit/files/filters/hugo-pre.sh
+++ b/modules/cgit/files/filters/hugo-pre.sh
@@ -2,10 +2,10 @@
name=$1
-extension=${1: -3}
+extension=${name: -3}
case $extension in
- .md) markdown ;;
+ .md) pandoc -f gfm -t html ;;
*)
cat <<- EOF
<pre>$(cat -)</pre>