paramaterized feed, rsync deployment, and unified layouts
parent
a72b96142a
commit
e0a0d093c4
@ -1,26 +0,0 @@
|
||||
!!! 1.1 Transitional
|
||||
%html(xmlns="http://www.w3.org/1999/xhtml" xml:lang="en")
|
||||
%head
|
||||
%title= page.title
|
||||
- if page.respond_to? :description
|
||||
%meta{:name=>"description", :content=>page.description}/
|
||||
- if page.respond_to? :keywords
|
||||
%meta{:name=>"keywords", :content=>page.keywords}/
|
||||
%link(href="/stylesheets/screen.css" rel="stylesheet" media="screen projection" type="text/css")
|
||||
%link(href="/blog/atom.xml" rel="alternate" title="Brandon Mathis - Design Enthusiast" type="application/atom+xml")
|
||||
%body
|
||||
#header
|
||||
.page_width
|
||||
%a.title(href="/")My Blog
|
||||
%ul#header_nav.nav
|
||||
%li.alpha
|
||||
%a(href="/") Home
|
||||
#page
|
||||
.page_width
|
||||
%h2= rp(page.title)
|
||||
= content
|
||||
%p.pubdate
|
||||
Published:
|
||||
=page.date.strftime("%d %b, %Y")
|
||||
#footer
|
||||
.page_width Footer
|
@ -1,25 +1,25 @@
|
||||
---
|
||||
layout: nil
|
||||
address: http://yoursite.com
|
||||
author: Your Name
|
||||
email: author@domain.com
|
||||
name: Your Name
|
||||
blog_title: My Blog
|
||||
blog_title: My Octopress Blog
|
||||
root_url: http://yoursite.com
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
!!! XML
|
||||
%feed(xmlns="http://www.w3.org/2005/Atom")
|
||||
%title= "#{page.name} - #{page.blog_title}"
|
||||
%link(href="#{page.address}/atom.xml" rel="self")
|
||||
%link(href="#{page.address}")
|
||||
%title= page.blog_title
|
||||
%link(href="#{page.root_url}/atom.xml" rel="self")
|
||||
%link(href="#{page.root_url}")
|
||||
%updated= Time.now.xmlschema
|
||||
%id=page.address
|
||||
%id=page.root_url
|
||||
%author
|
||||
%name= page.name
|
||||
%name= page.author
|
||||
%email= page.email
|
||||
- site.posts[0..14].each do |post|
|
||||
%entry
|
||||
%title= rp(post.title)
|
||||
%link(href="#{full_url(post.url)}")
|
||||
%link(href="#{page.root_url}#{post.url}")
|
||||
%updated=post.date.xmlschema
|
||||
%id= full_url(post.id)
|
||||
%id= "#{page.root_url}#{post.id}"
|
||||
%content(type="html")
|
||||
= h(absolute_url(rp(post.content)))
|
Loading…
Reference in New Issue