Commit 2da8b2f1 authored by Annika Backstrom's avatar Annika Backstrom

Remove simplegrey theme

parent 7fd3742a
......@@ -19,8 +19,6 @@ CATEGORY_FEED_ATOM = None
THEME = 'themes/histrionic'
PELICAN_SIMPLEGREY_TWITTER_CARD_ACCOUNT = 'abackstrom'
CACHE_CONTENT = True
LOAD_CONTENT_CACHE = True
......
# simplegrey #
## Screenshot ##
![screenshot](screenshot.png)
## Options ##
``PELICAN_SIMPLEGREY_TWITTER_CARD_ACCOUNT = '__fle__' `` option allows you add [Twitter summary card metadata](https://dev.twitter.com/docs/cards/types/summary-card) in your posts
## Credits ##
* Theme freely inspired by [vkvn](https://github.com/vkvn)
* Icons by [Jorge Calvo](http://dribbble.com/shots/1074961-Flat-Icons-EPS), slightly adapted by [Ingrid Hamard](http://ingrid.hamard.free.fr)
/*
* CSSrefresh v1.0.1
*
* Copyright (c) 2012 Fred Heusschen
* www.frebsite.nl
*
* Dual licensed under the MIT and GPL licenses.
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*/
(function() {
var phpjs = {
array_filter: function( arr, func )
{
var retObj = {};
for ( var k in arr )
{
if ( func( arr[ k ] ) )
{
retObj[ k ] = arr[ k ];
}
}
return retObj;
},
filemtime: function( file )
{
var headers = this.get_headers( file, 1 );
return ( headers && headers[ 'Last-Modified' ] && Date.parse( headers[ 'Last-Modified' ] ) / 1000 ) || false;
},
get_headers: function( url, format )
{
var req = window.ActiveXObject ? new ActiveXObject( 'Microsoft.XMLHTTP' ) : new XMLHttpRequest();
if ( !req )
{
throw new Error('XMLHttpRequest not supported.');
}
var tmp, headers, pair, i, j = 0;
try
{
req.open( 'HEAD', url, false );
req.send( null );
if ( req.readyState < 3 )
{
return false;
}
tmp = req.getAllResponseHeaders();
tmp = tmp.split( '\n' );
tmp = this.array_filter( tmp, function( value )
{
return value.toString().substring( 1 ) !== '';
});
headers = format ? {} : [];
for ( i in tmp )
{
if ( format )
{
pair = tmp[ i ].toString().split( ':' );
headers[ pair.splice( 0, 1 ) ] = pair.join( ':' ).substring( 1 );
}
else
{
headers[ j++ ] = tmp[ i ];
}
}
return headers;
}
catch ( err )
{
return false;
}
}
};
var cssRefresh = function() {
this.getHref = function( f )
{
return f.getAttribute( 'href' ).split( '?' )[ 0 ];
};
this.getRandom = function( f )
{
return f + '?x=' + Math.random();
};
this.reloadFile = function( links )
{
for ( var a = 0, l = links.length; a < l; a++ )
{
var link = links[ a ],
newTime = phpjs.filemtime( this.getRandom( link.href ) );
// has been checked before
if ( link.last )
{
// has been changed
if ( link.last != newTime )
{
// reload
link.elem.setAttribute( 'href', this.getRandom( link.href ) );
}
}
// set last time checked
link.last = newTime;
}
setTimeout( function()
{
this.reloadFile( links );
}, 1000 );
};
var files = document.getElementsByTagName( 'link' ),
links = [];
for ( var a = 0, l = files.length; a < l; a++ )
{
var elem = files[ a ],
rel = elem.rel;
if ( typeof rel != 'string' || rel.length == 0 || rel == 'stylesheet' )
{
if ( this.getHref( elem ).indexOf( 'fonts.googleapis.com' ) !== -1)
{
continue;
}
links.push({
'elem' : elem,
'href' : this.getHref( elem ),
'last' : false
});
}
}
this.reloadFile( links );
};
cssRefresh();
})();
/* Simple JavaScript Inheritance
* By John Resig http://ejohn.org/
* MIT Licensed.
*/// Inspired by base2 and Prototype
function git_canvas(a){function i(a){e=new Branches;d=new Commits;g=null;f=0;for(var b=0,h=a.length;b<h;b++){var i=a[b],j=null,k=null,l=null,m=null;i.branch=i.branch||"master";k=e.create(i.branch);l=i.staged||!1;i.parents==null?g?m=[g.hash]:m=[]:m=i.parents;j=new Commit(i.hash,{branch:k,parents:m,staged:l});j.commit_number=f++;d.push(j);g=j}return c}function j(a,g){var i={};if(typeof g!="undefined"){for(var j in h)h.hasOwnProperty(j)&&(i[j]=h[j]);h.branch_sep=g.branch_sep||h.branch_sep;h.commits_sep=g.commits_sep||h.commits_sep;h.stroke=g.stroke||h.stroke;h.radius=g.radius||h.radius}b=Raphael(a,(f-1)*h.commits_sep+2*h.radius+h.stroke,(e.branch_count-1)*h.branch_sep+2*h.radius+h.stroke);d.each(function(){l(this)});d.each(function(){m(this)});typeof g!="undefined"&&(h=i);return c}function k(a,c){var d=["M",a.x,a.y];c.branch===a.branch?d.push("L",c.x,c.y):c.branch.num<a.branch.num?d.push("L",c.x+h.commits_sep/2,a.y,"L",c.x,c.y):d.push("L",a.x-h.commits_sep/2,c.y,"L",c.x,c.y);d=b.path(d.join(","));c.branch.num<a.branch.num?d.attr("stroke",a.branch.color):d.attr("stroke",c.branch.color);d.attr("stroke-width",h.stroke);a.staged&&d.attr("stroke-dasharray",".")}function l(a){var b=a.branch,c=h.commits_sep*a.commit_number+h.radius+h.stroke/2,e=h.branch_sep*b.num+h.radius+h.stroke/2;a.x=c;a.y=e;for(var f=0,g=a.parents.length;f<g;f++){var i=d.get(a.parents[f]);k(a,i)}}function m(a){var c=b.circle(a.x,a.y,h.radius);c.attr("fill","white");c.attr("stroke","#444");c.attr("stroke-width",h.stroke);a.staged&&c.attr("stroke-dasharray",".")}var b=null,c={},d=null,e=null,f=0,g=null,h=a||{};h.branch_sep=h.branch_sep||50;h.commits_sep=h.commits_sep||60;h.stroke=h.stroke||6;h.radius=h.radius||15;c.commits=i;c.draw=j;return c}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var HashCollection=Class.extend({init:function(){this.childrenHash={};this.children=[]},push:function(a){var b=this.children.push(a);this.childrenHash[a[this.id_field]]=b-1},each:function(a){for(var b=0,c=this.children.length;b<c;b++){commit=this.children[b];a.apply(commit)}},get:function(a){var b=this.childrenHash[a];return this.children[b]},exists:function(a){return typeof this.get(a)!="undefined"}}),Commits=HashCollection.extend({init:function(){this.id_field="hash";this._super()}}),Branches=HashCollection.extend({init:function(){this.line_colors=["#D4262F","#2F8F59","#F78623","#2389F7","#DF23F7"];this.id_field="name";this.branch_count=0;this._super()},create:function(a){if(this.exists(a))return this.get(a);a=new Branch(a);a.num=this.branch_count++;a.color=this.line_colors.shift();this.push(a);return a}}),Branch=Class.extend({init:function(a){this.name=a}}),Commit=Class.extend({init:function(a,b){this.parents=new Commits;typeof b.parents!="undefined"&&!(b.parents instanceof Array)&&(b.parents=[b.parents]);this.hash=a;this.branch=b.branch;this.parents=b.parents||[];this.staged=b.staged||!1}});
\ No newline at end of file
This diff is collapsed.
{% extends "base.html" %}
{% block title %}{{ article.title }} - {{ SITENAME }}{% endblock %}
{% block extra_meta %}
<meta name="description" content="{{ article.summary|striptags|e }}">
{% if PELICAN_SIMPLEGREY_TWITTER_CARD_ACCOUNT %}
<meta name="twitter:card" content="summary">
<meta name="twitter:creator" content="@{{ PELICAN_SIMPLEGREY_TWITTER_CARD_ACCOUNT }}">
<meta name="twitter:title" content="{{ article.title|e }}">
<meta name="twitter:description" content="{{ article.summary|striptags|e }}">
<meta name="twitter:url" content="{{ SITEURL }}/{{ article.url }}">
{% if article["meta-image-square"] %}
<meta name="twitter:image" content="{{ SITEURL }}{{ article["meta-image-square"] }}">
{% endif %}
{% endif %}
{% endblock %}
{% block content %}
<article class="full">
<h1>{{ article.title }}</h1>
{{ article.content }}
{% include 'metadata.inc.html' %}
</article>
{% 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 %}
{% endblock %}
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a>
<time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time>
<p>{{ article.summary }}</p>
<article class="summary">
{% include 'metadata.inc.html' %}
<div>
<h2>
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a>
</h2>
<p>{{ article.summary }}</p>
</div>
</article>
{% extends "base.html" %}
{% block title %}{{ author }} - {{ SITENAME }}{% endblock %}
{% block content %}
<h1>Posts published by: {{ author }}</h1>
{% for article in articles_page.object_list %}
{% include 'article_summary.inc.html' %}
{% endfor %}
{% include 'pagination.inc.html' %}
{% endblock %}
<!doctype html>
<html lang="{{ HTML_LANG }}">
<head>
<meta charset="utf-8"/>
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
<meta name="author" content="{{ AUTHOR }}">
<meta name="viewport" content="width=device-width, user-scalable=no">
{% block extra_meta %}
{% endblock %}
<link rel="top" href="#" />
<link href='//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic|Inconsolata' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{ SITEURL }}/assets/css/{{ CSS_FILE }}?v={{ BLOG_VERSION }}" type="text/css" />
{% block scripts %}
{% endblock %}
{% if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
{% endif %}
{% if FEED_ALL_RSS %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
{% endif %}
</head>
<body class="{% block body_classes %}{% endblock %}">
{{ FEED_ATOM }}
<div class="container">
<header role="banner">
{% if HEADER_PAGES %}
<nav class="pages">
<ul>
{% for page_title, page_url in HEADER_PAGES %}
<li><a href="{{ SITEURL }}/{{ page_url }}">{{ page_title }}</a></li>
{% endfor %}
</ul>
</nav>
{% endif %}
</header>
<div class="wrapper">
<div role="main" class="content">
{% block content %}{% endblock %}
</div>
</div>
<footer>
<p role="contentinfo">
&copy; 2002-2016 Annika Backstrom. Powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>.
Feeds: <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate">atom</a>.
</p>
</footer>
</div>
{% if GOOGLE_ANALYTICS %}
<script>
var _gaq=[['_setAccount','{{ GOOGLE_ANALYTICS }}'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
{% endif %}
{% if GAUGES_SITEID %}
<script type="text/javascript">
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '{{ GAUGES_SITEID }}');
t.src = '//secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
{% endif %}
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
</body>
</html>
[
{% for article in articles %}
"{{ SITEURL }}/{{ article.url }}"{% if not loop.last %},{% endif %}
{% endfor %}
]
{% extends "base.html" %}
{% block title %}{{ category }} - {{ SITENAME }}{% endblock %}
{% block content %}
<h1>Posts categorized under: {{ category }}</h1>
{% for article in articles_page.object_list %}
{% include 'article_summary.inc.html' %}
{% endfor %}
{% include 'pagination.inc.html' %}
{% endblock %}
{% extends "base.html" %}
{% block body_classes %}index{% endblock %}
{% block content %}
<div class="circular headshot">
<h1>Annika Backstrom</h1>
</div>
{% if articles %}
<div class="recent">
<p>Hi, I'm Annika Backstrom. I'm a software engineer living in New Hampshire, US. This is where I blog.</p>
<ol class="archive">
{% for article in articles %}
{% if loop.index < 11 %}
<li>
{% include 'article_link.inc.html' %}
</li>
{% endif %}
{% endfor %}
</ol>
<p>And <a href="/archives">older things</a>.</p>
</div>
{% endif %}
<div class="clear"></div>
{% endblock content %}
<div class="metadata">
{% if page %}
{% if page.date %}
This page was created on <time datetime="{{ page.date.isoformat() }}" pubdate>{{ page.locale_date }}</time>.
{% if page.modified and page.locale_date != page.locale_modified %}
It was last modified <time datetime="{{ page.modified.isoformat() }}">{{ page.locale_modified }}</time>.
{% endif %}
<a href="https://gitlab.com/abackstrom/sixohthree-com/commits/master/content/{{ page.content_path }}">Version history</a>.
{% endif %}
{% else %}
This article was published by <address class="vcard author">{{ article.author }}</address>
on <time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time>.
{% if article.modified and article.locale_date != article.locale_modified %}
It was last modified <time datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time>.
{% endif %}
It is in the <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> category.
<a href="https://gitlab.com/abackstrom/sixohthree-com/commits/master/content/{{ article.content_path }}">Version history</a>.
{% if article.tags %}
<ul class="article-tags list-unstyled">
{% for tag in article.tags %}
<li class="article-tag">
<a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
</div>
{% extends "base.html" %}
{% block body_classes %}page{% endblock %}
{% block title %}{{ page.title }} - {{ SITENAME }}{% endblock %}
{% block content %}
<h1>{{ page.title }}</h1>
{{ page.content }}
{% include 'metadata.inc.html' %}
{% endblock %}
{% if DEFAULT_PAGINATION %}
<div class="pagination">
{% if articles_page.has_previous() %}
{% if articles_page.previous_page_number() == 1 %}
<a href="{{ SITEURL }}/{{ page_name }}.html">&laquo;</a>
{% else %}
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">&laquo;</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">&raquo;</a>
{% endif %}
</div>
{% endif %}
{% extends "base.html" %}
{% block title %}{{ tag }} - {{ SITENAME }}{% endblock %}
{% block content %}
<h1>Post tagged: {{ tag }}</h1>
{% for article in articles_page.object_list %}
{% include 'article_summary.inc.html' %}
{% endfor %}
{% include 'pagination.inc.html' %}
{% endblock %}
\ No newline at end of file
{% extends "base.html" %}
{% block title %}{{ SITENAME }}{% endblock %}
{% block content %}
<h1>Tags</h1>
<ul class="tagcloud">
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
{% endfor %}
</ul>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment