Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

i've given up on making real commits now

  • Loading branch information...
commit 3af68de0d7bca8d63ada50133037ee2d1ec92b78 1 parent 80c4d2a
@kuyan authored
View
4 sass/styles.sass
@@ -0,0 +1,4 @@
+@import variables
+@import grid
+@import codehilite
+@import justread
View
1  static/css/styles.css
@@ -0,0 +1 @@
+.row div:last-child{margin-right:0}.c{color:#757575}.err{color:#fa4753}.k{color:#6bc5d9}.l{color:#514986}.n{color:#f8f8f2}.o{color:#f92672}.p{color:#f8f8f2}.cm{color:#757575}.cp{color:#757575}.c1{color:#757575}.cs{color:#757575}.kc{color:#6bc5d9}.kd{color:#6bc5d9}.kn{color:#f92672}.kp{color:#6bc5d9}.kr{color:#6bc5d9}.kt{color:#6bc5d9}.ld{color:#f4e07c}.m{color:#514986}.s{color:#f4e07c}.na{color:#9cc52c}.nb{color:#f8f8f2}.nc{color:#9cc52c}.no{color:#6bc5d9}.nd{color:#9cc52c}.ni{color:#f8f8f2}.ne{color:#9cc52c}.nf{color:#9cc52c}.nl{color:#f8f8f2}.nn{color:#f8f8f2}.nx{color:#9cc52c}.py{color:#f8f8f2}.nt{color:#f92672}.nv{color:#f8f8f2}.ow{color:#f92672}.w{color:#f8f8f2}.mf{color:#514986}.mh{color:#514986}.mi{color:#514986}.mo{color:#514986}.sb{color:#f4e07c}.sc{color:#f4e07c}.sd{color:#f4e07c}.s2{color:#f4e07c}.se{color:#514986}.sh{color:#f4e07c}.si{color:#f4e07c}.sx{color:#f4e07c}.sr{color:#f4e07c}.s1{color:#f4e07c}.ss{color:#f4e07c}.bp{color:#f8f8f2}.vc{color:#f8f8f2}.vg{color:#f8f8f2}.vi{color:#f8f8f2}.il{color:#514986}::-moz-selection{background:#fd7;color:#000;text-shadow:none}::selection{background:#fd7;color:#000;text-shadow:none}body{font-family:"Droid Sans","Open Sans",sans-serif;margin:0}code,pre{font-family:"Droid Sans Mono",monospace}header[role="banner"]{background-color:#222;text-align:left}header[role="banner"] a{text-decoration:none;color:#fff;margin-left:25.95%}header[role="banner"] a:hover{text-decoration:none;color:#e6e6e6}header[role="banner"] a:visited{color:#fff}header[role="banner"] a:visited:hover{color:#e6e6e6}header[role="banner"] h1{margin:0;margin-left:25.95%}.container{padding-left:20px;padding-right:20px}.container .content{width:100%;max-width:71.25em;margin:0 auto;overflow:hidden}.container .content .push3{margin-left:25.95%}@media (max-width: 30em){.container .content .push3{width:100%;float:none;margin-left:0;margin-right:0}}.container .content .col3{margin-right:3.8%;float:left;min-height:1px;width:22.05%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media (max-width: 30em){.container .content .col3{width:100%;float:none;margin-left:0;margin-right:0}}.container .content .col6{margin-right:3.8%;float:left;min-height:1px;width:48.00%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media (max-width: 30em){.container .content .col6{width:100%;float:none;margin-left:0;margin-right:0}}.container .content .last{margin-right:0}.container .content footer{margin-left:25.95%;margin-right:3.8%;float:left;min-height:1px;width:48.00%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media (max-width: 30em){.container .content footer{width:100%;float:none;margin-left:0;margin-right:0}}@media (max-width: 30em){.container .content footer{width:100%;float:none;margin-left:0;margin-right:0}}
View
2  templates/archives.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends '_base.html' %}
{% block title %}Archives - {{ SITENAME }}{% endblock %}
View
50 templates/article.html
@@ -1,32 +1,28 @@
-{% extends "base.html" %}
+{% extends '_base.html' %}
{% block title %}{{ article.title }} - {{ SITENAME }}{% endblock %}
{% block content %}
-<div role="main" class="content clearfix">
- <article>
- <div class="post wrapper">
- <h1>{{ article.title }}</h1>
- {{ article.content }}
-
- <a href="https://twitter.com/share" class="twitter-share-button" data-via="{{ TWITTER_USERNAME }}" data-lang="en" data-size="large" data-related="{{ TWITTER_USERNAME }}">Tweet</a>
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
-
- {% if DISQUS_SITENAME %}
- <div class="comments">
- <h2>Comments !</h2>
- <div id="disqus_thread"></div>
- <script type="text/javascript">
- var disqus_identifier = "{{ article.url }}";
- (function() {
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
- dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
- })();
- </script>
+<div role="main" class="container">
+ <div class="content">
+ <div class="meta col3"></div>
+ <article>
+ <div class="post wrapper">
+ <h1>{{ article.title }}</h1>
+ {{ article.content }}
+
+ {% if DISQUS_SITENAME %}
+ <div class="comments">
+ <h2>Comments</h2>
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ var disqus_identifier = "{{ article.url }}";(function() {var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);})();
+ </script>
+ </div>
+ {% endif %}
</div>
- {% endif %}
- </div>
-
- {% include 'metadata.html' %}
- </article>
+
+ {% include 'metadata.html' %}
+ </article>
+ <div class="col3 last"></div>
+ </div>
</div>
{% endblock %}
View
62 templates/base.html
@@ -1,62 +0,0 @@
-<!doctype html>
-<html lang="{{ HTML_LANG }}">
-<head>
- <meta charset="utf-8"/>
- <title>{% block title %}{{ SITENAME }}{% endblock %}</title>
- <meta name="author" content="{{ AUTHOR }}">
-
- <meta name="HandheldFriendly" content="True">
- <meta name="MobileOptimized" content="320">
- <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0">
-
- <!-- !fix Serve normalize.css from Github while I'm developing the theme. -->
- <link rel="stylesheet" type="text/css" href="//raw.github.com/jonathantneal/normalize.css/master/normalize.min.css">
- <link href="//fonts.googleapis.com/css?family=Droid+Sans:700,400|Droid+Sans+Mono" rel="stylesheet" type="text/css">
- <link rel="stylesheet" href="{{ SITEURL }}/theme/css/styles.css" type="text/css">
-
- <!--[if lt IE 9]>
- <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
-
- <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 %}
-</head>
-
-<body>
- <header class="clearfix" role="banner">
- <div class="wrapper">
- <h1 class="huge"><a href="{{ SITEURL }}">{{ SITENAME }}</a></h1>
- </div>
- </header>
-
- {% block content %}
- {% endblock %}
-
-
-<footer class="clearfix">
- <div class="wrapper pages">
- <ul class="nav">
- {% for page in PAGES %}
- <li><a href="{{ SITEURL }}/{{ p.url }}">{{ page.title }}</a></li>
- {% endfor %}
- <li><a href="{{ SITEURL }}/archives.html">Archive</a></li>
- </ul>
- </div>
-
- <div class="copy wrapper">
- <ul class="social">
- {% for name, link in SOCIAL %}
- <li><a href="{{ link }}">{{ name }}</a></li>
- {% endfor %}
- </ul>
-
- <p role="contentinfo">© 2012 {{ AUTHOR }}<br>
- Proudly powered by <a href="http://docs.getpelican.com/en/3.1.1/">Pelican</a>.</p>
- </div>
-</footer>
-{% block scripts -%}{%- endblock %}
-{% include '_google-analytics.html' %}
-</body>
-</html>
View
6 templates/category.html
@@ -1,11 +1,11 @@
-{% extends "base.html" %}
+{% extends '_base.html' %}
{% block title %}{{ category }} - {{ SITENAME }}{% endblock %}
{% block content %}
<div role="main" class="content clearfix">
-<div class="wrapper main">
+<div class="wrapper main">
<h2>Posts categorized under: {{ category }}</h2>
-
+
<ol class="archive">
{% for article in articles %}
<li class="clearfix"><a href="{{ SITEURL }}/{{ article.url }}"><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}</a></li>
View
56 templates/index.html
@@ -1,28 +1,44 @@
-{% extends "base.html" %}
+{% extends '_base.html' %}
{% block content_title %}{% endblock %}
{% block content %}
-<div role="main" class="content clearfix">
-{% for article in articles %}
-
- {% if loop.index == 1 %}
- <article class="wrapper main">
- <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
- {{ article.summary }} <a class="btn" href="{{ SITEURL }}/{{ article.url }}">read more →</a>
- </article>
+<div role="main" class="container">
+ <div class="content">
+ <div class="push3 col6">
+ {% for article in articles %}
+ {% if loop.index == 1 %}
+ <article>
+ <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
+ {{ article.summary }} <a class="btn" href="{{ SITEURL }}/{{ article.url }}">read more →</a>
+ </article>
+ {% endif %}
+ {% endfor %}
+ </div>
+ <div class="col3 last"></div>
+ </div>
+</div>
- {% if loop.length > 1 %}
- <div class="wrapper main">
- <h3>More posts</h3>
- <ol class="archive">
- {% endif %}
- {% elif loop.index < 7 %}
- <li class="clearfix"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title }}"><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}</a></li>
- {% endif %}
- {% endfor %}
- </ol>
+<div role="main" class="container">
+ <div class="content">
+ <div class="push3 col6">
+ {% if articles|length > 1 %}
+ <h3>More posts</h3>
+ <ol class="archive">
+ {% endif %}
+ {% for article in articles %}
+ {% if loop.index < 7 and not loop.index == 1 -%} {# dirty dirty dirty #}
+ <li>
+ <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title }}">
+ <time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}
+ </a>
+ </li>
+ {%- endif %}
+ {% endfor %}
+ </ol>
- <p>More posts in the <a href="{{ SITEURL }}/archives.html">archive</a>.</p>
+ <p>More posts in the <a href="{{ SITEURL }}/archives.html">archive</a>.</p>
+ </div>
+ <div class="col3 last"></div>
</div>
</div>
{% endblock content %}
View
2  templates/page.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends '_base.html' %}
{% block title %}{{ page.title }} - {{ SITENAME }}{% endblock %}
{% block content %}
<div role="main" class="content clearfix">
View
2  templates/tag.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends '_base.html' %}
{% block title %}{{ tag }} - {{ SITENAME }}{% endblock %}
{% block content %}
<div role="main" class="content clearfix">
View
2  templates/tags.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends '_base.html' %}
{% block title %}{{ SITENAME }}{% endblock %}
{% block content %}

0 comments on commit 3af68de

Please sign in to comment.
Something went wrong with that request. Please try again.