Skip to content
Browse files


  • Loading branch information
ralsina committed May 29, 2015
1 parent 3e42e73 commit f7b4ef75e54240161fe8ac31bab1f00e7fd70d47
@@ -0,0 +1,11 @@
This theme is a quick port of the [HPSTR theme by Michael Rose]( Everything that's good in it
is Michael Rose's fault, everything bad is mine.

Known Issues:

* Not all features of Nikola are tested.
* Galleries will work better when [Issue #1764]( is fixed.
* CDNs are not used regardless of ``USE_CDN``
* It doesn't yet support configuring the entry image in the frontpage
* It doesn't yet support posts with "feature images"
* It doesn't support USE_BUNDLES = True
@@ -0,0 +1,51 @@
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;

.sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;

.breadcrumb {
padding: 8px 15px;
margin-bottom: 20px;
list-style: none;

.breadcrumb > li {
display: inline-block;
margin-right: 0;
margin-left: 0;

.breadcrumb > li:after {
content: ' / ';
color: #888;

.breadcrumb > li:last-of-type:after {
content: '';
margin-left: 0;

.thumbnails > li {
display: inline-block;
margin-right: 10px;

.thumbnails > li:last-of-type {
margin-right: 0;

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more.

Large diffs are not rendered by default.

@@ -0,0 +1 @@
@@ -0,0 +1,24 @@
## -*- coding: utf-8 -*-
<%namespace name="base" file="base_helper.tmpl" import="*"/>
<%namespace name="header" file="base_header.tmpl" import="*"/>
<%namespace name="footer" file="base_footer.tmpl" import="*"/>
<%namespace name="annotations" file="annotation_helper.tmpl"/>
<%block name="extra_head">
### Leave this block alone.
<body id="post-index" class="feature">
<a href="#content" class="sr-only sr-only-focusable">${messages("Skip to main content")}</a>
<div id="main" role="main">
<%block name="content"></%block>
@@ -0,0 +1,13 @@
## -*- coding: utf-8 -*-
<%namespace name="base" file="base_helper.tmpl" import="*"/>

<%def name="html_footer()">
%if content_footer:
<div class="footer-wrapper">
<footer role="contentinfo">
@@ -0,0 +1,56 @@
## -*- coding: utf-8 -*-
<%namespace name="base" file="base_helper.tmpl" import="*"/>

<%def name="html_header()">
<div class="entry-header">
<!-- FIXME: get credit from settings -->
<div class="image-credit">Image source: <a href="">dargadgetz</a></div><!-- /.image-credit -->
<div class="entry-image">
<img src="//" alt="Latest Posts">
</div><!-- /.entry-image -->
</div><!-- /.entry-header -->

<%def name="html_site_title()">
<div class="header-title">
<div class="header-title-wrap">
<h1 id="brand"><a href="${abs_link(_link("root", None, lang))}" title="${blog_title}" rel="home">
</div><!-- /.header-title-wrap -->
</div><!-- /.header-title -->

<%def name="html_navigation_links()">
<nav id="dl-menu" class="dl-menuwrapper" role="navigation">
<button class="dl-trigger">Open Menu</button>
<ul class="dl-menu">
%for url, text in navigation_links[lang]:
% if isinstance(url, tuple):
<a href="#">${text}</a>
<ul class="dl-submenu">
%for suburl, text in url:
<li><a href="${suburl}">${text}</a></li>
% else:
<li><a href="${url}">${text}</a></li>
% endif

<%def name="html_translation_header()">
%if len(translations) > 1:
<div id="toptranslations">
@@ -0,0 +1,129 @@
## -*- coding: utf-8 -*-

<%def name="html_headstart()">
<!DOCTYPE html>
<html \
%if use_open_graph or (twitter_card and twitter_card['use_twitter_cards']):
og: article: \
%if comment_system == 'facebook':
' \
%if use_open_graph or (twitter_card and twitter_card['use_twitter_cards']):
vocab="" \
% if is_rtl:
dir="rtl" \
% endif
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
<meta charset="utf-8">
%if description:
<meta name="description" content="${description}">
<!-- -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>${title|striphtml} | ${blog_title|striphtml}</title>

<!-- Load Modernizr -->
<script src="//"></script>
%if permalink:
<link rel="canonical" href="${abs_link(permalink)}">

%if favicons:
%for name, file, size in favicons:
<link rel="${name}" href="${file}" sizes="${size}"/>

% if comment_system == 'facebook':
<meta property="fb:app_id" content="${comment_system_id}">
% endif

%if prevlink:
<link rel="prev" href="${prevlink}" type="text/html">
%if nextlink:
<link rel="next" href="${nextlink}" type="text/html">

%if use_cdn:
<!--[if lt IE 9]><script src="//"></script><![endif]-->
<!--[if lt IE 9]><script src="${url_replacer(permalink, '/assets/js/html5.js', lang)}"></script><![endif]-->


<%def name="late_load_js()">
<script src="//"></script>
<script src="/assets/js/scripts.min.js"></script>

<%def name="html_stylesheets()">
%if use_bundles:
%if use_cdn:
<link href="/assets/css/all.css" rel="stylesheet" type="text/css">
<link href="/assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
<link href="/assets/css/rst.css" rel="stylesheet" type="text/css">
<link href="/assets/css/code.css" rel="stylesheet" type="text/css">
<link href="/assets/css/main.css" rel="stylesheet" type="text/css">
<link href="/assets/css/extra.css" rel="stylesheet" type="text/css">
%if has_custom_css:
<link href="/assets/css/custom.css" rel="stylesheet" type="text/css">
<!-- Webfonts -->
<link href="//,400,700,300italic,400italic" rel="stylesheet" type="text/css">

<%def name="html_feedlinks()">
%if rss_link:
%elif generate_rss:
%if len(translations) > 1:
%for language in translations:
<link rel="alternate" type="application/rss+xml" title="RSS (${language})" href="${_link('rss', None, language)}">
<link rel="alternate" type="application/rss+xml" title="RSS" href="${_link('rss', None)}">
%if generate_atom:
%if len(translations) > 1:
%for language in translations:
<link rel="alternate" type="application/atom+xml" title="Atom (${language})" href="${_link('index_atom', None, language)}">
<link rel="alternate" type="application/atom+xml" title="Atom" href="${_link('index_atom', None)}">

<%def name="html_translations()">
<ul class="translations">
%for langname in translations.keys():
%if langname != lang:
<li><a href="${abs_link(_link("root", None, langname))}" rel="alternate" hreflang="${langname}">${messages("LANGUAGE", langname)}</a></li>
@@ -0,0 +1,42 @@
## -*- coding: utf-8 -*-
<%namespace name="helper" file="index_helper.tmpl"/>
<%namespace name="comments" file="comments_helper.tmpl"/>
<%inherit file="base.tmpl"/>

<%block name="extra_head">
% if posts and (permalink == '/' or permalink == '/' + index_file):
<link rel="prefetch" href="${posts[0].permalink()}" type="text/html">
% endif

<%block name="content">
<%block name="content_header"></%block>
% for post in posts:
<article class="hentry">
<div class="entry-meta">
<span class="entry-date date published updated">
<time datetime="${}" title="${post.formatted_date(date_format)}">${post.formatted_date(date_format)}</time>
<span class="byline author vcard">${}</span>
% if not post.meta('nocomments') and site_has_comments:
&nbsp;&nbsp;&middot;&nbsp;&nbsp;<span class="commentline">${comments.comment_link(post.permalink(), post._base_path)}
% endif
<h1 class="p-name entry-title"><a href="${post.permalink()}" class="u-url">${post.title()|h}</a></h1>
%if index_teasers:
<div class="p-summary entry-summary">
<div class="e-content entry-content">
% endfor

0 comments on commit f7b4ef7

Please sign in to comment.