werc-1.5.0-tweaks

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

commit 72f154a8d62ef8500663b96aa7d16dfa8d253416
parent ae14bd3fbbb109b15cc81c71ed002bcc7d3f6b2f
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Sun, 13 Mar 2022 03:44:10 +0000

tweak: Make top header a site-independent setting

Diffstat:
Mlib/default_master.tpl | 2+-
Asites/tst.cat-v.org/_werc/lib/footer.inc | 5+++++
Asites/tst.cat-v.org/_werc/lib/top_bar.inc | 23+++++++++++++++++++++++
3 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/lib/default_master.tpl b/lib/default_master.tpl @@ -1,6 +1,6 @@ <header> <nav> -% cat `{ get_lib_file top_bar.inc } +% cat `{pwd}^/sites^/`{echo $site }^/_werc/lib/top_bar.inc </nav> <h1><a href="/">%($"siteTitle%) <span id="headerSubTitle">%($"siteSubTitle%)</span></a></h1> </header> diff --git a/sites/tst.cat-v.org/_werc/lib/footer.inc b/sites/tst.cat-v.org/_werc/lib/footer.inc @@ -0,0 +1,5 @@ +<br class="doNotDisplay doNotPrint" /> + +<div style="margin-right: auto;"><a href="http://werc.cat-v.org">Powered by werc</a></div> + +<div><form action="/_search/" method="POST"><input type="text" id="searchtext" name="q"> <input type="submit" value="Search"></form></div> diff --git a/sites/tst.cat-v.org/_werc/lib/top_bar.inc b/sites/tst.cat-v.org/_werc/lib/top_bar.inc @@ -0,0 +1,23 @@ + <div class="left"> + <a href="http://quotes.cat-v.org">quotes</a> | + <a href="http://doc.cat-v.org">docs</a> | + <a href="http://repo.cat-v.org">repo</a> | + <a href="http://go-lang.cat-v.org">golang</a> | + <a href="http://sam.cat-v.org">sam</a> | + <a href="http://man.cat-v.org">man</a> | + <a href="http://acme.cat-v.org">acme</a> | + <a href="http://glenda.cat-v.org">Glenda</a> | + <a href="http://ninetimes.cat-v.org">9times</a> | + <a href="http://harmful.cat-v.org">harmful</a> | + <a href="http://9p.cat-v.org/">9P</a> | + <a href="http://cat-v.org">cat-v.org</a> + </div> + + <div class="right"> + + <span class="doNotDisplay">Related sites:</span> + | <a href="http://cat-v.org/update_log">site updates</a> + | <a href="/sitemap">site map</a> | + + </div> +