Permalink
Browse files

added initial versions of template files and snippets

  • Loading branch information...
1 parent c393dcb commit 7e81d60b3641c841c57686b000d01eb3300c4572 @danrubin committed Feb 25, 2010
View
@@ -0,0 +1,9 @@
+<html>
+ <body>
+ <ol id="posts">
+ {block:Posts}
+ <li> ... </li>
+ {/block:Posts}
+ </ol>
+ </body>
+</html>
View
@@ -0,0 +1,20 @@
+<html>
+ <head>
+ <!-- DEFAULTS -->
+ <meta name="if:Show people I follow" content="1"/>
+ <meta name="if:Reverse pagination" content="0"/>
+ </head>
+ <body>
+ {block:IfNotReversePagination}
+ <a href="...">Previous</a> <a href="...">Next</a>
+ {/block:IfNotReversePagination}
+
+ {block:IfReversePagination}
+ <a href="...">Next</a> <a href="...">Previous</a>
+ {/block:IfReversePagination}
+
+ {block:IfShowPeopleIFollow}
+ <div id="following">...</div>
+ {/block:IfShowPeopleIFollow}
+ </body>
+</html>
View
@@ -0,0 +1,20 @@
+<html>
+ <head>
+ <!-- DEFAULT COLORS -->
+ <meta name="color:Background" content="#eee"/>
+ <meta name="color:Content Background" content="#fff"/>
+ <meta name="color:Text" content="#000"/>
+
+ <style type="text/css">
+ #content {
+ background-color: {color:Content Background};
+ color: {color:Text};
+ }
+ </style>
+ </head>
+ <body bgcolor="{color:Background}">
+ <div id="content">
+ ...
+ </div>
+ </body>
+</html>
View
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <style type="text/css">
+ #content {
+ background-color: #fff;
+ color: #000;
+ }
+
+ {CustomCSS}
+ </style>
+ </head>
+ <body>
+ <div id="content">
+ ...
+ </div>
+ </body>
+</html>
View
@@ -0,0 +1,18 @@
+<html>
+ <head>
+ <!-- DEFAULT FONTS -->
+ <meta name="font:Title" content="Helvetica Neue"/>
+ <meta name="font:Body" content="Arial, Helvetica, sans-serif"/>
+
+ <style type="text/css">
+ h1 {
+ font: 30px {font:Title};
+ }
+
+ #content {
+ font: 12px {font:Body};
+ }
+ </style>
+ </head>
+ ...
+</html>
View
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <!-- DEFAULT IMAGE -->
+ <meta name="image:Background" content="http://static.tumblr.com/..."/>
+ <meta name="image:Header" content=""/>
+
+ <style type="text/css">
+ body {
+ background: #2D567C url('{image:Background}');
+ }
+ </style>
+ </head>
+ <body>
+ {block:IfHeaderImage}<img src="{image:Header}"/>{/block:IfHeaderImage}
+ {block:IfNotHeaderImage}<h1>{Title}</h1>{/block:IfNotHeaderImage}
+ </body>
+</html>
View
@@ -0,0 +1,15 @@
+<html>
+ <head>
+ <!-- DEFAULT TEXT -->
+ <meta name="text:Flickr Username" content=""/>
+ </head>
+ <body>
+ {block:IfFlickrUsername}
+ <div id="flickr_widget">
+ <script type="text/javascript"
+ src="http://flickr.com/widget?user={text:Flickr Username}">
+ </script>
+ </div>
+ {/block:IfFlickrUsername}
+ </body>
+</html>
View
@@ -0,0 +1,41 @@
+<html>
+ <body>
+ <h1>{Title}</h1>
+
+ {block:DayPage}
+ <h2>{Month} {DayOfMonth}, {Year}</h2>
+ {/block:DayPage}
+
+ <ol id="posts">
+ {block:Posts}
+ ...
+ {/block:Posts}
+ </ol>
+
+ <div id="footer">
+ {block:Pagination}
+ {block:PreviousPage}
+ <a href="{PreviousPage}">&#171; Previous</a>
+ {/block:PreviousPage}
+
+ {block:NextPage}
+ <a href="{NextPage}">Next &#187;</a>
+ {/block:NextPage}
+ {/block:Pagination}
+
+ {block:DayPagination}
+ {block:PreviousDayPage}
+ <a href="{PreviousDayPage}">
+ &#171; {ShortMonth} {DayOfMonth}
+ </a>
+ {/block:PreviousDayPage}
+
+ {block:NextDayPage}
+ <a href="{NextDayPage}">
+ {ShortMonth} {DayOfMonth} &#187;
+ </a>
+ {/block:NextDayPage}
+ {/block:DayPagination}
+ </div>
+ </body>
+</html>
View
@@ -0,0 +1,11 @@
+{block:Following}
+ Blogs I follow:
+ <ul>
+ {block:Followed}
+ <li>
+ <img src="{FollowedPortraitURL-48}"/>
+ <a href="{FollowedURL}">{FollowedName}</a>
+ </li>
+ {/block:Followed}
+ </ul>
+{/block:Following}
View
@@ -0,0 +1,62 @@
+<html>
+ <head>
+ <style type="text/css">
+ ul#likes {
+ list-style-type: none;
+ margin: 0 0 0 0;
+ padding: 0 0 0 0;
+ }
+
+ li.like_post {
+ /* Should match the width specified in the Likes tag */
+ width: 150px;
+ padding: 0 40px 0 0;
+ float: left;
+ }
+
+ li.like_post img {
+ max-width: 100%;
+ }
+
+ li.like_post blockquote {
+ margin: 0;
+ padding: 0 0 0 10px;
+ border-left: 1px solid #eee;
+ }
+
+ li.like_post ol,
+ li.like_post ul {
+ margin: 0 0 0 15px;
+ padding: 0;
+ }
+
+ li.like_post .like_link a {
+ font-weight: bold;
+ }
+
+ li.like_post .like_title {
+ font-weight: bold;
+ }
+
+ li.like_post .post_info_bottom {
+ margin: 10px 0 0 0;
+ display: block !important;
+ }
+ </style>
+ </head>
+ <body>
+ ...
+
+ {block:Likes}
+ <div id="likes_container">
+ <h2>Stuff I like</h2>
+
+ {Likes limit="5" summarize="100" width="150"}
+
+ <a href="http://www.tumblr.com/liked/by/{Name}">
+ See more stuff I like
+ </a>
+ </div>
+ {/block:Likes}
+ </body>
+</html>
View
@@ -0,0 +1,49 @@
+<html>
+ <head>
+ <style type="text/css">
+ ol.notes {
+ padding: 0px;
+ margin: 25px 0px;
+ list-style-type: none;
+ border-bottom: solid 1px #ccc;
+ }
+
+ ol.notes li.note {
+ border-top: solid 1px #ccc;
+ padding: 10px;
+ }
+
+ ol.notes li.note img.avatar {
+ vertical-align: -4px;
+ margin-right: 10px;
+ width: 16px;
+ height: 16px;
+ }
+
+ ol.notes li.note span.action {
+ font-weight: bold;
+ }
+
+ ol.notes li.note .answer_content {
+ font-weight: normal;
+ }
+
+ ol.notes li.note blockquote {
+ border-color: #eee;
+ padding: 4px 10px;
+ margin: 10px 0px 0px 25px;
+ }
+
+ ol.notes li.note blockquote a {
+ text-decoration: none;
+ }
+ </style>
+ </head>
+ <body>
+ {block:Posts}
+ ...
+
+ {PostNotes}
+ {/block:Posts}
+ </body>
+</html>
View
@@ -0,0 +1,4 @@
+<form action="/search" method="get">
+ <input type="text" name="q" value="{SearchQuery}"/>
+ <input type="submit" value="Search"/>
+</form>
View
@@ -0,0 +1,11 @@
+<html>
+ <body>
+ {block:TagPage}
+ <h2>Posts tagged "{Tag}"</h2>
+ {/block:TagPage}
+
+ {block:Posts}
+ ...
+ {/block:Posts}
+ </body>
+</html>
View
@@ -0,0 +1,21 @@
+<html>
+ <body>
+ {block:Posts}
+ <div class="post">
+ {block:Text}...{/block:Text}
+ {block:Photo}...{/block:Photo}
+ ...
+
+ {block:HasTags}
+ <ul class="tags">
+ {block:Tags}
+ <li>
+ <a href="{TagURL}">{Tag}</a>
+ </li>
+ {/block:Tags}
+ </ul>
+ {/block:HasTags}
+ </div>
+ {/block:Posts}
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit 7e81d60

Please sign in to comment.