summaryrefslogtreecommitdiffstats
path: root/tozt/layouts
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-10-30 00:18:56 -0400
committerJesse Luehrs <doy@tozt.net>2013-10-30 00:18:56 -0400
commitbb0a4f4e126c05fc73d566986fd1612468f5be67 (patch)
treea3a712e0a27ea1fe41d3d6097326896afd2f53f5 /tozt/layouts
downloadblog.tozt.net-bb0a4f4e126c05fc73d566986fd1612468f5be67.tar.gz
blog.tozt.net-bb0a4f4e126c05fc73d566986fd1612468f5be67.zip
initial commit
Diffstat (limited to 'tozt/layouts')
-rw-r--r--tozt/layouts/_root.html5
-rw-r--r--tozt/layouts/default.html40
-rw-r--r--tozt/layouts/paginator.html27
-rw-r--r--tozt/layouts/posts.html40
4 files changed, 112 insertions, 0 deletions
diff --git a/tozt/layouts/_root.html b/tozt/layouts/_root.html
new file mode 100644
index 0000000..8d62675
--- /dev/null
+++ b/tozt/layouts/_root.html
@@ -0,0 +1,5 @@
+---
+layout : default
+---
+<h4>{{ page.title }}</h4>
+{{{ page.content }}}
diff --git a/tozt/layouts/default.html b/tozt/layouts/default.html
new file mode 100644
index 0000000..8f1eecb
--- /dev/null
+++ b/tozt/layouts/default.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>{{page.title}}</title>
+ <meta name="author" content="{{ data.author.name }}">
+ {{# stylesheets.load }}
+ style.css
+ google_prettify/sons-of-obsidian.css
+ {{/ stylesheets.load }}
+ <!-- this should be urls.production_url, but it doesn't work -->
+ <link href="http://blog.tozt.net{{urls.base_path}}rss.xml" title="{{page.title}}" type="application/rss+xml" rel="alternate"></link>
+</head>
+<body>
+<div class="header">
+ <div>
+ <div class="name"><h1><a href="/{{urls.base_url}}">{{data.title}}</a></h1></div>
+ <img src="http://www.gravatar.com/avatar/dd9aceaf17982bc33972b3bb8701cd19.jpg" alt="gravatar" class="gravatar" />
+ </div>
+ <div class="clear"></div>
+</div>
+<div class="nav">
+<ul>
+ {{# data.navigation?to__root }}
+ {{> pages_list }}
+ {{/ data.navigation?to__root }}
+ <li><a href="/{{urls.base_url}}rss.xml"><img src="{{urls.media}}/rss.png" alt="RSS" /></a></li>
+</ul>
+</div>
+<div class="main_content">
+ {{{ content }}}
+</div>
+<div class="footer">
+ Powered by <a href="http://ruhoh.com/">Ruhoh</a>
+</div>
+
+{{{ widgets.google_prettify }}}
+
+</body>
+</html>
diff --git a/tozt/layouts/paginator.html b/tozt/layouts/paginator.html
new file mode 100644
index 0000000..68a9013
--- /dev/null
+++ b/tozt/layouts/paginator.html
@@ -0,0 +1,27 @@
+---
+layout : default
+---
+<div class="page-header">
+ <h4>home</h4>
+</div>
+{{#collection.paginator}}
+<div class="{{ collection.resource_name}}">
+ <h3 class="title"><a href="{{url}}">{{title}}</a> <span class="date">{{ date }}</span></h3>
+ {{{ summary }}}
+ <div class="more">
+ <a href="{{url}}">read more..</a>
+ </div>
+</div>
+{{/collection.paginator}}
+<div class="pagination">
+ <ul>
+ {{#collection.paginator_navigation}}
+ {{#is_active_page}}
+ <li class="active"><a href="{{url}}">{{name}}</a></li>
+ {{/is_active_page}}
+ {{^is_active_page}}
+ <li><a href="{{url}}">{{name}}</a></li>
+ {{/is_active_page}}
+ {{/collection.paginator_navigation}}
+ </ul>
+</div>
diff --git a/tozt/layouts/posts.html b/tozt/layouts/posts.html
new file mode 100644
index 0000000..6bb7b4b
--- /dev/null
+++ b/tozt/layouts/posts.html
@@ -0,0 +1,40 @@
+---
+layout : default
+---
+<h4><span class="date">{{ page.date }}</span><span class="title">{{page.title}}</span></h4>
+<div class="content">
+ {{{ page.content }}}
+</div>
+<div class="permalink">
+ <a href="{{page.url}}">link</a>
+</div>
+<div class="tags">
+ Tags:
+ <ul>
+ {{# page.tags }}
+ {{> tags_list }}
+ {{/ page.tags }}
+ </ul>
+</div>
+<hr class="clear">
+<div class="pagination">
+ <ul>
+ {{# page.previous }}
+ <li class="prev"><a href="{{ url }}" title="{{ title }}">&larr; Previous</a></li>
+ {{/ page.previous }}
+ {{^ page.previous }}
+ <li class="prev disabled"><a>&larr; Previous</a></li>
+ {{/ page.previous }}
+
+ <li><a href="{{urls.base_path}}archive">Archive</a></li>
+
+ {{# page.next }}
+ <li class="next"><a href="{{ url }}" title="{{ title }}">Next &rarr;</a></li>
+ {{/ page.next }}
+ {{^ page.next }}
+ <li class="next disabled"><a>Next &rarr;</a>
+ {{/ page.next }}
+ </ul>
+</div>
+<hr>
+{{{ widgets.comments }}}