paramaterized layout and page files

This commit is contained in:
B Mathis
2009-10-18 20:42:54 -05:00
parent d8d51719fb
commit f5aca90435
2 changed files with 15 additions and 7 deletions

View File

@ -1,16 +1,20 @@
---
layout: nil
address: http://yoursite.com
email: author@domain.com
name: Your Name
blog_title: My Blog
---
<?xml version="1.0" encoding="utf-8"?>
%feed(xmlns="http://www.w3.org/2005/Atom")
%title Your Name - Your Site
%link(href="yoursite.com/atom.xml" rel="self")
%link(href="yoursite.com")
%title= "#{page.name} - #{page.blog_title}"
%link(href="#{page.address}/atom.xml" rel="self")
%link(href="#{page.address}")
%updated= Time.now.xmlschema
%id http://yoursite.com/
%id=page.address
%author
%name Your Name
%email user[at]domain.com
%name= page.name
%email= page.email
- site.posts[0..14].each do |post|
%entry
%title= rp(post.title)