Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettes committed Jun 1, 2011
0 parents commit 74a034b
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Bare-bones Blogger Template

A starting point for creating stripped-down Blogger templates, without needing to deal with Blogger's Template Designer/wizard and without (well, almost) the ugly template source code. Just add your own HTML markup + CSS and you're good to go (I might throw in a sample in the furture).

Also includes my tweaked version of the archive widget that is provided by Blogger, configured to display all posts on a separate archive page (be sure to create an empty page called archive).

Further reading:

http://templateofdoom.synthful.org/
http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=46870
105 changes: 105 additions & 0 deletions template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html>
<head>
<title><data:blog.pageTitle/></title>

<b:skin><![CDATA[]]></b:skin>

</head>
<body>

<b:section id='blog'>


<b:widget id='BlogArchive1' locked='false' title='Blog Archive' type='BlogArchive'>

<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl + "p/archive.html"'>
<ul><b:include data='data' name='interval'/></ul>
</b:if>
</b:includable>

<b:includable id='interval' var='intervalData'>
<b:loop values='data:intervalData' var='i'>
<b:if cond='data:i.data'>
<b:include data='i.data' name='interval'/>
</b:if>
<b:if cond='data:i.posts'>
<b:loop values='data:i.posts' var='x'>
<li><a expr:href='data:x.url'><data:x.title/></a></li>
</b:loop>
</b:if>
</b:loop>
</b:includable>


<b:includable id='toggle' var='interval'/>
<b:includable id='menu' var='data'/>
<b:includable id='flat' var='data'/>
<b:includable id='posts' var='posts'/>


</b:widget>


<b:widget id='Blog1' locked='false' title='Blog Posts' type='Blog'>

<b:includable id='main' var='post'>
<b:include name='Postings'/>
<b:include name='nextprev'/>
</b:includable>

<b:includable id='Postings'>
<b:loop values='data:posts' var='post'>
<a expr:href='data:post.url'><data:post.title/></a>
<data:post.dateHeader/>
<b:include data='post' name='labels'/>
<data:post.body/>
</b:loop>
</b:includable>

<b:includable id='labels' var='post'>
<b:if cond='data:post.labels'>
Labels:
<b:loop values='data:post.labels' var='label'>
<a expr:href='data:label.url' rel='tag'><data:label.name/></a>
<b:if cond='data:label.isLast != &quot;true&quot;'>, </b:if>
</b:loop>
</b:if>
</b:includable>

<b:includable id='nextprev'>
<b:if cond='data:olderPageUrl'>
<a expr:href='data:olderPageUrl'><data:olderPageTitle/></a>
</b:if>
<b:if cond='data:blog.pageType != &quot;index&quot;'>
<a href='/'>Home</a>
</b:if>
<b:if cond='data:newerPageUrl'>
<a expr:href='data:newerPageUrl'><data:newerPageTitle/></a>
</b:if>
</b:includable>


<b:includable id='shareButtons'/>
<b:includable id='backlinks'/>
<b:includable id='status-message'/>
<b:includable id='comment-form'/>
<b:includable id='backlinkDeleteIcon'/>
<b:includable id='mobile-nextprev'/>
<b:includable id='postQuickEdit'/>
<b:includable id='commentDeleteIcon'/>
<b:includable id='feedLinks'/>
<b:includable id='mobile-index-post'/>
<b:includable id='feedLinksBody'/>
<b:includable id='comments' var='post'/>


</b:widget>


</b:section>

</body>
</html>

0 comments on commit 74a034b

Please sign in to comment.