2009/11/10 Uriel <[email protected]>:
> This solves some of the issues, but as I noted in irc: I still think
> it should not touch the generated html and instead manipulate the
> markdown, and it breaks the proper chronological sorting of dir
> "aggregations".
>
this version of blagh.patch should work, it is a bit simpler. you want
blagh.donottouchthehtml.patch, but if you use that you will finish
with two almost identical html outputs in the cache for every file
--
- yiyus || JGL . 4l77.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"werc" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/werc9?hl=en
-~----------~----~----~----~------~----~------~--~---
diff -r 55d60f7ecc11 apps/blagh/app.rc
--- a/apps/blagh/app.rc Wed Sep 09 10:39:56 2009 +0200
+++ b/apps/blagh/app.rc Tue Nov 10 23:57:21 2009 +0100
@@ -72,13 +72,10 @@
echo '<div style="text-align:right">(<a href="index.rss">RSS Feed</a>|<a href="index.atom">Atom Feed</a>)</div>'
- { # XXX Not sure why this fixes issues with blog setup, probably bug in fltr_cache!
for(p in `{get_post_list $blagh_root^$blagh_dirs}) {
l=`{echo -n $p|sed 's!'$sitedir^'/?(.*)([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])(/[^/]+/)!\2 /\1\2\3!'}
- sed '1s!.*^') ('^$l(1)^')!' < $p/index.md
- echo # Needed extra \n so markdown doesn't mess up the formatting, probably can be done in sed.
- }
- } | $formatter
+ $formatter $p/index.md | sed '1s!>!><a href="'^$l(2)^'">!;1s!</[^<]+$!</a> ('^$l(1)^')&!'
+ } | fltr_cache cat
}
fn get_post_list {
diff -r 55d60f7ecc11 apps/blagh/app.rc
--- a/apps/blagh/app.rc Wed Sep 09 10:39:56 2009 +0200
+++ b/apps/blagh/app.rc Wed Nov 11 00:03:18 2009 +0100
@@ -72,13 +72,10 @@
echo '<div style="text-align:right">(<a href="index.rss">RSS Feed</a>|<a href="index.atom">Atom Feed</a>)</div>'
- { # XXX Not sure why this fixes issues with blog setup, probably bug in fltr_cache!
for(p in `{get_post_list $blagh_root^$blagh_dirs}) {
l=`{echo -n $p|sed 's!'$sitedir^'/?(.*)([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])(/[^/]+/)!\2 /\1\2\3!'}
- sed '1s!.*^') ('^$l(1)^')!' < $p/index.md
- echo # Needed extra \n so markdown doesn't mess up the formatting, probably can be done in sed.
- }
- } | $formatter
+ sed '1s!.*^') ('^$l(1)^')!' < $p/index.md | $formatter
+ } | fltr_cache cat
}
fn get_post_list {