diff options
author | lwm <luke.murphy@ammeon.com> | 2013-09-15 14:16:40 +0100 |
---|---|---|
committer | lwm <luke.murphy@ammeon.com> | 2013-09-17 14:46:36 +0100 |
commit | 3197b676fe9e55fdd5b8ded77200117e62543fd2 (patch) | |
tree | 9a3f34a0ea5c8625c040dfdf300508f9cd4c7399 /monospace | |
parent | 61165760cc5eb6e76b377b18224190380c873525 (diff) | |
download | pelican-themes-3197b676fe9e55fdd5b8ded77200117e62543fd2.tar.gz |
adapted monospace
Diffstat (limited to 'monospace')
27 files changed, 943 insertions, 0 deletions
diff --git a/monospace/LICENSE b/monospace/LICENSE new file mode 100644 index 0000000..fc0f07a --- /dev/null +++ b/monospace/LICENSE @@ -0,0 +1,13 @@ +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +Version 2, December 2004 + +Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> + +Everyone is permitted to copy and distribute verbatim or modified +copies of this license document, and changing it is allowed as long +as the name is changed. + +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/monospace/README.md b/monospace/README.md new file mode 100644 index 0000000..992ce13 --- /dev/null +++ b/monospace/README.md @@ -0,0 +1,8 @@ +========== +monospace +========== +Theme adapted from [monospace for wordpress](http://wordpress.org/themes/monospace) +Here is a [screengrab](https://github.com/lwm/pelican-themes/blob/master/monospace/screenshot.png) for your viewing pleasure. + +Nice and simple, +Enjoy! diff --git a/monospace/screenshot.png b/monospace/screenshot.png Binary files differnew file mode 100644 index 0000000..bdcd139 --- /dev/null +++ b/monospace/screenshot.png diff --git a/monospace/static/css/bckups/main.css b/monospace/static/css/bckups/main.css new file mode 100644 index 0000000..94d0837 --- /dev/null +++ b/monospace/static/css/bckups/main.css @@ -0,0 +1,168 @@ +/* + Theme Name: mnmlist + Theme URI: http://mathieu.agopian.info/mnmlist/theme.html + Description: Theme adapted from http://mnmlist.com/theme/ from Leo Babauta, a very clean minimalist theme, without comments, search, archives or other features. + Author: Mathieu Agopian + Autor URI: http://mathieu.agopian.info + + This theme is uncopyrighted, free, and offered as is. +*/ +@import url("pygment.css"); +/* line 13, ../../compass/src/main.scss */ +body { + background: #fff; + color: #333; + font: 20px Hoefler Text, bodyfont, serif; + line-height: 30px; + max-width: 30em; + margin: 60px 14px 0 64px; +} + +/* line 28, ../../compass/src/main.scss */ +h1 { + color: #333333; + font-family: Helvetica, sans-serif; + font-size: 1.5em; + font-weight: normal; + margin-bottom: 0; +} + +/* line 34, ../../compass/src/main.scss */ +h2 { + color: #666666; + font-family: Helvetica, sans-serif; + font-size: 1.3em; +} + +/* line 38, ../../compass/src/main.scss */ +h3 { + color: #666666; + font-family: Helvetica, sans-serif; + font-size: 1em; +} + +/* line 42, ../../compass/src/main.scss */ +h4 { + color: #666666; + font-family: Helvetica, sans-serif; + font-size: 0.9em; +} + +/* line 46, ../../compass/src/main.scss */ +time { + color: #c0c0c0; + font-size: 50%; +} + +/* line 51, ../../compass/src/main.scss */ +img { + border: none; +} + +/* line 55, ../../compass/src/main.scss */ +blockquote { + border-left: 1px solid #A5ABAB; + margin: 0px; + padding: 0 12px 0 12px; +} + +/* line 61, ../../compass/src/main.scss */ +p { + line-height: 30px; + margin: 30px auto; + text-indent: 0px; +} +/* line 65, ../../compass/src/main.scss */ +p.caption { + font-size: 80%; + margin-top: 0; +} + +/* line 71, ../../compass/src/main.scss */ +a { + border-bottom: #999 1px solid; + color: #303030; + text-decoration: none; +} +/* line 75, ../../compass/src/main.scss */ +a:hover { + color: #999; +} + +/* line 78, ../../compass/src/main.scss */ +ul, ol { + padding: .5em 0em 1em 3.2em; +} +/* line 80, ../../compass/src/main.scss */ +ul li, ol li { + line-height: 30px; + padding: 6px 0 0 0; +} + +/* line 86, ../../compass/src/main.scss */ +strong { + color: #555555; + font-family: Georgia, "Times New Roman", Times, serif; + font-weight: bold; +} + +/* line 92, ../../compass/src/main.scss */ +tt, pre { + background-color: #fafafa; + font-family: Inconsolata, Monaco, monospace; + line-height: 1.2em; +} + +/* line 98, ../../compass/src/main.scss */ +pre { + font-size: 0.8em; + overflow: auto; + padding: 10px; +} + +/* line 104, ../../compass/src/main.scss */ +header { + padding-bottom: 20px; +} +/* line 106, ../../compass/src/main.scss */ +header a { + border-bottom: none; +} +/* line 108, ../../compass/src/main.scss */ +header a#page-title { + font-weight: bold; +} + +/* line 112, ../../compass/src/main.scss */ +#article-list { + margin-top: 100px; +} +/* line 114, ../../compass/src/main.scss */ +#article-list ol li { + line-height: 1.2em; + list-style-type: none; + padding-bottom: 10px; +} + +/* line 121, ../../compass/src/main.scss */ +footer { + background: #fff; + color: #666; + font-family: helvetica, sans-serif; + font-size: 13px; + letter-spacing: 4px; + margin-left: 20px; +} +/* line 128, ../../compass/src/main.scss */ +footer a { + border-bottom: none; + color: #c0c0c0; +} +/* line 132, ../../compass/src/main.scss */ +footer li { + display: inline; +} +/* line 135, ../../compass/src/main.scss */ +footer p { + text-align: right; +} diff --git a/monospace/static/css/bckups/pygment.css b/monospace/static/css/bckups/pygment.css new file mode 100644 index 0000000..594b0fa --- /dev/null +++ b/monospace/static/css/bckups/pygment.css @@ -0,0 +1,205 @@ +.hll { +background-color:#FFFFCC; +} +.c { +color:#408090; +font-style:italic; +} +.err { +border:1px solid #FF0000; +} +.k { +color:#007020; +font-weight:bold; +} +.o { +color:#666666; +} +.cm { +color:#408090; +font-style:italic; +} +.cp { +color:#007020; +} +.c1 { +color:#408090; +font-style:italic; +} +.cs { +background-color:#FFF0F0; +color:#408090; +} +.gd { +color:#A00000; +} +.ge { +font-style:italic; +} +.gr { +color:#FF0000; +} +.gh { +color:#000080; +font-weight:bold; +} +.gi { +color:#00A000; +} +.go { +color:#303030; +} +.gp { +color:#C65D09; +font-weight:bold; +} +.gs { +font-weight:bold; +} +.gu { +color:#800080; +font-weight:bold; +} +.gt { +color:#0040D0; +} +.kc { +color:#007020; +font-weight:bold; +} +.kd { +color:#007020; +font-weight:bold; +} +.kn { +color:#007020; +font-weight:bold; +} +.kp { +color:#007020; +} +.kr { +color:#007020; +font-weight:bold; +} +.kt { +color:#902000; +} +.m { +color:#208050; +} +.s { +color:#4070A0; +} +.na { +color:#4070A0; +} +.nb { +color:#007020; +} +.nc { +color:#0E84B5; +font-weight:bold; +} +.no { +color:#60ADD5; +} +.nd { +color:#555555; +font-weight:bold; +} +.ni { +color:#D55537; +font-weight:bold; +} +.ne { +color:#007020; +} +.nf { +color:#06287E; +} +.nl { +color:#002070; +font-weight:bold; +} +.nn { +color:#0E84B5; +font-weight:bold; +} +.nt { +color:#062873; +font-weight:bold; +} +.nv { +color:#BB60D5; +} +.ow { +color:#007020; +font-weight:bold; +} +.w { +color:#BBBBBB; +} +.mf { +color:#208050; +} +.mh { +color:#208050; +} +.mi { +color:#208050; +} +.mo { +color:#208050; +} +.sb { +color:#4070A0; +} +.sc { +color:#4070A0; +} +.sd { +color:#4070A0; +font-style:italic; +} +.s2 { +color:#4070A0; +} +.se { +color:#4070A0; +font-weight:bold; +} +.sh { +color:#4070A0; +} +.si { +color:#70A0D0; +font-style:italic; +} +.sx { +color:#C65D09; +} +.sr { +color:#235388; +} +.s1 { +color:#4070A0; +} +.ss { +color:#517918; +} +.bp { +color:#007020; +} +.vc { +color:#BB60D5; +} +.vg { +color:#BB60D5; +} +.vi { +color:#BB60D5; +} +.il { +color:#208050; +} diff --git a/monospace/static/css/main.css b/monospace/static/css/main.css new file mode 100644 index 0000000..0e17313 --- /dev/null +++ b/monospace/static/css/main.css @@ -0,0 +1,106 @@ +/** + * Theme Name: Monospace + * Theme URI: http://vinicius.soylocoporti.org.br/monospace-wordpress-theme + * Description: A clean, extra-light, easy, objective, image free and 80 columns monospaced content theme. Made for code, manuals and e-mail publishing. Good for programming blogs, planets and posting by mail. + * Author: Vinicius Massuchetto + * Author URI: http://vinicius.soylocoporti.org.br + * Version: 1.91 + * Tags: white, blue, two-columns, fixed-width, threaded-comments, translation-ready + * License: GNU General Public License v2.0 + * License URI: http://www.gnu.org/licenses/gpl-2.0.html + */ + +body { margin:0px; padding:20px 0px; text-align:center; font-family:Monospace; color:#585858; } +a, a:visited { text-decoration:none; color:rgb(17, 170, 34); } +a:hover { color:#FFF; background-color:#5353CB } +pre { overflow-x:scroll; } +h1, h2, h3, h4, h5, h6, h7 { margin:0px; text-transform:uppercase; } +h4, h5, h6 { font-size:14px; } +h1 { padding:0px 0px 15px; margin:0px 0px 15px 0px; } +blockquote { font-style:italic; background:#EAEAEA; margin:20px; padding:5px 10px; } +blockquote cite { display:block; padding:10px 20px 0 0; text-align:right; } +input, textarea { padding:5px; border:1px solid #8A8A8A; background:#EAEAEA; } +input:hover, textarea:hover, blockquote:hover { background:#E5E5E5; } + +#wrap { margin:0px auto; text-align:left; font-size: 13px; line-height: 1.4; } +#container { float:right; } +#sidebar { overflow:hidden; clear:left; text-align:right; width:250px; height:auto; padding:0px 15px 0px 0px; border-right:1px dotted #C8C8C8; } +#sidebar li { list-style-type:none; } +#sidebar > li { margin:20px 0px; } +#sidebar h1 { border-bottom:1px dotted #C8C8C8; } +#sidebar .description { display:block; width:100%; height:auto; margin:0px 0px 10px 0px; } + +ul.sub-menu, ul.children { margin:0px 10px 0px 0px; } + +.post { margin:0px 0px 30px 0px; padding:0px 0px 30px 0px; border-bottom:1px dotted #C8C8C8; } +.post-edit-link { clear:both; } +.meta { margin:10px; padding:15px; background:#EAEAEA; clear:both; } +.meta span { display:block; clear:left; } +.thumbnail { margin:0px; padding:0px; } +.thumbnail img { float:right; } + +.entry { font-size: 14px; line-height: 20px; } +.entry h2, h3, h4, h5 { margin:30px 0px 10px 0px; } +.entry img { display:block; border:1px solid #BDBDBD !important; } +.entry img.wp-smiley { border:0px !important; } +.entry a img:hover { background-color:transparent; border:1px solid #E5E5E5 !important; } +.entry .aligncenter, div.aligncenter { margin:10px auto; } +.entry .alignleft { float: left; margin:10px 15px 10px 0px; } +.entry .alignright { float: right; margin:10px 0px 10px 15px; } +.entry .alignnone { margin:10px 0px; } +.entry .gallery, .wp-caption { text-align:center; background:#EAEAEA; margin:10px; padding:10px; border:0px; max-width:520px; height:auto; } +.entry .wp-caption img { border:0 none; margin:0px auto; padding:0; max-width:500px; height:auto; } +.entry .gallery:hover, .wp-caption:hover { background:#E5E5E5; } +.entry .gallery-caption, .wp-caption-text { background:transparent; } +.entry .wp-caption p.wp-caption-text { font-size:11px; line-height:17px; margin:5px 50px 0px; } +.entry .gallery-icon { width:100%; height:auto; } +.entry .gallery-icon img { margin:0px auto; } +.entry .gallery-caption { margin:5px 10px 0px 0px; padding:0px; } +.entry p.attachment img { margin:0px auto; } +.sticky { border-bottom:3px dotted #C8C8C8; } + + +.wp_syntax { padding:5px 0px; } +.wp_syntax pre { line-height:1.3; } +.wp_syntax pre.php { line-height:1; } + +.widget_recent_entries ul li, +.widget_recent_comments ul li, +.widget_rss ul li { margin:10px 0px; padding:10px 0px; border-top:1px dotted #C8C8C8; } + +.related { margin:20px 0px 0px 0px; } +.nav { margin:30px 0px; text-align:center; } + +#comments { border-top:1px dotted #C8C8C8; margin:30px 0px 0px 0px; padding:30px 0px 0px 0px; } +.commentlist li { list-style-type:none; padding:10px; margin:20px 0px 0px 0px; } +.commentlist li.even { background:#EAEAEA; } +.commentlist li.odd { background:#D6D6D6; } +.comment-author img { float:left; margin:0px 10px 10px 0px; } +ul.commentlist ul.children { padding-left:10px; } +ul.commentlist ul.children li { list-style-type:none; border:1px solid #AAA } +.form-section { margin:10px 0px; text-align:right; } +.form-section div { display:inline; } +.bypostauthor { border:3px dotted #C8C8C8; } +.form-allowed-tags { display:none; } + +#respond { margin:30px 0px 0px 0px; background:#FFF; border:1px solid #9A9A9A; margin:30px 0 0; padding:20px; } +#commentform p { text-align:right; } +#commentform input { width:50%; height:auto; margin:0px 0px 0px 10px; } +#commentform .required { font-weight:bold; } +#commentform textarea { width:95%; height:auto; margin:10px 0px 0px 0px; } +#commentform .comment-form-comment { margin-bottom:5px; text-align:right; } +#commentform .form-allowed-tags { color:#8A8A8A; margin-top:0px; font-size:10px; } + +input#submit { font-weight:bold; } +input#s { width:70%; height:auto; margin:5px 0px; } + +#footer { text-align:center; clear:both; } +#footer div { margin:30px 0px 0px 0px; padding:30px 0px 0px 0px; border-top:1px dotted #C8C8C8; } +#footer li { list-style-type:none; } +#footer .widget_tag_cloud h2 { display:none; } + +/* LWM EDITS */ +#page-title{ + position : relative; + top : 8px; +} diff --git a/monospace/static/css/pygment.css b/monospace/static/css/pygment.css new file mode 100644 index 0000000..594b0fa --- /dev/null +++ b/monospace/static/css/pygment.css @@ -0,0 +1,205 @@ +.hll { +background-color:#FFFFCC; +} +.c { +color:#408090; +font-style:italic; +} +.err { +border:1px solid #FF0000; +} +.k { +color:#007020; +font-weight:bold; +} +.o { +color:#666666; +} +.cm { +color:#408090; +font-style:italic; +} +.cp { +color:#007020; +} +.c1 { +color:#408090; +font-style:italic; +} +.cs { +background-color:#FFF0F0; +color:#408090; +} +.gd { +color:#A00000; +} +.ge { +font-style:italic; +} +.gr { +color:#FF0000; +} +.gh { +color:#000080; +font-weight:bold; +} +.gi { +color:#00A000; +} +.go { +color:#303030; +} +.gp { +color:#C65D09; +font-weight:bold; +} +.gs { +font-weight:bold; +} +.gu { +color:#800080; +font-weight:bold; +} +.gt { +color:#0040D0; +} +.kc { +color:#007020; +font-weight:bold; +} +.kd { +color:#007020; +font-weight:bold; +} +.kn { +color:#007020; +font-weight:bold; +} +.kp { +color:#007020; +} +.kr { +color:#007020; +font-weight:bold; +} +.kt { +color:#902000; +} +.m { +color:#208050; +} +.s { +color:#4070A0; +} +.na { +color:#4070A0; +} +.nb { +color:#007020; +} +.nc { +color:#0E84B5; +font-weight:bold; +} +.no { +color:#60ADD5; +} +.nd { +color:#555555; +font-weight:bold; +} +.ni { +color:#D55537; +font-weight:bold; +} +.ne { +color:#007020; +} +.nf { +color:#06287E; +} +.nl { +color:#002070; +font-weight:bold; +} +.nn { +color:#0E84B5; +font-weight:bold; +} +.nt { +color:#062873; +font-weight:bold; +} +.nv { +color:#BB60D5; +} +.ow { +color:#007020; +font-weight:bold; +} +.w { +color:#BBBBBB; +} +.mf { +color:#208050; +} +.mh { +color:#208050; +} +.mi { +color:#208050; +} +.mo { +color:#208050; +} +.sb { +color:#4070A0; +} +.sc { +color:#4070A0; +} +.sd { +color:#4070A0; +font-style:italic; +} +.s2 { +color:#4070A0; +} +.se { +color:#4070A0; +font-weight:bold; +} +.sh { +color:#4070A0; +} +.si { +color:#70A0D0; +font-style:italic; +} +.sx { +color:#C65D09; +} +.sr { +color:#235388; +} +.s1 { +color:#4070A0; +} +.ss { +color:#517918; +} +.bp { +color:#007020; +} +.vc { +color:#BB60D5; +} +.vg { +color:#BB60D5; +} +.vi { +color:#BB60D5; +} +.il { +color:#208050; +} diff --git a/monospace/templates/analytics.html b/monospace/templates/analytics.html new file mode 100644 index 0000000..ba174fc --- /dev/null +++ b/monospace/templates/analytics.html @@ -0,0 +1,11 @@ +{% if GOOGLE_ANALYTICS %} + <script type="text/javascript"> + var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); + document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); + </script> + <script type="text/javascript"> + try { + var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}"); + pageTracker._trackPageview(); + } catch(err) {}</script> +{% endif %}
\ No newline at end of file diff --git a/monospace/templates/archives.html b/monospace/templates/archives.html new file mode 100644 index 0000000..9425abf --- /dev/null +++ b/monospace/templates/archives.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% block content %} +<section id="content" class="body"> +<h1>Archives for {{ SITENAME }}</h1> + +<dl> +{% for article in dates %} + <dt>{{ article.locale_date }}</dt> + <dd><a href='{{ SITEURL }}/{{ article.url }}'>{{ article.title }}</a></dd> +{% endfor %} +</dl> +</section> +{% endblock %} diff --git a/monospace/templates/article.html b/monospace/templates/article.html new file mode 100644 index 0000000..9758fdc --- /dev/null +++ b/monospace/templates/article.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% block title %}{{ super() }} : {{ article.title }}{% endblock %} +{% block content %} +<header> +<h1><a href="{{ SITEURL }}" id="site-title"> {#{{ SITENAME }}#} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#} + <a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1> + {% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %} +</header> +<article> + {{ article.content }} +</article> +{% endblock %} diff --git a/monospace/templates/author.html b/monospace/templates/author.html new file mode 100644 index 0000000..0b37290 --- /dev/null +++ b/monospace/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/monospace/templates/authors.html b/monospace/templates/authors.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/monospace/templates/authors.html diff --git a/monospace/templates/base.html b/monospace/templates/base.html new file mode 100644 index 0000000..fa9c1e9 --- /dev/null +++ b/monospace/templates/base.html @@ -0,0 +1,71 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <title>{% block title %}{{ SITENAME }}{%endblock%}</title> + <meta charset="utf-8" /> + <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" /> + <link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" /> + {% if FEED_RSS %} + <link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> + {% endif %} + + <!--[if IE]> + <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> + + <!--[if lte IE 7]> + <link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie.css"/> + <script src="{{ SITEURL }}/js/IE8.js" type="text/javascript"></script><![endif]--> + + <!--[if lt IE 7]> + <link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie6.css"/><![endif]--> + +</head> + +<body> + <div id="wrap" style="width:850px"> + <div id="container" style="width:560px"> + {% include 'github.html' %} + + + <div class="entry"> + {% block content %} + {% endblock %} + </div> + </div> + + + <div id="sidebar"> + <h1><a href="{{ SITEURL }} " title="title">{{ SITENAME }}</a></h1> + <span class="description">{{ DESCRIPTION }} </span> + <!-- <span class="feed"><a href="">RSS</a> | <a href="">Atom</a></span> --> + </div> + + <div id="footer"> + <nav> + <ul> + {% for page in PAGES %} + <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>{% if not loop.last %} ::{% endif %}</li> + {% endfor %} + {% if categories|length > 1 %} + <li>:: <a href="{{ SITEURL }}/categories.html">Categories</a></li> + {% endif %} + {% if tags|length > 1 %} + <li>:: <a href="{{ SITEURL }}/tags.html">Tags</a></li> + {% endif %} + </ul> + </nav> + + <div id="credits"> + <span>Adapted from <a href="http://wordpress.org/themes/monospace">Monospace</a> || Created with <a href="">Pelican</a></span> + </div> + + </div> + + {% include 'analytics.html' %} + {% include 'piwik.html' %} + {% include 'disqus_script.html' %} + + </div> + +</body> +</html> diff --git a/monospace/templates/categories.html b/monospace/templates/categories.html new file mode 100644 index 0000000..e29be0c --- /dev/null +++ b/monospace/templates/categories.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} +<ul> +{% for category, articles in categories %} + <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li> +{% endfor %} +</ul> +{% endblock %} diff --git a/monospace/templates/category.html b/monospace/templates/category.html new file mode 100644 index 0000000..56f8e93 --- /dev/null +++ b/monospace/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/monospace/templates/comments.html b/monospace/templates/comments.html new file mode 100644 index 0000000..bb033c0 --- /dev/null +++ b/monospace/templates/comments.html @@ -0,0 +1 @@ +{% if DISQUS_SITENAME %}<p>There are <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">comments</a>.</p>{% endif %} diff --git a/monospace/templates/disqus_script.html b/monospace/templates/disqus_script.html new file mode 100644 index 0000000..c4f442c --- /dev/null +++ b/monospace/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} +<script type="text/javascript"> + var disqus_shortname = '{{ DISQUS_SITENAME }}'; + (function () { + var s = document.createElement('script'); s.async = true; + s.type = 'text/javascript'; + s.src = 'http://' + disqus_shortname + '.disqus.com/count.js'; + (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); + }()); +</script> +{% endif %} diff --git a/monospace/templates/github.html b/monospace/templates/github.html new file mode 100644 index 0000000..75592ac --- /dev/null +++ b/monospace/templates/github.html @@ -0,0 +1,9 @@ +{% if GITHUB_URL %} +<a href="{{ GITHUB_URL }}"> +{% if GITHUB_POSITION != "left" %} +<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /> +{% else %} +<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_white_ffffff.png" alt="Fork me on GitHub" /> +{% endif %} +</a> +{% endif %} diff --git a/monospace/templates/index.html b/monospace/templates/index.html new file mode 100644 index 0000000..c2a1b60 --- /dev/null +++ b/monospace/templates/index.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} + {% for article in articles %} + + {# First item #} + {% if loop.first %} + <header> + <h1><a href="{{ SITEURL }}" id="site-title"> {# {{ SITENAME }} #} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#} <a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1> + {% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %} + </header> + + <article> + {{ article.content }}{% include 'comments.html' %} + </article> + {% if loop.length > 1 %} + <section id="article-list"> + <h2>All posts</h2> + <ol> + {% endif %} + {# other items #} + {% else %} + <li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></li> + {% endif %} +{% endfor %} + {% if loop.length > 1 %} + </ol> + </section><!-- #article-list --> +{% endif %} +{% else %} + No posts found. +{% endif %} +{% endblock content %} diff --git a/monospace/templates/page.html b/monospace/templates/page.html new file mode 100644 index 0000000..b8c89f7 --- /dev/null +++ b/monospace/templates/page.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{% endblock %} +{% block content %} +<header> +<h1><a href="{{ SITEURL }}" id="site-title">{# {{ SITENAME }} #} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#} + <a href="{{ SITEURL }}/{{ page.slug }}" id="page-title">{{ page.title }}</a></h1> +</header> +<article> + {{ page.content }} +</article> +{% endblock %} diff --git a/monospace/templates/pagination.html b/monospace/templates/pagination.html new file mode 100644 index 0000000..83c587a --- /dev/null +++ b/monospace/templates/pagination.html @@ -0,0 +1,15 @@ +{% if DEFAULT_PAGINATION %} +<p class="paginator"> + {% if articles_page.has_previous() %} + {% if articles_page.previous_page_number() == 1 %} + <a href="{{ SITEURL }}/{{ page_name }}.html">«</a> + {% else %} + <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">«</a> + {% endif %} + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">»</a> + {% endif %} +</p> +{% endif %} diff --git a/monospace/templates/piwik.html b/monospace/templates/piwik.html new file mode 100644 index 0000000..ff459af --- /dev/null +++ b/monospace/templates/piwik.html @@ -0,0 +1,16 @@ +{% if PIWIK_URL and PIWIK_SITE_ID %} + <script type="text/javascript"> + {% if PIWIK_SSL_URL %} + var pkBaseURL = (("https:" == document.location.protocol) ? "https://{{ PIWIK_SSL_URL }}/" : "http://{{ PIWIK_URL }}/"); + {% else %} + var pkBaseURL = (("https:" == document.location.protocol) ? "https://{{ PIWIK_URL }}/" : "http://{{ PIWIK_URL }}/"); + {% endif %} + document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); + </script><script type="text/javascript"> + try { + var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {{ PIWIK_SITE_ID }}); + piwikTracker.trackPageView(); + piwikTracker.enableLinkTracking(); + } catch( err ) {} + </script><noscript><p><img src="http://{{ PIWIK_URL }}/piwik.php?idsite={{ PIWIK_SITE_ID }}" style="border:0" alt="" /></p></noscript> +{% endif %}
\ No newline at end of file diff --git a/monospace/templates/tag.html b/monospace/templates/tag.html new file mode 100644 index 0000000..68cdcba --- /dev/null +++ b/monospace/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/monospace/templates/taglist.html b/monospace/templates/taglist.html new file mode 100644 index 0000000..c792fd7 --- /dev/null +++ b/monospace/templates/taglist.html @@ -0,0 +1,2 @@ +{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}</p>{% endif %} +{% if PDF_PROCESSOR %}<p><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a></p>{% endif %} diff --git a/monospace/templates/tags.html b/monospace/templates/tags.html new file mode 100644 index 0000000..a6011a0 --- /dev/null +++ b/monospace/templates/tags.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% block content %} +<ul> +{% for tag, articles in tags %} + <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li> +{% endfor %} +</ul> +{% endblock %} + diff --git a/monospace/templates/translations.html b/monospace/templates/translations.html new file mode 100644 index 0000000..0079883 --- /dev/null +++ b/monospace/templates/translations.html @@ -0,0 +1,6 @@ +{% if article.translations %} +Translations: + {% for translation in article.translations %} + <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a> + {% endfor %} +{% endif %} diff --git a/monospace/templates/twitter.html b/monospace/templates/twitter.html new file mode 100644 index 0000000..c6b159f --- /dev/null +++ b/monospace/templates/twitter.html @@ -0,0 +1,3 @@ +{% if TWITTER_USERNAME %} +<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="{{TWITTER_USERNAME}}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> +{% endif %}
\ No newline at end of file |