Tue, 09 Oct 2007

Testing a new version of an old blog

A few years ago I started a blog devoted to writings about the mysteries of the Rosary, but like many of my ever-welling monomanias it didn't last all that long. Here's a new version, done in emacs and pyblosxom like this one. Pardon the dust in the corners.

Fri, 28 Sep 2007

Setting up an rss feed from scratch

Or, adding rss to your pyblosxom flavour. This is for static rendering, which is all I use. I don't know whether this would work as-is for dynamic rendering.

UPDATE: Will Guaraldi set me straight. Adding "rss" to your "static_flavours" will give you a separate rss file for every entry and category in your blog along with the main rss file. That's crazy. If you're using static rendering and you just need one rss file for the whole thing, then add this to your config.py:

py["static_urls"] = ["/index.rss"]

and keep your original static_flavours setting.

Original entry (superceded):

The key to the problem is that rss is just another pyblosxom flavour. First, mention "rss" in the list of flavours to be rendered in config.py:

# What flavours should get generated?
py["static_flavours"] = ["html", "rss"]

Then create two files in your flavour directory, head.rss and story.rss:

head.rss

"
<?xml version="1.0" encoding="$blog_encoding"?>
<!--
    This web page is actually a data file that is meant to be read by
    RSS reader programs.

    See http://interglacial.com/rss/about.html to learn more about
    RSS.
-->
<rss version="2.0"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
     xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
  <title>blog_author - $blog_title</title>
  <link>$base_url</link>
  <description>$blog_description</description>
  <language>$blog_language</language>
  <copyright>$blog_rights</copyright>
  <pubDate>$latest_rfc822date</pubDate>
  <managingEditor>$blog_email</managingEditor>
  <generator>$pyblosxom_name [$pyblosxom_version]</generator>

story.rss

"
<item>
  <title>[$absolute_path] $title</title>
  <guid isPermaLink="true">$base_url/$file_path</guid>
  <link>$base_url/$file_path.html</link>
  <category domain="http://members.wolfram.com/billw">$absolute_path</category>
  <author>$blog_author &lt;$blog_email&gt;</author>
  <comments>$base_url/$file_path.html#comments</comments>
  <slash:comments>$num_comments</slash:comments>
  <pubDate>$rfc822date</pubDate>
  <description><![CDATA[
$body
]]></description>
</item>

(Note my hard-coded category domain. Is there a pybl setting for that?)

And that's it! When you do your static rendering you should see a bunch of .rss files being generated. You may also want to link to your new rss feed on your blog, as in:

<li><a href="http://members.wolfram.com/billw/summa/index.rss" >This blog's RSS 2.0 feed</a></li>

Wed, 26 Sep 2007

Code colorization via emacs muse

This muse markup:

<src lang="emacs-lisp">
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; highlighting stuff

(add-to-list 'load-path "~/.emacs.d/emacs-lisp/vinicius-jose-latorre")
(require 'highline)
(highline-mode-on)

(require 'blank-mode)
</src>

produces this output:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; highlighting stuff

(add-to-list 'load-path "~/.emacs.d/emacs-lisp/vinicius-jose-latorre")
(require 'highline)
(highline-mode-on)

(require 'blank-mode)

Adding a navigation bar to each entry

Just grab this file and follow the directions.

Thu, 20 Sep 2007

That was cool

How about Thai, Japanese, Chinese and Korean?

สวัสดีครับ, สวัสดีค่ะ

こんにちは, コンニチハ

你好

안녕하세요, 안녕하십니까

Can I do this?

Post in Russian and have everything just work?

Здравствуйте!

Mon, 10 Sep 2007

muse reads dirs only on startup?

Check out this bloggy goodness: highlighted code!

("blosxom"
 (,@(muse-project-alist-dirs "/home/billw/myblog/muse/")
  :default "index")
 ,@(muse-project-alist-styles "/home/billw/myblog/muse/"
                              "/home/billw/myblog/entries/"
                              "blosxom-xhtml")
 )