mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-25 00:48:53 -05:00
paramaterized layout and page files
This commit is contained in:
parent
d8d51719fb
commit
f5aca90435
@ -1,3 +1,7 @@
|
|||||||
|
---
|
||||||
|
blog_title: My Blog
|
||||||
|
---
|
||||||
|
|
||||||
!!! 1.1 Transitional
|
!!! 1.1 Transitional
|
||||||
%html(xmlns="http://www.w3.org/1999/xhtml" xml:lang="en")
|
%html(xmlns="http://www.w3.org/1999/xhtml" xml:lang="en")
|
||||||
%head
|
%head
|
||||||
@ -10,7 +14,7 @@
|
|||||||
%body
|
%body
|
||||||
#header
|
#header
|
||||||
.page_width
|
.page_width
|
||||||
%a.title(href="/") My Blog
|
%a.title(href="/")=page.blog_title
|
||||||
%ul#header_nav.nav
|
%ul#header_nav.nav
|
||||||
%li.alpha
|
%li.alpha
|
||||||
%a(href="/archives") Archives
|
%a(href="/archives") Archives
|
||||||
|
@ -1,16 +1,20 @@
|
|||||||
---
|
---
|
||||||
layout: nil
|
layout: nil
|
||||||
|
address: http://yoursite.com
|
||||||
|
email: author@domain.com
|
||||||
|
name: Your Name
|
||||||
|
blog_title: My Blog
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
%feed(xmlns="http://www.w3.org/2005/Atom")
|
%feed(xmlns="http://www.w3.org/2005/Atom")
|
||||||
%title Your Name - Your Site
|
%title= "#{page.name} - #{page.blog_title}"
|
||||||
%link(href="yoursite.com/atom.xml" rel="self")
|
%link(href="#{page.address}/atom.xml" rel="self")
|
||||||
%link(href="yoursite.com")
|
%link(href="#{page.address}")
|
||||||
%updated= Time.now.xmlschema
|
%updated= Time.now.xmlschema
|
||||||
%id http://yoursite.com/
|
%id=page.address
|
||||||
%author
|
%author
|
||||||
%name Your Name
|
%name= page.name
|
||||||
%email user[at]domain.com
|
%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)
|
||||||
|
Loading…
Reference in New Issue
Block a user