diff options
| author | 2013-11-20 16:58:50 -0300 | |
|---|---|---|
| committer | 2013-11-20 16:58:50 -0300 | |
| commit | ca94afc07df55cb7fc6fe3b4f3011877b7881195 (patch) | |
| tree | d81e1f275aa77545f33740723f307a83dde2e0b4 /nikola/data/themes/monospace | |
| parent | f794eee787e9cde54e6b8f53e45d69c9ddc9936a (diff) | |
Imported Upstream version 6.2.1upstream/6.2.1
Diffstat (limited to 'nikola/data/themes/monospace')
17 files changed, 0 insertions, 757 deletions
diff --git a/nikola/data/themes/monospace/assets/css/rst.css b/nikola/data/themes/monospace/assets/css/rst.css deleted file mode 100644 index cf73111..0000000 --- a/nikola/data/themes/monospace/assets/css/rst.css +++ /dev/null @@ -1,312 +0,0 @@ -/* -:Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7514 2012-09-14 14:27:12Z milde $ -:Copyright: This stylesheet has been placed in the public domain. - -Default cascading style sheet for the HTML output of Docutils. - -See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to -customize this style sheet. -*/ - -/* used to remove borders from tables and images */ -.borderless, table.borderless td, table.borderless th { - border: 0 } - -table.borderless td, table.borderless th { - /* Override padding for "table.docutils td" with "! important". - The right padding separates the table cells. */ - padding: 0 0.5em 0 0 ! important } - -.first { - /* Override more specific margin styles with "! important". */ - margin-top: 0 ! important } - -.last, .with-subtitle { - margin-bottom: 0 ! important } - -.hidden { - display: none } - -a.toc-backref { - text-decoration: none ; - color: black } - -blockquote.epigraph { - margin: 2em 5em ; } - -dl.docutils dd { - margin-bottom: 0.5em } - -object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { - overflow: hidden; -} - -/* Uncomment (and remove this text!) to get bold-faced definition list terms -dl.docutils dt { - font-weight: bold } -*/ - -div.abstract { - margin: 2em 5em } - -div.abstract p.topic-title { - font-weight: bold ; - text-align: center } - -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - margin: 2em ; - border: medium outset ; - padding: 1em } - -div.admonition p.admonition-title, div.hint p.admonition-title, -div.important p.admonition-title, div.note p.admonition-title, -div.tip p.admonition-title { - font-weight: bold ; - font-family: sans-serif } - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title, .code .error { - color: red ; - font-weight: bold ; - font-family: sans-serif } - -/* Uncomment (and remove this text!) to get reduced vertical space in - compound paragraphs. -div.compound .compound-first, div.compound .compound-middle { - margin-bottom: 0.5em } - -div.compound .compound-last, div.compound .compound-middle { - margin-top: 0.5em } -*/ - -div.dedication { - margin: 2em 5em ; - text-align: center ; - font-style: italic } - -div.dedication p.topic-title { - font-weight: bold ; - font-style: normal } - -div.figure { - margin-left: 2em ; - margin-right: 2em } - -div.footer, div.header { - clear: both; - font-size: smaller } - -div.line-block { - display: block ; - margin-top: 1em ; - margin-bottom: 1em } - -div.line-block div.line-block { - margin-top: 0 ; - margin-bottom: 0 ; - margin-left: 1.5em } - -div.sidebar { - margin: 0 0 0.5em 1em ; - border: medium outset ; - padding: 1em ; - background-color: #ffffee ; - width: 40% ; - float: right ; - clear: right } - -div.sidebar p.rubric { - font-family: sans-serif ; - font-size: medium } - -div.system-messages { - margin: 5em } - -div.system-messages h1 { - color: red } - -div.system-message { - border: medium outset ; - padding: 1em } - -div.system-message p.system-message-title { - color: red ; - font-weight: bold } - -div.topic { - margin: 2em } - -h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, -h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { - margin-top: 0.4em } - -h1.title { - text-align: center } - -h2.subtitle { - text-align: center } - -hr.docutils { - width: 75% } - -img.align-left, .figure.align-left, object.align-left { - clear: left ; - float: left ; - margin-right: 1em } - -img.align-right, .figure.align-right, object.align-right { - clear: right ; - float: right ; - margin-left: 1em } - -img.align-center, .figure.align-center, object.align-center { - display: block; - margin-left: auto; - margin-right: auto; -} - -.align-left { - text-align: left } - -.align-center { - clear: both ; - text-align: center } - -.align-right { - text-align: right } - -/* reset inner alignment in figures */ -div.align-right { - text-align: inherit } - -/* div.align-center * { */ -/* text-align: left } */ - -ol.simple, ul.simple { - margin-bottom: 1em } - -ol.arabic { - list-style: decimal } - -ol.loweralpha { - list-style: lower-alpha } - -ol.upperalpha { - list-style: upper-alpha } - -ol.lowerroman { - list-style: lower-roman } - -ol.upperroman { - list-style: upper-roman } - -p.attribution { - text-align: right ; - margin-left: 50% } - -p.caption { - font-style: italic } - -p.credits { - font-style: italic ; - font-size: smaller } - -p.label { - white-space: nowrap } - -p.rubric { - font-weight: bold ; - font-size: larger ; - color: maroon ; - text-align: center } - -p.sidebar-title { - font-family: sans-serif ; - font-weight: bold ; - font-size: larger } - -p.sidebar-subtitle { - font-family: sans-serif ; - font-weight: bold } - -p.topic-title { - font-weight: bold } - -pre.address { - margin-bottom: 0 ; - margin-top: 0 ; - font: inherit } - -pre.literal-block, pre.doctest-block, pre.math, pre.code { - margin-left: 2em ; - margin-right: 2em } - -pre.code .ln { color: grey; } /* line numbers */ -pre.code, code { background-color: #eeeeee } -pre.code .comment, code .comment { color: #5C6576 } -pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } -pre.code .literal.string, code .literal.string { color: #0C5404 } -pre.code .name.builtin, code .name.builtin { color: #352B84 } -pre.code .deleted, code .deleted { background-color: #DEB0A1} -pre.code .inserted, code .inserted { background-color: #A3D289} - -span.classifier { - font-family: sans-serif ; - font-style: oblique } - -span.classifier-delimiter { - font-family: sans-serif ; - font-weight: bold } - -span.interpreted { - font-family: sans-serif } - -span.option { - white-space: nowrap } - -span.pre { - white-space: pre } - -span.problematic { - color: red } - -span.section-subtitle { - /* font-size relative to parent (h1..h6 element) */ - font-size: 80% } - -table.citation { - border-left: solid 1px gray; - margin-left: 1px } - -table.docinfo { - margin: 2em 4em } - -table.docutils { - margin-top: 0.5em ; - margin-bottom: 0.5em } - -table.footnote { - border-left: solid 1px black; - margin-left: 1px } - -table.docutils td, table.docutils th, -table.docinfo td, table.docinfo th { - padding-left: 0.5em ; - padding-right: 0.5em ; - vertical-align: top } - -table.docutils th.field-name, table.docinfo th.docinfo-name { - font-weight: bold ; - text-align: left ; - white-space: nowrap ; - padding-left: 0 } - -h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, -h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { - font-size: 100% } - -ul.auto-toc { - list-style-type: none } diff --git a/nikola/data/themes/monospace/assets/css/theme.css b/nikola/data/themes/monospace/assets/css/theme.css deleted file mode 100644 index b9c0cf2..0000000 --- a/nikola/data/themes/monospace/assets/css/theme.css +++ /dev/null @@ -1,14 +0,0 @@ -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;} diff --git a/nikola/data/themes/monospace/bundles b/nikola/data/themes/monospace/bundles deleted file mode 100644 index 4760181..0000000 --- a/nikola/data/themes/monospace/bundles +++ /dev/null @@ -1,2 +0,0 @@ -assets/css/all.css=rst.css,code.css,theme.css -assets/css/all-nocdn.css=rst.css,code.css,theme.css diff --git a/nikola/data/themes/monospace/templates/base.tmpl b/nikola/data/themes/monospace/templates/base.tmpl deleted file mode 100644 index 806795d..0000000 --- a/nikola/data/themes/monospace/templates/base.tmpl +++ /dev/null @@ -1,45 +0,0 @@ -## -*- coding: utf-8 -*- -<%namespace file="base_helper.tmpl" import="*"/> -${set_locale(lang)} -<!DOCTYPE html> -<html lang="${lang}"> -<head> - ${html_head()} - <%block name="extra_head"> - </%block> - ${extra_head_data} -</head> -<body class="home blog"> - %if add_this_buttons: - <script type="text/javascript">var addthis_config={"ui_language":"${lang}"};</script> - % endif - <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"))}: - ${html_translations()} - </small> - %endif - </%block> - <ul class="unstyled"> - <li>${license} - ${html_social()} - ${html_sidebar_links()} - <li>${search_form} - </ul> - </div> - <div id="footer"> - ${content_footer} - </div> - </div> - ${analytics} -</body> diff --git a/nikola/data/themes/monospace/templates/base_helper.tmpl b/nikola/data/themes/monospace/templates/base_helper.tmpl deleted file mode 100644 index 4f3e45b..0000000 --- a/nikola/data/themes/monospace/templates/base_helper.tmpl +++ /dev/null @@ -1,82 +0,0 @@ -## -*- coding: utf-8 -*- -<%def name="html_head()"> - <meta charset="utf-8"> - <meta name="description" content="${description}" > - <meta name="author" content="${blog_author}"> - <title>${title} | ${blog_title}</title> - ${mathjax_config} - %if use_bundles: - %if use_cdn: - <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css" rel="stylesheet"> - <link href="/assets/css/all.css" rel="stylesheet" type="text/css"> - %else: - <link href="/assets/css/all-nocdn.css" rel="stylesheet" type="text/css"> - %endif - %else: - %if use_cdn: - <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css" rel="stylesheet"> - %else: - <link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css"> - <link href="/assets/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> - %endif - <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/colorbox.css" rel="stylesheet" type="text/css"/> - <link href="/assets/css/theme.css" rel="stylesheet" type="text/css"/> - %if has_custom_css: - <link href="/assets/css/custom.css" rel="stylesheet" type="text/css"> - %endif - %endif - <!--[if lt IE 9]> - <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script> - <![endif]--> - %if rss_link: - ${rss_link} - %else: - %for language in translations: - <link rel="alternate" type="application/rss+xml" title="RSS (${language})" href="${_link('rss', None, language)}"> - %endfor - %endif - %if favicons: - %for name, file, size in favicons: - <link rel="${name}" href="${file}" sizes="${size}"/> - %endfor - %endif -</%def> - - -<%def name="html_social()"> -%if add_this_buttons: - <!-- Social buttons --> - <div id="addthisbox" class="addthis_toolbox addthis_peekaboo_style addthis_default_style addthis_label_style addthis_32x32_style"> - <a class="addthis_button_more">Share</a> - <ul><li><a class="addthis_button_facebook"></a> - <li><a class="addthis_button_google_plusone_share"></a> - <li><a class="addthis_button_linkedin"></a> - <li><a class="addthis_button_twitter"></a> - </ul> - </div> - <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f7088a56bb93798"></script> - <!-- End of social buttons --> -%endif -</%def> - - -<%def name="html_sidebar_links()"> - %for url, text in sidebar_links[lang]: - % if rel_link(permalink, url) == "#": - <li class="active"><a href="${url}">${text}</a> - %else: - <li><a href="${url}">${text}</a> - %endif - %endfor -</%def> - - -<%def name="html_translations()"> - %for langname in translations.keys(): - %if langname != lang: - <a href="${_link("index", None, langname)}">${messages("LANGUAGE", langname)}</a> - %endif - %endfor -</%def> diff --git a/nikola/data/themes/monospace/templates/disqus_helper.tmpl b/nikola/data/themes/monospace/templates/disqus_helper.tmpl deleted file mode 100644 index 4c60f85..0000000 --- a/nikola/data/themes/monospace/templates/disqus_helper.tmpl +++ /dev/null @@ -1,43 +0,0 @@ -## -*- coding: utf-8 -*- -<%! - import json - translations = { - 'es': 'es_ES', - } -%> -<%def name="html_disqus(url, title, identifier)"> - %if disqus_forum: - <div id="disqus_thread"></div> - <script type="text/javascript"> - var disqus_shortname ="${disqus_forum}"; - %if url: - var disqus_url="${url}"; - %endif - var disqus_title=${json.dumps(title)}; - var disqus_identifier="${identifier}"; - var disqus_config = function () { - this.language = "${translations.get(lang, lang)}"; - }; - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> - %endif -</%def> - -<%def name="html_disqus_link(link, identifier)"> - <p> - %if disqus_forum: - <a href="${link}" data-disqus-identifier="${identifier}">Comments</a> - %endif -</%def> - - -<%def name="html_disqus_script()"> - %if disqus_forum: - <script type="text/javascript">var disqus_shortname="${disqus_forum}";(function(){var a=document.createElement("script");a.async=true;a.type="text/javascript";a.src="http://"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("HEAD")[0]||document.getElementsByTagName("BODY")[0]).appendChild(a)}());</script> - %endif -</%def> diff --git a/nikola/data/themes/monospace/templates/gallery.tmpl b/nikola/data/themes/monospace/templates/gallery.tmpl deleted file mode 100644 index 3186cc8..0000000 --- a/nikola/data/themes/monospace/templates/gallery.tmpl +++ /dev/null @@ -1,31 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="base.tmpl"/> -<%namespace name="disqus" file="disqus_helper.tmpl"/> -<%block name="sourcelink"></%block> - -<%block name="content"> - <ul class="breadcrumb"> - % for link, crumb in crumbs: - <li><a href="${link}">/ ${crumb}</a></li> - % endfor - </ul> - %if text: - <p> - ${text} - </p> - %endif - <ul> - % for folder in folders: - <li><a href="${folder}"><i class="icon-folder-open"></i> ${folder}</a></li> - % endfor - </ul> - <ul class="thumbnails"> - %for image in images: - <li><a href="${image[0]}" class="thumbnail image-reference" ${image[2]}> - <img src="${image[1]}" /></a></li> - %endfor - </ul> -%if enable_comments: - ${disqus.html_disqus(None, permalink, title)} -%endif -</%block> diff --git a/nikola/data/themes/monospace/templates/index.tmpl b/nikola/data/themes/monospace/templates/index.tmpl deleted file mode 100644 index 4a0c630..0000000 --- a/nikola/data/themes/monospace/templates/index.tmpl +++ /dev/null @@ -1,30 +0,0 @@ -## -*- coding: utf-8 -*- -<%namespace name="helper" file="index_helper.tmpl"/> -<%namespace name="disqus" file="disqus_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")}: ${post.formatted_date(date_format)} - </span> - <br> - <span class="tags">Tags: - %if post.tags: - %for tag in post.tags: - <a class="tag" href="${_link('tag', tag)}"><span class="badge badge-info">${tag}</span></a> - %endfor - %endif - </span> - </div> - ${post.text(teaser_only=index_teasers)} - % if not post.meta('nocomments'): - ${disqus.html_disqus_link(post.permalink()+"#disqus_thread", post.base_path)} - % endif - </div> - % endfor - ${helper.html_pager()} - ${disqus.html_disqus_script()} -</%block> diff --git a/nikola/data/themes/monospace/templates/index_helper.tmpl b/nikola/data/themes/monospace/templates/index_helper.tmpl deleted file mode 100644 index 1bb700c..0000000 --- a/nikola/data/themes/monospace/templates/index_helper.tmpl +++ /dev/null @@ -1,17 +0,0 @@ -## -*- coding: utf-8 -*- -<%def name="html_pager()"> -<div> -<ul class="pager"> - %if prevlink: - <li class="previous"> - <a href="${prevlink}">← ${messages("Newer posts")}</a> - </li> - %endif - %if nextlink: - <li class="next"> - <a href="${nextlink}">${messages("Older posts")} →</a> - </li> - %endif -</ul> -</div> -</%def> diff --git a/nikola/data/themes/monospace/templates/list.tmpl b/nikola/data/themes/monospace/templates/list.tmpl deleted file mode 100644 index a60b508..0000000 --- a/nikola/data/themes/monospace/templates/list.tmpl +++ /dev/null @@ -1,14 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="base.tmpl"/> -<%block name="content"> - <!--Body content--> - <div class="postbox"> - <h1>${title}</h1> - <ul class="unstyled"> - % for text, link in items: - <li><a href="${link}">${text}</a> - % endfor - </ul> - </div> - <!--End of body content--> -</%block> diff --git a/nikola/data/themes/monospace/templates/list_post.tmpl b/nikola/data/themes/monospace/templates/list_post.tmpl deleted file mode 100644 index f0e159d..0000000 --- a/nikola/data/themes/monospace/templates/list_post.tmpl +++ /dev/null @@ -1,14 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="base.tmpl"/> -<%block name="content"> - <!--Body content--> - <div class="postbox"> - <h1>${title}</h1> - <ul class="unstyled"> - % for post in posts: - <li><a href="${post.permalink()}">[${post.formatted_date(date_format)}] ${post.title()}</a> - % endfor - </ul> - </div> - <!--End of body content--> -</%block> diff --git a/nikola/data/themes/monospace/templates/listing.tmpl b/nikola/data/themes/monospace/templates/listing.tmpl deleted file mode 100644 index 596a704..0000000 --- a/nikola/data/themes/monospace/templates/listing.tmpl +++ /dev/null @@ -1,10 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="base.tmpl"/> -<%block name="content"> -<ul class="breadcrumb"> - % for link, crumb in crumbs: - <li><a href="${link}">/ ${crumb}</a></li> - % endfor -</ul> -${code} -</%block> diff --git a/nikola/data/themes/monospace/templates/post.tmpl b/nikola/data/themes/monospace/templates/post.tmpl deleted file mode 100644 index 0ec360d..0000000 --- a/nikola/data/themes/monospace/templates/post.tmpl +++ /dev/null @@ -1,34 +0,0 @@ -## -*- coding: utf-8 -*- -<%namespace name="helper" file="post_helper.tmpl"/> -<%namespace name="disqus" file="disqus_helper.tmpl"/> -<%inherit file="base.tmpl"/> -<%block name="content"> - <div class="post"> - ${helper.html_title()} - <div class="meta" style="background-color: rgb(234, 234, 234); "> - <span class="authordate"> - ${messages("Posted")}: ${post.formatted_date(date_format)} - % if not post.meta('password'): - [<a href="${post.meta('slug')+'.txt'}" 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 class="badge badge-info">${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'): - ${disqus.html_disqus(post.permalink(absolute=True), post.title(), post.base_path)} - % endif - </div> -</%block> diff --git a/nikola/data/themes/monospace/templates/post_helper.tmpl b/nikola/data/themes/monospace/templates/post_helper.tmpl deleted file mode 100644 index cce0ecf..0000000 --- a/nikola/data/themes/monospace/templates/post_helper.tmpl +++ /dev/null @@ -1,73 +0,0 @@ -## -*- coding: utf-8 -*- -<%def name="html_title()"> - <h1>${title}</h1> - % if link: - <p><a href='${link}'>${messages("Original site")}</a></p> - % endif -</%def> - - -<%def name="html_translations(post)"> - %if len(translations) > 1: - %for langname in translations.keys(): - %if langname != lang and post.is_translation_available(langname): - | - <a href="${post.permalink(langname)}">${messages("Read in English", langname)}</a> - %endif - %endfor - %endif -</%def> - - -<%def name="html_tags(post)"> - %if post.tags: - | ${messages("More posts about")} - %for tag in post.tags: - <a class="tag" href="${_link('tag', tag)}"><span class="badge badge-info">${tag}</span></a> - %endfor - %endif -</%def> - -<%def name="html_pager(post)"> - <ul class="pager"> - %if post.prev_post: - <li class="previous"> - <a href="${post.prev_post.permalink()}">← ${messages("Previous post")}</a> - </li> - %endif - %if post.next_post: - <li class="next"> - <a href="${post.next_post.permalink()}">${messages("Next post")} →</a> - </li> - %endif - </ul> -</%def> - -<%def name="twitter_card_information(post)"> - %if twitter_card and twitter_card['use_twitter_cards']: - <meta name="twitter:card" content="${twitter_card.get('card', 'summary')|h}"> - <meta name="og:url" content="${post.permalink(absolute=True)}"> - %if 'site:id' in twitter_card: - <meta name="twitter:site:id" content="${twitter_card['site:id']}"> - %elif 'site' in twitter_card: - <meta name="twitter:site" content="${twitter_card['site']}"> - %endif - %if 'creator:id' in twitter_card: - <meta name="twitter:creator:id" content="${twitter_card['creator:id']}"> - %elif 'creator' in twitter_card: - <meta name="twitter:creator" content="${twitter_card['creator']}"> - %endif - <meta name="og:title" content="${post.title()[:70]|h}"> - %if post.description(): - <meta name="og:description" content="${post.description()[:200]|h}"> - %else: - <meta name="og:description" content="${post.text(strip_html=True)[:200]|h}"> - %endif - %endif -</%def> - -<%def name="mathjax_script(post)"> - %if post.is_mathjax: - <script src="/assets/js/mathjax.js" type="text/javascript"></script> - %endif -</%def> diff --git a/nikola/data/themes/monospace/templates/story.tmpl b/nikola/data/themes/monospace/templates/story.tmpl deleted file mode 100644 index 21d0e2f..0000000 --- a/nikola/data/themes/monospace/templates/story.tmpl +++ /dev/null @@ -1,15 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="post.tmpl"/> -<%namespace name="helper" file="post_helper.tmpl"/> -<%block name="extra_head"> -${helper.twitter_card_information(post)} -</%block> -<%block name="content"> -%if title: - <h1>${title}</h1> -%endif - ${post.text()} -%if enable_comments and not post.meta('nocomments'): - ${disqus.html_disqus(post.permalink(absolute=True), post.title(), post.base_path)} -%endif -</%block> diff --git a/nikola/data/themes/monospace/templates/tag.tmpl b/nikola/data/themes/monospace/templates/tag.tmpl deleted file mode 100644 index 97aafeb..0000000 --- a/nikola/data/themes/monospace/templates/tag.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="list_post.tmpl"/> -<%block name="extra_head"> - %for language in translations: - <link rel="alternate" type="application/rss+xml" type="application/rss+xml" title="RSS for tag ${tag} (${language})" href="${_link("tag_rss", tag, language)}"> - %endfor -</%block> diff --git a/nikola/data/themes/monospace/templates/tags.tmpl b/nikola/data/themes/monospace/templates/tags.tmpl deleted file mode 100644 index 369a3d5..0000000 --- a/nikola/data/themes/monospace/templates/tags.tmpl +++ /dev/null @@ -1,14 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="base.tmpl"/> -<%block name="content"> - <div class="postbox"> - <!--Body content--> - <h1>${title}</h1> - <ul class="unstyled"> - % for text, link in items: - <li><a class="tag" href="${link}"><span class="badge badge-info">${text}</span></a> - % endfor - </ul> - <!--End of body content--> - </div> -</%block> |
