jnordberg/wintersmith — pull request #30 by lhagan (2012-07-10 06:17:40+00:00)
Title: Improve intro functionality

These changes expand the functionality of the `intro` text, plus a related bug fix:

* Add horizontal rule (`

` generated with `---` in markdown) as delimiter for "more."
* Add `getIntro(base)` to enable conversion of relative links to absolute within intro text.
* Switch to using the URL module instead of regex to identify relative urls, and treat urls with a leading slash as relative. This was the only way I could get links such as `/archive.html` to output properly in an RSS feed. I'm not sure if there is a case where you'd want to leave such a link alone instead of prepending `locals.url`, but I couldn't find one in my usage anyway.