From f01bfb63ec8087f6b325595b140d2945203d339f Mon Sep 17 00:00:00 2001 From: Uriel Date: Sat, 13 Jun 2009 06:28:12 +0200 Subject: [PATCH] Remove the obsolete feed templates, they were moved to apps/blagh/ a while ago. --- lib/feeds/atom.tpl | 141 -------------------------------------------- lib/feeds/html.tpl | 22 ------- lib/feeds/rss20.tpl | 61 ------------------- 3 files changed, 224 deletions(-) delete mode 100644 lib/feeds/atom.tpl delete mode 100644 lib/feeds/html.tpl delete mode 100644 lib/feeds/rss20.tpl diff --git a/lib/feeds/atom.tpl b/lib/feeds/atom.tpl deleted file mode 100644 index 42add06..0000000 --- a/lib/feeds/atom.tpl +++ /dev/null @@ -1,141 +0,0 @@ -Content-Type: application/atom+xml - - - - -%{ -fn statpost { - f = $1 - - updated = `{/bin/date --rfc-3339'=seconds' -r $f |sed 's/ /T/'} - # XXX $post_uri is broken produces output that includes full file path (eg., /gsoc/www/...) - post_uri=$baseuri^`{cleanname `{echo $f | sed -e 's,^'$sitedir',,' -e 's/\.(md|tpl)$//g'}} - title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' } - # Not used: date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}} - # TODO: use mtime(1) and ls(1) instead of lunix's stat(1) - stat=`{stat -c '%Y %U' $f} - #mdate=`{/bin/date -Rd `{mtime $f|awk '{print $1}' }} # Not used because it is unreliable - by=$stat(2) - ifs=() { summary=`{cat $f | crop_text 512 ... | $formatter } } -} -updated = `{/bin/date --rfc-3339'=seconds' |sed 's/ /T/'} -%} - - - - - %($uri%) - /favicon.ico - - %($siteTitle%) - %($siteSubTitle%) - - - %($updated%) - - -%{ - for(f in `{sortedBlogPostList $blogDirs}) { - statpost $f -%} - - - %($post_uri%) - - %($title%) - - - %($by%) - - - -
- %($summary%) -
- - %($updated%) -
- - -% } - -
- -% exit - - - - http://intertwingly.net/blog/index.atom - ../favicon.ico - - Sam Ruby - It’s just data - - Sam Ruby - rubys@intertwingly.net - /blog/ - - 2008-09-24T12:47:00-04:00 - - - - - tag:intertwingly.net,2004:2899 - - - RubyConf 2008 -
- -

My proposal has been accepted for RubyConf 2008.  Because of the presence of Ruby implementers, this is going to be a bit challenging as it will likely turn into two talks at once.  One sharing experiences with fellow developers concerning things they may need to watch out for, and another with language designers about the impact of their changes.  It also is likely to be true, as it was at OSCON, that there will be members of the audience who know way more about this subject than I do.

-

I had originally requested a slot on Saturday.  My current slot requires me to shave a day off of ApacheCon.  I’ve again asked that the slot be changed, but even if it doesn’t move, I can manage this.  At least we are only talking about a short hop from New Orleans to Orlando.

- -
- 2008-09-11T06:51:36-04:00 -
- - - tag:intertwingly.net,2004:2898 - - - Small Updates -
- -

Alf Eaton: Aside: if you’re reading a Planet that contains HubLog, those posts will all jump to the top - sorry! (I wish Planets dealt better with small updates so I didn’t have to worry about it).

-

I don’t know what publishing software you use, but I see you provide an Atom feed, and Planet 2.0 and Venus both implement atom:updated as specified in RFC 4287.

- -
-
- -

Alf Eaton: Aside: if you’re reading a Planet that contains HubLog, those posts will all jump to the top - sorry! (I wish Planets dealt better with small updates so I didn’t have to worry about it).

-

I don’t know what publishing software you use, but I see you provide an Atom feed, and Planet 2.0 and Venus both implement atom:updated as specified in RFC 4287.

-

More specifically, if you have a minor update and leave the updated date alone, the posts will not jump to the top.  The next release of WordPress, for example, will contain the necessary hooks for a plugin to provide a simple checkbox for indicating that the change constitutes a minor edit.

- -
- 2008-09-10T10:18:47-04:00 -
- - - tag:intertwingly.net,2004:2897 - - - SVG via CSS -
- -

Now that I have my weblog looking reasonably consistent between Gecko and WebKit based browsers, I’ve taken another look at Opera.  Opera doesn’t have support for border-radius, but does have support for background images in SVG, which can be used to provide the same effect.  My Nav Bar on my test site now employs this technique, and it requires two separate images: 039 on CCD and CCD on FFF.

-

Frankly, my first reaction to this was mixed.  The pluses for SVG in CSS is that it doesn’t require either adjusting your markup or JavaScript to achieve these effects, a desirable characteristic that generally the other techniques don’t share.

- -
- -
- -

Now that I have my weblog looking reasonably consistent between Gecko and WebKit based browsers, I’ve taken another look at Opera.  Opera doesn’t have support for border-radius, but does have support for background images in SVG, which can be used to provide the same effect.  My Nav Bar on my test site now employs this technique, and it requires two separate images: 039 on CCD and CCD on FFF.

-

Meanwhile, Robert O’Callahan has been exploring other ways to integrate these technologies.

- -
- 2008-09-07T11:12:29-04:00 -
- -
- diff --git a/lib/feeds/html.tpl b/lib/feeds/html.tpl deleted file mode 100644 index 31ecccc..0000000 --- a/lib/feeds/html.tpl +++ /dev/null @@ -1,22 +0,0 @@ -% if (! ~ $blogTitle '') -% echo '

'$"blogTitle'

' - -
(RSS Feed|Atom Feed)
- -%{ -for (f in `{ sortedBlogPostList $blogDirs }) { - gen_blog_post_title $f - cat $f - echo ' ' # XXX I have no clue why the ' ' is needed, a echo without args breaks markdown.pl?!? -} | $formatter - -# TODO Should check if user has perms and so on -get_user -if(~ $#logged_user 1) { -%} -
- - -
-% } -
diff --git a/lib/feeds/rss20.tpl b/lib/feeds/rss20.tpl deleted file mode 100644 index 7b0ea74..0000000 --- a/lib/feeds/rss20.tpl +++ /dev/null @@ -1,61 +0,0 @@ -Content-Type: text/xml; charset=utf-8 - - - -%{ -fn statpost { - f = $1 - uri = `{echo $f | sed 's,^'$sitedir',,'} - 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]$//'}} - # TODO: use mtime(1) and ls(1) instead of lunix's stat(1) - stat=`{stat -c '%Y %U' $f} - #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=() { - summary=`{awk -v max'='1024 '{ - nc += 1 + length; - if(nc > max) { - print substr($0, 1, nc - max) "..." - exit - } - print - }' $f |fmt -j| sed 's/\]\]>/Fucking goddamn XML garbage/g'} - } -} - -%} - - - - - %($siteTitle%) - %($uri%) - %($blogDesc%) - en-us - Tom Duff's rc, and Kris Maglione's clever hackery -%{ - # uriel99+rss@gmail.com (Uriel) - for(f in `{sortedBlogPostList $blogDirs}) { - statpost $f - # Hack to aproximate the last build date - #(use the mdate from last posted item) - # Commented out for now because maybe a wrong value is worse than no value - #if(~ $#last_build_date 0) { - #last_build_date=''^$"mdate'' - #echo $last_build_date - #} -%} - - %($title%) - %($by%)@noreply.cat-v.org (%($by%)) - %($uri%) - %($uri%) - %($date%) - %($summary%)]]> - -% } - - -