Commit graph

751 commits

Author SHA1 Message Date
Stanley Lieber
58d2576455 bin/werc.rc: don't hardcode default header template. move it into werc_exec_request and use fn get_lib_file to prefer a site-specific headers.tpl, just like other .tpl files 2020-06-09 20:42:37 -04:00
Stanley Lieber
d11a779f87 bin/werclib.rc: annotate ndate -i 'iso-8601 lite' 2020-06-09 20:40:15 -04:00
Stanley Lieber
11bb7be42a sites/default.cat-v.org/_werc/lib/footer.inc: google api key -> apps/duckduckgo 2020-05-31 23:24:56 -04:00
Stanley Lieber
9e93cd7ecb apps/duckduckgo/HOWTO: when installing, rename footer.inc.sample to footer.inc. 2020-05-31 23:02:34 -04:00
Stanley Lieber
a904204eda apps/duckduckgo/HOWTO: fix typo 2020-05-31 22:59:34 -04:00
Kurt H Maier
c0eaefe4fe style.css: restore table theming 2020-05-29 11:29:42 -07:00
Kurt H Maier
9b82eedfd6 apps/duckduckgo: fix accessibility problems
reported by WAVE: https://wave.webaim.org
2020-05-26 21:39:54 -07:00
Kurt H Maier
463eaa384e apps: rename 'search' to 'duckduckgo'
just in case we want to bring in a 'real' search app like e.g.
the one in wercchan, for which see
https://github.com/kfarwell/werchan/tree/master/apps/search
2020-05-25 19:20:16 -07:00
Kurt H Maier
930d4eb9f8 apps: add simple site-search app 2020-05-25 17:13:01 -07:00
Kurt H Maier
e11dc36640 blagh: jsonfeed support 2020-05-25 02:09:41 -07:00
Kurt H Maier
ea05499f77 lib+css: update to html5 tags, classless css 2020-05-25 00:47:51 -07:00
Stanley Lieber
0011a6aa7e apps/blagh/rss20.tpl: find the correct most recently updated file so the <lastBuildDate> field is precisely accurate. 2019-12-09 23:21:45 -05:00
Stanley Lieber
7190091456 apps/blagh/atom.tpl: find the correct most recently updated file so the feed <updated> field is precisely accurate. 2019-12-09 23:20:11 -05:00
Stanley Lieber
b0a633e7a1 bin/werclib.rc: ndate -a is rfc3339; ndate -t is iso-8601 2019-12-09 22:19:18 -05:00
Stanley Lieber
5cd45d42fe apps/blagh/atom.tpl, rss20.tpl: date -t -> date -a 2019-12-09 22:18:12 -05:00
Stanley Lieber
139a3ea228 bin/werclib.rc -> ndate -t output rfc3339 compliant dates. 2019-12-09 22:09:16 -05:00
Stanley Lieber
9f7d532a93 apps/blagh/atom.tpl: fix rfc3339 dates for feed <updated> and entry <updated> fields, needed for feed validation. 2019-12-09 22:03:57 -05:00
Stanley Lieber
708c506ba8 apps/blagh/rss20.tpl: improve grep for <lastBuildDate> 2019-12-09 19:46:57 -05:00
Stanley Lieber
50a4a9e742 apps/blagh/rss20.tpl: correctly generate accurate dates for <lastBuildDate> and <pubDate>. 2019-12-09 19:37:43 -05:00
Stanley Lieber
411eef1ab3 bin/werclib.rc: fn ndate: convert seconds to date when seconds is provided as the second argument. 2019-12-09 19:36:03 -05:00
Stanley Lieber
831c77bf3b sites/werc.cat-v.org/index.md: update repo and contact urls 2019-12-07 21:58:39 -05:00
Stanley Lieber
e12afcaded sites/werc.cat-v.org/apps/blagh/index.md: update example urls 2019-12-07 21:58:11 -05:00
Stanley Lieber
932446ba11 sites/default.cat-v.org/_werc/lib/: remove javascript google tracker from footers and headers 2019-12-07 21:57:16 -05:00
Stanley Lieber
4640183908 apps/blagh/: fix rss (passes validation), partially fix atom (does not pass validation) 2019-12-07 21:55:44 -05:00
Stanley Lieber
c3d7645c7c bin/werclib.rc: replace fn datei and fn datet (both broken) with fn ndate (implements 9front's date -i, -m, and -t) 2019-12-07 21:55:00 -05:00
Stanley Lieber
ed39b15eb1 apps/wman/app.rc: fix columnization 2019-12-07 21:53:38 -05:00
Stanley Lieber
0bd715dabb bin/contrib/rc-httpd/handlers/dir-index: use urlencode(1), not urlencode.awk (for now?) 2017-08-10 21:43:54 -04:00
Stanley Lieber
546bdc35ee bin/aux/* bin/contrib/*: change bang paths to /bin/*: this will later be documented. 2016-12-21 21:38:03 -05:00
Stanley Lieber
152479e0d9 etc/initrc: change default markdown formatter from markdown.pl (no modern perl on plan 9) to md2html.awk (works everywhere) 2016-12-02 20:35:58 -05:00
Stanley Lieber
fe7c0ec45a bin/contrib/tcp80: move log to /var/log/rc-httpd 2016-12-01 19:46:03 -05:00
Kurt H Maier
8b7a43f481 paste: remove some code smell, roll index.html into app.rc 2016-02-17 12:19:07 -05:00
Stanley Lieber
721ac39234 bin/contrib/rc-httpd/handlers/dir-index: use urlencode.awk 2016-02-11 16:25:11 -05:00
Stanley Lieber
52d7d43342 bin/contrib/rc-httpd/rc-httpd: add $libdir 2016-02-11 16:24:49 -05:00
Stanley Lieber
c046dd4f8f add bin/contrib/rc-httpd/lib/urldecode.awk 2016-02-11 16:23:48 -05:00
Stanley Lieber
130a3f4454 bin/contrib/rc-httpd/handlers/serve-static: file(1): try Plan 9 syntax first, then devolve to UNIX. 2016-02-10 20:38:40 -05:00
Stanley Lieber
66f39ebe38 apps/wman: fix comments and restore template syntax. 2016-02-10 20:34:33 -05:00
Stanley Lieber
0928d102d5 apps/blagh: use new datei and datet functions 2016-02-10 20:33:27 -05:00
Stanley Lieber
2f8c4cd8e8 bin/cgilib.rc: hack urlencode/urldecode for UNIX *and* Plan 9 2016-02-10 20:32:57 -05:00
Stanley Lieber
a2bcdde15f bin/werclib.rc: add datei() and datet() 2016-02-10 20:29:27 -05:00
Stanley Lieber
b40a814120 bin/contrib/rc-httpd/handlers/__mkfstmp: remove accidentally committed file. 2016-02-10 20:20:31 -05:00
Stanley Lieber
b64418b85f bin/contrib/rc-httpd: rc-httpd add system $PATH to $path; bin/contrib/rc-httpd/handlers/serve-static: try two different versions of file(1) syntax 2016-02-10 14:04:14 -05:00
Stanley Lieber
ccbcd67836 bin/contrib/tcp80: default log location is /var/log/www 2016-02-09 14:24:05 -05:00
Stanley Lieber
d9c48e6ee0 bin/contrib/rc-httpd/: fix default paths and environment variables; create a generic default select-handler; add tcp80, used for launching rc-httpd from listen(8) 2016-02-04 21:47:22 -05:00
Stanley Lieber
a99fa8b44f initial import of changes from 9front bikeshedding; bundle rc-httpd 2016-02-04 15:05:05 -05:00
Uriel
6d3bcc867c Be a bit more careful before we redirect to plain files when we get a trailing / and can't find a dir. 2012-08-19 01:16:10 +02:00
Uriel
771935dd43 Update readme to point to #cat-v instead of #plan9. 2012-08-19 01:07:54 +02:00
Uriel
b4fc73806b Ignore leading spaces/tabs when extracting a title from HTML files. 2011-06-30 22:58:17 +00:00
Uriel
1ede072465 Fix typo and add a new item to todo list. 2011-06-28 22:12:53 +00:00
Uriel
ffc7442ba3 When more than one file with the same 'name' (eg., foo.md, foo.html) do not display it more than once in dir listings. 2011-06-28 03:48:22 +00:00
Uriel
640aa2f900 Documentation updates:
- Try to explain better that werc expects Plan 9 tools in /usr/local/plan9/bin/
- Note possible bug.
- Other small doc changes.
2011-06-28 01:50:24 +00:00