Introduction
Introduction Statistics Contact Development Disclaimer Help
Be smarter about when to enable comments, and make it configurable. - swerc - a…
git clone git://git.suckless.org/swerc
Log
Files
Refs
README
---
commit c1f524d2b771cce19f46a7ccdbdacfd1090e8ef5
parent 9729e11e3ab114808b47428f5291a8081781feac
Author: [email protected] <unknown>
Date: Mon, 26 Jan 2009 06:12:45 +0100
Be smarter about when to enable comments, and make it configurable.
Diffstat:
M apps/bridge/app.rc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/apps/bridge/app.rc b/apps/bridge/app.rc
@@ -1,5 +1,6 @@
+comment_file_types=(md html)
fn bridge_init {
- if(! ~ $#enable_comments 0 && test -f $local_path.md) {
+ if(! ~ $#enable_comments 0 && ! ~ `{ls $local_path.$comment_file_types >[2…
ll_add handlers_body_foot template apps/bridge/foot.tpl
if(get_post_args comment_text) {
d=`{date -n} # FIXME Obvious race
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.