diff options
Diffstat (limited to 'nikola/data/themes/default/templates')
| -rw-r--r-- | nikola/data/themes/default/templates/base.tmpl | 60 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/base_helper.tmpl | 106 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/disqus_helper.tmpl | 43 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/gallery.tmpl | 31 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/index.tmpl | 22 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/index_helper.tmpl | 21 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/list.tmpl | 14 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/list_post.tmpl | 14 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/listing.tmpl | 20 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/post.tmpl | 33 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/post_helper.tmpl | 73 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/story.tmpl | 16 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/tag.tmpl | 32 | ||||
| -rw-r--r-- | nikola/data/themes/default/templates/tags.tmpl | 12 |
14 files changed, 0 insertions, 497 deletions
diff --git a/nikola/data/themes/default/templates/base.tmpl b/nikola/data/themes/default/templates/base.tmpl deleted file mode 100644 index 72a4077..0000000 --- a/nikola/data/themes/default/templates/base.tmpl +++ /dev/null @@ -1,60 +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> - %if add_this_buttons: - <script type="text/javascript">var addthis_config={"ui_language":"${lang}"};</script> - % endif -<div class="container-fluid" id="container"> - <div class="row-fluid" id="titlerow"> - <div class="span12" id="titlecolumn"> - <!-- Banner-like substance !--> - <div class="titlebox"> - <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> - <hr> - </div> - <!-- End of banner-like substance !--> - <div class="row-fluid" id="contentrow"> - <div class="span10" id="contentcolumn"> - <!--Body content--> - <%block name="content"></%block> - <!--End of body content--> - <hr> - <small>${content_footer}</small> - </div> - <div class="span2" id="sidebar"> - <!--Sidebar content--> - <ul class="unstyled"> - <li>${license} - ${html_social()} - ${html_sidebar_links()} - <li>${search_form} - </ul> - <!--End of sidebar content--> - </div> - </div> - </div> - </div> -</div> - ${late_load_js()} - ${analytics} - <script type="text/javascript">jQuery("a.image-reference").colorbox({rel:"gal",maxWidth:"80%",maxHeight:"80%",scalePhotos:true});</script> -</body> diff --git a/nikola/data/themes/default/templates/base_helper.tmpl b/nikola/data/themes/default/templates/base_helper.tmpl deleted file mode 100644 index a833c51..0000000 --- a/nikola/data/themes/default/templates/base_helper.tmpl +++ /dev/null @@ -1,106 +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: - %if len(translations) > 1: - %for language in translations: - <link rel="alternate" type="application/rss+xml" title="RSS (${language})" href="${_link('rss', None, language)}"> - %endfor - %else: - <link rel="alternate" type="application/rss+xml" title="RSS" href="${_link('rss', None)}"> - %endif - %endif - %if favicons: - %for name, file, size in favicons: - <link rel="${name}" href="${file}" sizes="${size}"/> - %endfor - %endif -</%def> - -<%def name="late_load_js()"> - %if use_bundles: - %if use_cdn: - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> - <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script> - <script src="/assets/js/all.js" type="text/javascript"></script> - %else: - <script src="/assets/js/all-nocdn.js" type="text/javascript"></script> - %endif - %else: - %if use_cdn: - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> - <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script> - %else: - <script src="/assets/js/jquery-1.7.2.min.js" type="text/javascript"></script> - <script src="/assets/js/bootstrap.min.js" type="text/javascript"></script> - %endif - <script src="/assets/js/jquery.colorbox-min.js" type="text/javascript"></script> - %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/default/templates/disqus_helper.tmpl b/nikola/data/themes/default/templates/disqus_helper.tmpl deleted file mode 100644 index 4c60f85..0000000 --- a/nikola/data/themes/default/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/default/templates/gallery.tmpl b/nikola/data/themes/default/templates/gallery.tmpl deleted file mode 100644 index 09c25cc..0000000 --- a/nikola/data/themes/default/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> - % 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> - % 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> - %endfor - </ul> -%if enable_comments: - ${disqus.html_disqus(None, permalink, title)} -%endif -</%block> diff --git a/nikola/data/themes/default/templates/index.tmpl b/nikola/data/themes/default/templates/index.tmpl deleted file mode 100644 index b49e764..0000000 --- a/nikola/data/themes/default/templates/index.tmpl +++ /dev/null @@ -1,22 +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> - <small> - ${messages("Posted")}: <time class="published" datetime="${post.date.isoformat()}">${post.formatted_date(date_format)}</time> - </small></h1> - <hr> - ${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()} - ${helper.mathjax_script(post)} -</%block> diff --git a/nikola/data/themes/default/templates/index_helper.tmpl b/nikola/data/themes/default/templates/index_helper.tmpl deleted file mode 100644 index 7859972..0000000 --- a/nikola/data/themes/default/templates/index_helper.tmpl +++ /dev/null @@ -1,21 +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> - %endif - %if nextlink: - <li class="next"> - <a href="${nextlink}">${messages("Older posts")} →</a> - %endif -</ul> -</div> -</%def> - -<%def name="mathjax_script(post)"> - %if any(post.is_mathjax for post in posts): - <script src="/assets/js/mathjax.js" type="text/javascript"></script> - %endif -</%def> diff --git a/nikola/data/themes/default/templates/list.tmpl b/nikola/data/themes/default/templates/list.tmpl deleted file mode 100644 index a60b508..0000000 --- a/nikola/data/themes/default/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/default/templates/list_post.tmpl b/nikola/data/themes/default/templates/list_post.tmpl deleted file mode 100644 index f0e159d..0000000 --- a/nikola/data/themes/default/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/default/templates/listing.tmpl b/nikola/data/themes/default/templates/listing.tmpl deleted file mode 100644 index f279af0..0000000 --- a/nikola/data/themes/default/templates/listing.tmpl +++ /dev/null @@ -1,20 +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> - % endfor -</ul> -<ul class="unstyled"> -% for name in folders: - <li><a href="${name}"><i class="icon-folder-open"></i> ${name}</a> -% endfor -% for name in files: - <li><a href="${name}.html"><i class="icon-file"></i> ${name}</a> -% endfor -</ul> -% if code: - ${code} -% endif -</%block> diff --git a/nikola/data/themes/default/templates/post.tmpl b/nikola/data/themes/default/templates/post.tmpl deleted file mode 100644 index f9e24d2..0000000 --- a/nikola/data/themes/default/templates/post.tmpl +++ /dev/null @@ -1,33 +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="extra_head"> -${helper.twitter_card_information(post)} -</%block> -<%block name="content"> - <div class="postbox"> - ${helper.html_title()} - <hr> - <small> - ${messages("Posted")}: <time class="published" datetime="${post.date.isoformat()}">${post.formatted_date(date_format)}</time> - ${helper.html_translations(post)} - ${helper.html_tags(post)} - </small> - <hr> - ${post.text()} - ${helper.html_pager(post)} - % if not post.meta('nocomments'): - ${disqus.html_disqus(post.permalink(absolute=True), post.title(), post.base_path)} - % endif - ${helper.mathjax_script(post)} - </div> -</%block> - -<%block name="sourcelink"> -% if not post.meta('password'): - <li> - <a href="${post.meta('slug')+post.source_ext()}" id="sourcelink">${messages("Source")}</a> - </li> -% endif -</%block> diff --git a/nikola/data/themes/default/templates/post_helper.tmpl b/nikola/data/themes/default/templates/post_helper.tmpl deleted file mode 100644 index cce0ecf..0000000 --- a/nikola/data/themes/default/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/default/templates/story.tmpl b/nikola/data/themes/default/templates/story.tmpl deleted file mode 100644 index c1c06d8..0000000 --- a/nikola/data/themes/default/templates/story.tmpl +++ /dev/null @@ -1,16 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="post.tmpl"/> -<%namespace name="helper" file="post_helper.tmpl"/> -<%namespace name="disqus" file="disqus_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/default/templates/tag.tmpl b/nikola/data/themes/default/templates/tag.tmpl deleted file mode 100644 index 7fb43c0..0000000 --- a/nikola/data/themes/default/templates/tag.tmpl +++ /dev/null @@ -1,32 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="list_post.tmpl"/> -<%block name="extra_head"> - %if len(translations) > 1: - %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 - %else: - <link rel="alternate" type="application/rss+xml" type="application/rss+xml" title="RSS for tag ${tag}" href="${_link("tag_rss", tag)}"> - %endif -</%block> - -<%block name="content"> - <!--Body content--> - <div class="postbox"> - <h1>${title}</h1> - %if len(translations) > 1: - %for language in translations: - <a href="${_link("tag_rss", tag, language)}">RSS (${language})</a> - %endfor - %else: - <a href="${_link("tag_rss", tag)}">RSS</a> - %endif - <br> - <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/default/templates/tags.tmpl b/nikola/data/themes/default/templates/tags.tmpl deleted file mode 100644 index 5727dc5..0000000 --- a/nikola/data/themes/default/templates/tags.tmpl +++ /dev/null @@ -1,12 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="base.tmpl"/> -<%block name="content"> - <!--Body content--> - <h1>${title}</h1> - <ul class="unstyled bricks"> - % for text, link in items: - <li><a class="reference" href="${link}">${text}</a></li> - % endfor - </ul> - <!--End of body content--> -</%block> |
