diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-13 23:49:02 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-13 23:49:02 +0100 |
commit | 74d5d27d77291654b15c1faffea6fb5f628d7aa7 (patch) | |
tree | b7eacda64d2ca262dda8c4fc142a4fc16b30bdd6 /modules/cgit/files/filters/hugo-pre.sh | |
parent | hornquist.se reword letsencrypt (diff) | |
parent | Raspi setup was a bad idea. (diff) | |
download | webdav_server-74d5d27d77291654b15c1faffea6fb5f628d7aa7.tar.gz webdav_server-74d5d27d77291654b15c1faffea6fb5f628d7aa7.tar.xz |
Merge branch 'raspi'
Diffstat (limited to '')
-rwxr-xr-x | modules/cgit/files/filters/hugo-pre.sh | 4 |
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> |