diff --git a/bin/controller.rc b/bin/controller.rc index 7431621..3f57c48 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -230,7 +230,7 @@ fn genbody { if(! ~ $#debug 0) - dprint $SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_USER_AGENT + dprint ' ' $SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_USER_AGENT if (! ~ $args '') { @@ -284,6 +284,10 @@ if (! ~ $#sidebar 0) body=$sitedir/$body rssuri=$uri + +#if(~ $body */index) + #perm_redirect `{ echo $REQUEST_URI | sed 's,/index$,/,' } + if (test -d $body) { if(! ~ $body */) perm_redirect $REQUEST_URI^'/' @@ -334,7 +338,7 @@ fn statpost { title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' } date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}} stat=`{stat -c '%Y %U' $f} - mdate=`{/bin/date -Rd @$stat(1)} + #mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable uri=$baseuri^`{cleanname `{echo -n $uri | sed 's/\.(md|tpl)//g'}} by=$stat(2) ifs=() { diff --git a/bin/hgweb.config b/bin/hgweb.config index 2334437..fba802b 100644 --- a/bin/hgweb.config +++ b/bin/hgweb.config @@ -1,6 +1,6 @@ [web] style = gitweb -allow_archive = bz2 zip +allow_archive = bz2 #[paths] #w9 = /gsoc/hg/w9/ diff --git a/inc/headers.tpl b/inc/headers.tpl index e7343ae..fc8a14a 100644 --- a/inc/headers.tpl +++ b/inc/headers.tpl @@ -27,6 +27,7 @@ Content-Type: text/html %($extraHeaders%) +
diff --git a/pub/feeds/rss20.tpl b/pub/feeds/rss20.tpl index ec7e10d..dde92aa 100644 --- a/pub/feeds/rss20.tpl +++ b/pub/feeds/rss20.tpl @@ -13,11 +13,13 @@ Content-Type: text/xml; charset=utf-8 %{ for(f in `{sortedBlogPostList $blogDirs}) { statpost $f - # Hack to aproximate the last build date (use the mdate from last posted item) - if(~ $#last_build_date 0) { - last_build_date='