diff options
author | rekado <rekado@elephly.net> | 2013-01-24 17:05:17 +0800 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2013-01-24 17:05:17 +0800 |
commit | f5f793124fe7ae9950b0fd9457374946b3b6c294 (patch) | |
tree | c9a96b01f6e9572acb702928e5d2426e449cef5f /templates |
use Hakyll instead of middleman
Diffstat (limited to 'templates')
-rw-r--r-- | templates/archive.html | 4 | ||||
-rw-r--r-- | templates/default.html | 37 | ||||
-rw-r--r-- | templates/flattr.html | 3 | ||||
-rw-r--r-- | templates/license.html | 8 | ||||
-rw-r--r-- | templates/photo.html | 1 | ||||
-rw-r--r-- | templates/post-item.html | 3 | ||||
-rw-r--r-- | templates/post.html | 26 |
7 files changed, 82 insertions, 0 deletions
diff --git a/templates/archive.html b/templates/archive.html new file mode 100644 index 0000000..67517d6 --- /dev/null +++ b/templates/archive.html @@ -0,0 +1,4 @@ +<h1>Archive</h1> +<ul class="archive"> + $posts$ +</ul> diff --git a/templates/default.html b/templates/default.html new file mode 100644 index 0000000..dccc72a --- /dev/null +++ b/templates/default.html @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head profile="http://www.w3.org/2005/10/profile"> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <meta name='viewport' content='width=320' /> + <title>rekado - $title$</title> + <link rel="stylesheet" type="text/css" href="/css/reset.css" /> + <link rel="stylesheet" type="text/css" href="/css/screen.css" /> + <link rel="stylesheet" type="text/css" href="/css/mobile.css" /> + <link rel="shortcut icon" href="http://elephly.net/favicon.ico" /> + <script type="text/javascript" src="/js/libs/jquery-1.6.2.min.js"></script> + <script type="text/javascript" src="/js/deobfuscate.js"></script> + <script type="text/javascript" src="/js/hyphenator/Hyphenator.js"></script> + <script type="text/javascript"> + Hyphenator.run(); + </script> + </head> + <body id="top"> + <div id="navigation"> + <img id="logo" src="/images/logo.png"/> + <ul> + <li><a href="/about.html">About</a></li> + <li><a href="/projects.html">Projects</a></li> + <li><a href="/ecology.html">Ecology</a></li> + <li><a href="/posts">Blog</a></li> + <li><a href="/elephly.html">Elephly</a></li> + <li><a href="/fur-man.html">Fur man</a></li> + </ul> + </div> + + <div id="page" class="hyphenate"> + $body$ + </div> + </body> +</html> diff --git a/templates/flattr.html b/templates/flattr.html new file mode 100644 index 0000000..77ab55a --- /dev/null +++ b/templates/flattr.html @@ -0,0 +1,3 @@ +<a href="http://flattr.com/thing/$flattr$" target='_blank'> + <img src='http://api.flattr.com/button/flattr-badge-large.png' alt='Flattr this' title='Flattr this' border='0' /> +</a> diff --git a/templates/license.html b/templates/license.html new file mode 100644 index 0000000..06adc25 --- /dev/null +++ b/templates/license.html @@ -0,0 +1,8 @@ +<div class="fineprint"> + <license> + <a rel='license' href='http://creativecommons.org/licenses/by-sa/3.0/'> + <img alt='Creative Commons License' style='border-width:0' src='http://i.creativecommons.org/l/by-sa/3.0/80x15.png'/> + </a> + <span xmlns:dct='http://purl.org/dc/terms/' href='http://purl.org/dc/dcmitype/StillImage' property='dct:title' rel='dct:type'>$title$</span> by <a xmlns:cc='http://creativecommons.org/ns#' href='http://elephly.net' property='cc:attributionName' rel='cc:attributionURL'>Rekado</a> is licensed under a <a rel='license' href='http://creativecommons.org/licenses/by-sa/3.0/'>Creative Commons Attribution-ShareAlike 3.0 Unported License</a>. + </license> +</div> diff --git a/templates/photo.html b/templates/photo.html new file mode 100644 index 0000000..97bdcbb --- /dev/null +++ b/templates/photo.html @@ -0,0 +1 @@ +<img class="stretch full" src="/images/posts/$photo$"/> diff --git a/templates/post-item.html b/templates/post-item.html new file mode 100644 index 0000000..60da335 --- /dev/null +++ b/templates/post-item.html @@ -0,0 +1,3 @@ +<li> + <a href="$url$">$title$</a> +</li> diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..fd0c893 --- /dev/null +++ b/templates/post.html @@ -0,0 +1,26 @@ +<h1>$title$</h1> +<div class="time">$date$</div> + +$photo-snippet$ +$body$ +$flattr-snippet$ +$license-snippet$ + +<p class="back"><a href="/posts">← other posts</a></p> + +<div id="disqus_thread"> + <script> + var loadComments = function() { + var el = document.getElementById("loadComments"); + el.parentNode.removeChild(el); + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = 'http://elephly.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + }; + </script> +</div> +<a id="loadComments" href="javascript:loadComments()">Click to load Disqus comments</a> + +<noscript> + Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus</a>. +</noscript> |