Website
This commit is contained in:
2
website/themes/monospace/AUTHORS.txt
Normal file
2
website/themes/monospace/AUTHORS.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Vinicius Massuchetto <http://vinicius.soylocoporti.org.br> [WordPress theme]
|
||||
Roberto Alsina <https://github.com/ralsina>
|
||||
43
website/themes/monospace/README.md
Normal file
43
website/themes/monospace/README.md
Normal file
@@ -0,0 +1,43 @@
|
||||
A Nikola port of Vinicius Massuchetto's monospace Wordpress theme. I have
|
||||
tried to keep it as faithful as possible, because I really liked it.
|
||||
This port uses twitter bootstrap.
|
||||
|
||||
You can see the original here: http://wordpress.org/themes/monospace
|
||||
|
||||
This theme is licensed under the GPL v2.0 like the original. Below is a fragment of
|
||||
the original theme's README:
|
||||
|
||||
|
||||
> Monospace WordPress Theme
|
||||
> -------------------------
|
||||
>
|
||||
> * Are you tired from polluted websites with useless images and
|
||||
> JavaScript effects?
|
||||
> * Are you a programmer, and just want to discuss some code?
|
||||
> * Do you usually write things in 80 columns and want your web content to
|
||||
> be like that?
|
||||
> * Do you send e-mails only in plain ASCII?
|
||||
> * Do you think information is way more important than anything around
|
||||
> the web?
|
||||
> * Do you enjoy a well written text in plain format?
|
||||
>
|
||||
> Features
|
||||
> --------
|
||||
>
|
||||
> * Clean, extra-light, easy, objective, image free and 80 columns monospaced
|
||||
> * Good for code, e-mails and indented content
|
||||
> * 2 columns layout, threaded comments, widget, and translation ready
|
||||
> * Automatically resize images to fit the 80 column / 500px text space
|
||||
> * Built-in related posts funcionality
|
||||
> * WordPress standard widgets already styled
|
||||
> * Twitter, Facebook, Google Reader and Orkut sharers
|
||||
> * Compatible with WP-Pagenavi and WP-Syntax plugins
|
||||
>
|
||||
> Links
|
||||
> -----
|
||||
>
|
||||
> * Theme Author: Vinicius Massuchetto
|
||||
> http://vinicius.soylocoporti.org.br
|
||||
>
|
||||
> * WordPress Theme's Trac Tickets
|
||||
> http://themes.trac.wordpress.org/query?keywords=~theme-monospace
|
||||
24
website/themes/monospace/assets/css/theme.css
Normal file
24
website/themes/monospace/assets/css/theme.css
Normal file
@@ -0,0 +1,24 @@
|
||||
body { margin:0px; padding:20px 0px; text-align:center; font-family:Monospace; color:#585858; }
|
||||
.post { margin:0px 0px 30px 0px; padding:0px 0px 30px 0px; border-bottom:1px dotted #C8C8C8; }
|
||||
.meta { margin:10px; padding:15px; background:#EAEAEA; clear:both; }
|
||||
#footer { text-align:center; clear:both; margin:30px 0px 0px 0px; padding:30px 0px 0px 0px; border-top:1px dotted #C8C8C8; }
|
||||
#wrap { margin:0px auto; text-align:left; font-size: 13px; line-height: 1.4; }
|
||||
#container { float:right; }
|
||||
#sidebar { overflow:hidden; clear:left; text-align:right; width:250px; height:auto; padding:0px 15px 0px 0px; border-right:1px dotted #C8C8C8; }
|
||||
#sidebar li { list-style-type:none; }
|
||||
#sidebar > li { margin:20px 0px; }
|
||||
#sidebar h1 { border-bottom:1px dotted #C8C8C8; }
|
||||
#sidebar .description { display:block; width:100%; height:auto; margin:0px 0px 10px 0px; }
|
||||
h1, h2, h3, h4, h5, h6, h7 { margin:0px; text-transform:uppercase; }
|
||||
h4, h5, h6 { font-size:14px; }
|
||||
#blog-title { margin-top: 0; line-height:48px;}
|
||||
.literal-block {padding: .5em;}
|
||||
div.sidebar, div.admonition, div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning {
|
||||
/* Issue 277 */
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 5px;
|
||||
width: 100%;
|
||||
}
|
||||
ul.breadcrumb > li:before {
|
||||
content: " / ";
|
||||
}
|
||||
1
website/themes/monospace/parent
Normal file
1
website/themes/monospace/parent
Normal file
@@ -0,0 +1 @@
|
||||
bootstrap
|
||||
46
website/themes/monospace/templates/base.tmpl
Normal file
46
website/themes/monospace/templates/base.tmpl
Normal file
@@ -0,0 +1,46 @@
|
||||
## -*- coding: utf-8 -*-
|
||||
<%namespace name="base" file="base_helper.tmpl" import="*"/>
|
||||
<%namespace name="bootstrap" file="bootstrap_helper.tmpl" import="*" />
|
||||
${set_locale(lang)}
|
||||
<!DOCTYPE html>
|
||||
<html lang="${lang}">
|
||||
<head>
|
||||
${bootstrap.html_head()}
|
||||
<%block name="extra_head">
|
||||
</%block>
|
||||
${extra_head_data}
|
||||
</head>
|
||||
<body class="home blog">
|
||||
<div id="wrap" style="width:850px">
|
||||
<div id="container" style="width:560px">
|
||||
<%block name="content"></%block>
|
||||
</div>
|
||||
<div id="sidebar">
|
||||
<!--Sidebar content-->
|
||||
<h1 id="blog-title">
|
||||
<a href="${abs_link('/')}" title="${blog_title}">${blog_title}</a>
|
||||
</h1>
|
||||
<%block name="belowtitle">
|
||||
%if len(translations) > 1:
|
||||
<small>
|
||||
${messages("Also available in")}:
|
||||
${base.html_translations()}
|
||||
</small>
|
||||
%endif
|
||||
</%block>
|
||||
<ul class="unstyled">
|
||||
<li>${license}
|
||||
${base.html_social()}
|
||||
${bootstrap.html_navigation_links()}
|
||||
<li>${search_form}
|
||||
</ul>
|
||||
</div>
|
||||
<div id="footer">
|
||||
${content_footer}
|
||||
</div>
|
||||
</div>
|
||||
${bootstrap.late_load_js()}
|
||||
<script type="text/javascript">jQuery("a.image-reference").colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
|
||||
<%block name="extra_js"></%block>
|
||||
${body_end}
|
||||
</body>
|
||||
31
website/themes/monospace/templates/index.tmpl
Normal file
31
website/themes/monospace/templates/index.tmpl
Normal file
@@ -0,0 +1,31 @@
|
||||
## -*- 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="postbox">
|
||||
<h1><a href="${post.permalink()}">${post.title()}</a></h1>
|
||||
<div class="meta" style="background-color: rgb(234, 234, 234); ">
|
||||
<span class="authordate">
|
||||
${messages("Posted")}: <time class="published" datetime="${post.date.isoformat()}">${post.formatted_date(date_format)}</time>
|
||||
</span>
|
||||
<br>
|
||||
<span class="tags">Tags:
|
||||
%if post.tags:
|
||||
%for tag in post.tags:
|
||||
<a class="tag" href="${_link('tag', tag)}"><span>${tag}</span></a>
|
||||
%endfor
|
||||
%endif
|
||||
</span>
|
||||
</div>
|
||||
${post.text(teaser_only=index_teasers)}
|
||||
% if not post.meta('nocomments'):
|
||||
${comments.comment_link(post.permalink(), post.base_path)}
|
||||
% endif
|
||||
</div>
|
||||
% endfor
|
||||
${helper.html_pager()}
|
||||
${comments.comment_link_script()}
|
||||
${helper.mathjax_script(posts)}
|
||||
</%block>
|
||||
41
website/themes/monospace/templates/post.tmpl
Normal file
41
website/themes/monospace/templates/post.tmpl
Normal file
@@ -0,0 +1,41 @@
|
||||
## -*- coding: utf-8 -*-
|
||||
<%namespace name="helper" file="post_helper.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="post">
|
||||
${helper.html_title()}
|
||||
<div class="meta" style="background-color: rgb(234, 234, 234); ">
|
||||
<span class="authordate">
|
||||
${messages("Posted")}: <time class="published" datetime="${post.date.isoformat()}">${post.formatted_date(date_format)}</time>
|
||||
% if not post.meta('password'):
|
||||
[<a href="${post.source_link()}" id="sourcelink">${messages("Source")}</a>]
|
||||
% endif
|
||||
</span>
|
||||
<br>
|
||||
%if post.tags:
|
||||
<span class="tags">${messages("Tags")}:
|
||||
%for tag in post.tags:
|
||||
<a class="tag" href="${_link('tag', tag)}"><span>${tag}</span></a>
|
||||
%endfor
|
||||
</span>
|
||||
<br>
|
||||
%endif
|
||||
<span class="authordate">
|
||||
${helper.html_translations(post)}
|
||||
</span>
|
||||
</div>
|
||||
${post.text()}
|
||||
${helper.html_pager(post)}
|
||||
% if not post.meta('nocomments'):
|
||||
${comments.comment_form(post.permalink(absolute=True), post.title(), post.base_path)}
|
||||
% endif
|
||||
${helper.mathjax_script(post)}
|
||||
</div>
|
||||
</%block>
|
||||
Reference in New Issue
Block a user