initial commit to seperate repo
This commit is contained in:
commit
1a020ca68b
1302 changed files with 201261 additions and 0 deletions
1
themes/readable/AUTHORS.txt
Normal file
1
themes/readable/AUTHORS.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
Roberto Alsina <https://github.com/ralsina>
|
||||
14
themes/readable/README.md
Normal file
14
themes/readable/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
A minimalistic, readable one column theme, very loosely based on doc: http://wordpress.org/extend/themes/doc
|
||||
although it shares no code with it.
|
||||
|
||||
Meta links and other things are at the bottom.
|
||||
|
||||
This theme is in the public domain. However, it includes code from other authors, which is
|
||||
under different licenses. Specifically:
|
||||
|
||||
This theme happily ignores the SOCIAL_BUTTONS_CODE option and uses Sharrre instead because
|
||||
it looks pretty.
|
||||
|
||||
* jquery.sharrre-1.3.4.min.js is under an MIT license, and is (c) Julien Hany
|
||||
|
||||
This theme inherits from the bootstrap theme, so it uses Twitter Bootstrap, JQuery and much more.
|
||||
67
themes/readable/assets/css/theme.css
Normal file
67
themes/readable/assets/css/theme.css
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
#container {
|
||||
width: 960px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 730px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5 {
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
a>h2:before {
|
||||
content: "¶ ";
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: 500;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-weight: 400;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
div.postdiv {
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
div.postmeta {
|
||||
font-size: 90%;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
ul.bottom > li {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
hr {
|
||||
width: 75%;
|
||||
color: #444;
|
||||
margin: 20px auto 20px auto;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
div.postdiv > p,
|
||||
div.postdiv * p,
|
||||
body
|
||||
{
|
||||
font-size: 16px;
|
||||
font-family: Times, 'Times New Roman', serif;
|
||||
}
|
||||
|
||||
a { color: #333; }
|
||||
a:hover { color: #555; }
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
}
|
||||
ul.breadcrumb > li:before {
|
||||
content: " / ";
|
||||
}
|
||||
7
themes/readable/assets/js/jquery.sharrre-1.3.4.min.js
vendored
Normal file
7
themes/readable/assets/js/jquery.sharrre-1.3.4.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
themes/readable/parent
Normal file
1
themes/readable/parent
Normal file
|
|
@ -0,0 +1 @@
|
|||
bootstrap
|
||||
89
themes/readable/templates/base.tmpl
Normal file
89
themes/readable/templates/base.tmpl
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%namespace name="base" file="base_helper.tmpl" import="*"/>
|
||||
${set_locale(lang)}
|
||||
${base.html_headstart()}
|
||||
<%block name="extra_head">
|
||||
### Leave this block alone.
|
||||
</%block>
|
||||
${template_hooks['extra_head']()}
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="container">
|
||||
<!--Body content-->
|
||||
<!--End of body content-->
|
||||
<div>
|
||||
<a href="${blog_url}"><h1>${blog_title}</h1></a>
|
||||
</div>
|
||||
<div id="content">
|
||||
${template_hooks['page_header']()}
|
||||
<%block name="content"></%block>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6" style="text-align: right; border-right: 2px solid #ccc; padding-right: 20px;">
|
||||
<ul class="unstyled bottom">
|
||||
%for url, text in navigation_links[lang]:
|
||||
% if rel_link(permalink, url) == "#":
|
||||
<li class="active"><a href="${url}">${text}</a>
|
||||
%else:
|
||||
<li><a href="${url}">${text}</a>
|
||||
%endif
|
||||
%endfor
|
||||
${template_hooks['menu']()}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span6" style="margin-left: 20px;">
|
||||
<ul class="unstyled bottom">
|
||||
<%block name="belowtitle">
|
||||
%if len(translations) > 1:
|
||||
<li>
|
||||
%for langname in translations.keys():
|
||||
%if langname != lang:
|
||||
<a href="${rel_link(permalink, _link("index", None, langname))}">${messages[langname]["LANGUAGE"]}</a>
|
||||
%endif
|
||||
%endfor
|
||||
</li>
|
||||
%endif
|
||||
</%block>
|
||||
<%block name="sourcelink"> </%block>
|
||||
<li>Shares: <div id="share"></div></li>
|
||||
</ul>
|
||||
<div>
|
||||
%if search_form:
|
||||
${search_form}
|
||||
%endif
|
||||
${template_hooks['menu_alt']()}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="footer">
|
||||
${content_footer}
|
||||
${template_hooks['page_footer']()}
|
||||
</div>
|
||||
</div>
|
||||
${base.late_load_js()}
|
||||
<script type="text/javascript" src="/assets/js/jquery.sharrre-1.3.4.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery("a.image-reference").colorbox({rel:"gal",maxWidth:"80%",maxHeight:"80%",scalePhotos:true});
|
||||
$('#share').sharrre({
|
||||
share: {
|
||||
googlePlus: true,
|
||||
twitter: true
|
||||
},
|
||||
buttons: {
|
||||
googlePlus: {annotation:'bubble'},
|
||||
twitter: {count: 'horizontal'}
|
||||
},
|
||||
hover: function(api, options){
|
||||
$(api.element).find('.buttons').show();
|
||||
},
|
||||
hide: function(api, options){
|
||||
$(api.element).find('.buttons').hide();
|
||||
},
|
||||
enableTracking: true,
|
||||
urlCurl: ""
|
||||
});
|
||||
</script>
|
||||
${body_end}
|
||||
${template_hooks['body_end']()}
|
||||
</body>
|
||||
28
themes/readable/templates/index.tmpl
Normal file
28
themes/readable/templates/index.tmpl
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%namespace name="helper" file="index_helper.tmpl"/>
|
||||
<%namespace name="comments" file="comments_helper.tmpl"/>
|
||||
<%inherit file="base.tmpl"/>
|
||||
<%block name="content">
|
||||
% for post in posts:
|
||||
<div class="postdiv">
|
||||
<a href="${post.permalink()}"><h2>${post.title()}</a></h2>
|
||||
${post.text(teaser_only=index_teasers)}
|
||||
<p>
|
||||
</div>
|
||||
<div class="postmeta">
|
||||
<small> §
|
||||
<span class="dateline"><a href="${post.permalink()}" rel="bookmark"><time class="published dt-published" datetime="${post.date.isoformat()}" itemprop="datePublished" title="${messages("Publication date")}">${post.formatted_date(date_format)}</time></a></span>
|
||||
</small>
|
||||
% if not post.meta('nocomments') and site_has_comments:
|
||||
· ${comments.comment_link(post.permalink(), post.base_path)}
|
||||
% endif
|
||||
% for tag in post.tags:
|
||||
· ${tag}
|
||||
%endfor
|
||||
</div>
|
||||
<hr>
|
||||
% endfor
|
||||
${helper.html_pager()}
|
||||
${comments.comment_link_script()}
|
||||
${helper.mathjax_script(posts)}
|
||||
</%block>
|
||||
32
themes/readable/templates/post.tmpl
Normal file
32
themes/readable/templates/post.tmpl
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%namespace name="helper" file="post_helper.tmpl"/>
|
||||
<%namespace name="pheader" file="post_header.tmpl"/>
|
||||
<%namespace name="comments" file="comments_helper.tmpl"/>
|
||||
<%inherit file="base.tmpl"/>
|
||||
<%block name="extra_head">
|
||||
${helper.twitter_card_information(post)}
|
||||
% if post.meta('keywords'):
|
||||
<meta name="keywords" content="${post.meta('keywords')|h}"/>
|
||||
% endif
|
||||
</%block>
|
||||
<%block name="content">
|
||||
<div class="postdiv">
|
||||
<a href="${post.permalink()}"><h2>${post.title()}</a></h2>
|
||||
${post.text(lang)}
|
||||
</div>
|
||||
<div class="postmeta">
|
||||
<small> §
|
||||
<span class="dateline"><a href="${post.permalink()}" rel="bookmark"><time class="published dt-published" datetime="${post.date.isoformat()}" itemprop="datePublished" title="${messages("Publication date")}">${post.formatted_date(date_format)}</time></a></span>
|
||||
</small>
|
||||
% if not post.meta('nocomments') and site_has_comments:
|
||||
· ${comments.comment_link(post.permalink(), post.base_path)}
|
||||
% endif
|
||||
% for tag in post.tags:
|
||||
· ${tag}
|
||||
%endfor
|
||||
</div>
|
||||
|
||||
% if not post.meta('nocomments'):
|
||||
${comments.comment_form(post.permalink(absolute=True), post.title(), post.base_path)}
|
||||
% endif
|
||||
</%block>
|
||||
Loading…
Add table
Add a link
Reference in a new issue