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
|
template=_default
|
||||||
sidebar=sidebar
|
sidebar=sidebar
|
||||||
basedir=/gsoc/www
|
basedir=/gsoc/www
|
||||||
baseuri=http://$site
|
baseuri=http://$site/
|
||||||
for(i in siteTitle siteSubTitle title extraHeaders)
|
for(i in siteTitle siteSubTitle title extraHeaders)
|
||||||
$i = ''
|
$i = ''
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ fpath=$sitedir
|
|||||||
for ( i in '' $args ) {
|
for ( i in '' $args ) {
|
||||||
fpath = $fpath/$i
|
fpath = $fpath/$i
|
||||||
# We don't want blog settings to cascade into posts, note that we are inBlog instead
|
# 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
|
inBlog = $blogDirs
|
||||||
blogDirs = ()
|
blogDirs = ()
|
||||||
}
|
}
|
||||||
@ -202,6 +202,10 @@ if(! ~ $REQUEST_URI */index.rss) {
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ~ $body */[bB]log/indexrss */[bB]log//indexrss && ~ $#blogDirs 0 )
|
||||||
|
blogDirs = `{basename -d $body}
|
||||||
|
|
||||||
|
|
||||||
uri = `{echo $uri | sed 's/indexrss$//'}
|
uri = `{echo $uri | sed 's/indexrss$//'}
|
||||||
uri=$baseuri$"uri
|
uri=$baseuri$"uri
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user