werc-1.5.0-tweaks

Tweaks for the werc website builder created by the mad architect Uriel
Log | Files | Refs | README

commit b1e0edffe323980c8816f8a3bd275cad3954e70e
parent 72f154a8d62ef8500663b96aa7d16dfa8d253416
Author: Nuno Sempere <nuno.semperelh@protonmail.com>
Date:   Mon, 14 Mar 2022 22:33:08 +0000

fix: get this working on alpine linux

Diffstat:
Mbin/contrib/discount.rc | 4++--
Mbin/corehandlers.rc | 4+++-
Metc/initrc | 2+-
Mlib/footer.inc | 3++-
4 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/bin/contrib/discount.rc b/bin/contrib/discount.rc @@ -1,4 +1,4 @@ -#!/usr/bin/rc +#!/bin/rc # requires discount markdown: https://www.pell.portland.or.us/~orc/Code/discount/ -markdown -f fencedcode -f ext $1 +/usr/bin/markdown -f fencedcode -f ext $1 diff --git a/bin/corehandlers.rc b/bin/corehandlers.rc @@ -51,7 +51,9 @@ fn link_bar { echo '</ul>' } -fn md_handler { $formatter $1 } +fn md_handler { + $formatter $1 +} fn tpl_handler { template $* } diff --git a/etc/initrc b/etc/initrc @@ -26,7 +26,7 @@ path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin) # formatter, but all major functionality should should be formatter agnostic. #formatter=(fltr_cache markdown.pl) formatter=(fltr_cache md2html.awk) # no perl for old men -# formatter=(fltr_cache discount.rc) # use C for ze modern comforts. Requires https://www.pell.portland.or.us/~orc/Code/discount/ +# formatter=(fltr_cache discount.rc) # use C for ze modern comforts. Requires https://www.pell.portland.or.us/~orc/Code/discount/ # also, check that the #!/bin/rc at the top corresponds to the correct path for rc before using this. # Enable debugging, to disable set to () debug=true diff --git a/lib/footer.inc b/lib/footer.inc @@ -1,4 +1,5 @@ -<div><a href="http://werc.cat-v.org/">Powered by werc</a></div> +<div>Powered by <a href="http://werc.cat-v.org/">werc</a>, +<a href="https://alpinelinux.org/">Alpine Linux</a> and <a h ref="https://nginx.org/en/"> nginx</a></div> <div><a href="/_users/login">User Login</a> <!-- TODO: add duckduckgo site search