1
0
Fork 0
forked from github/pelican

git merge master

This commit is contained in:
dave mankoff 2012-06-20 19:49:31 -04:00
commit 7b6a97dee0
10 changed files with 62 additions and 18 deletions

View file

@ -13,11 +13,8 @@ try:
from markdown import Markdown
except ImportError:
Markdown = False # NOQA
import cgi
from HTMLParser import HTMLParser
import re
from pelican.contents import Category, Tag, Author
from pelican.utils import get_date, open

View file

@ -312,6 +312,7 @@ img.left, figure.left {float: right; margin: 0 0 2em 2em;}
.social a[type$='atom+xml'], .social a[type$='rss+xml'] {background-image: url('../images/icons/rss.png');}
.social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
.social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
.social a[href*='gitorious.org'] {background-image: url('../images/icons/gitorious.org');}
/*
About

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -41,12 +41,12 @@
</div><!-- /.entry-content -->
</article></li>
{% endif %}
{% if loop.last and (articles_page.has_previous()
or not articles_page.has_previous() and loop.length > 1) %}
{% include 'pagination.html' %}
{% endif %}
{% if loop.last %}
</ol><!-- /#posts-list -->
{% if loop.last and (articles_page.has_previous()
or not articles_page.has_previous() and loop.length > 1) %}
{% include 'pagination.html' %}
{% endif %}
</section><!-- /#content -->
{% endif %}
{% endfor %}

View file

@ -0,0 +1,14 @@
{% if GOSQUARED_SITENAME %}
<script type="text/javascript">
var GoSquared={};
GoSquared.acct = "{{ GOSQUARED_SITENAME }}";
(function(w){
function gs(){
w._gstc_lt=+(new Date); var d=document;
var g = d.createElement("script"); g.type = "text/javascript"; g.async = true; g.src = "//d1l6p2sc9645hc.cloudfront.net/tracker.js";
var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g, s);
}
w.addEventListener?w.addEventListener("load",gs,false):w.attachEvent("onload",gs);
})(window);
</script>
{% endif %}

View file

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
import contextlib
import os
import re
import pytz
@ -34,10 +33,10 @@ def get_date(string):
pass
raise ValueError("'%s' is not a valid date" % string)
@contextlib.contextmanager
def open(filename):
"""Open a file and return it's content"""
yield _open(filename, encoding='utf-8').read()
return _open(filename, encoding='utf-8').read()
def slugify(value):