B Mathis
15 years ago
6 changed files with 40 additions and 53 deletions
@ -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 |
layout: nil |
||||
address: http://yoursite.com |
author: Your Name |
||||
email: author@domain.com |
email: author@domain.com |
||||
name: Your Name |
blog_title: My Octopress Blog |
||||
blog_title: My Blog |
root_url: http://yoursite.com |
||||
--- |
--- |
||||
<?xml version="1.0" encoding="utf-8"?> |
!!! XML |
||||
%feed(xmlns="http://www.w3.org/2005/Atom") |
%feed(xmlns="http://www.w3.org/2005/Atom") |
||||
%title= "#{page.name} - #{page.blog_title}" |
%title= page.blog_title |
||||
%link(href="#{page.address}/atom.xml" rel="self") |
%link(href="#{page.root_url}/atom.xml" rel="self") |
||||
%link(href="#{page.address}") |
%link(href="#{page.root_url}") |
||||
%updated= Time.now.xmlschema |
%updated= Time.now.xmlschema |
||||
%id=page.address |
%id=page.root_url |
||||
%author |
%author |
||||
%name= page.name |
%name= page.author |
||||
%email= page.email |
%email= page.email |
||||
- site.posts[0..14].each do |post| |
- site.posts[0..14].each do |post| |
||||
%entry |
%entry |
||||
%title= rp(post.title) |
%title= rp(post.title) |
||||
%link(href="#{full_url(post.url)}") |
%link(href="#{page.root_url}#{post.url}") |
||||
%updated=post.date.xmlschema |
%updated=post.date.xmlschema |
||||
%id= full_url(post.id) |
%id= "#{page.root_url}#{post.id}" |
||||
%content(type="html") |
%content(type="html") |
||||
= h(absolute_url(rp(post.content))) |
= h(absolute_url(rp(post.content))) |
Loading…
Reference in new issue