Fix RSS feeds, this sucks and needs to be heavily reworked
This commit is contained in:
parent
9d84ca1662
commit
abbe859888
@ -15,7 +15,7 @@ body=index
|
||||
template=_default
|
||||
sidebar=sidebar
|
||||
basedir=/gsoc/www
|
||||
baseuri=http://$site
|
||||
baseuri=http://$site/
|
||||
for(i in siteTitle siteSubTitle title extraHeaders)
|
||||
$i = ''
|
||||
|
||||
@ -132,7 +132,7 @@ fpath=$sitedir
|
||||
for ( i in '' $args ) {
|
||||
fpath = $fpath/$i
|
||||
# We don't want blog settings to cascade into posts, note that we are inBlog instead
|
||||
if ( ! ~ $#blogDirs 0 ) {
|
||||
if ( ! ~ $#blogDirs 0 && ! ~ $body */indexrss ) {
|
||||
inBlog = $blogDirs
|
||||
blogDirs = ()
|
||||
}
|
||||
@ -202,6 +202,10 @@ if(! ~ $REQUEST_URI */index.rss) {
|
||||
exit
|
||||
}
|
||||
|
||||
if ( ~ $body */[bB]log/indexrss */[bB]log//indexrss && ~ $#blogDirs 0 )
|
||||
blogDirs = `{basename -d $body}
|
||||
|
||||
|
||||
uri = `{echo $uri | sed 's/indexrss$//'}
|
||||
uri=$baseuri$"uri
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user