aboutsummaryrefslogtreecommitdiffstats
path: root/new-bootstrap2/templates
diff options
context:
space:
mode:
authorKura <kura@kura.io>2014-06-09 14:11:01 +0100
committerKura <kura@kura.io>2014-06-09 14:11:01 +0100
commit520b94f9139818106ebcacdf341b84a7d5f2ef27 (patch)
treeeed50acbec4382e4c827a4bec1ba52ce22b171d1 /new-bootstrap2/templates
parent32607120f455d53c6da8b755bd2529abad715046 (diff)
parent8de98b30a54eb942c107d3a2d8c6908e9ed7049f (diff)
downloadpelican-themes-520b94f9139818106ebcacdf341b84a7d5f2ef27.tar.gz
Merge pull request #62 from infinitylx/master
Add new theme
Diffstat (limited to 'new-bootstrap2/templates')
-rw-r--r--new-bootstrap2/templates/analytics.html12
-rw-r--r--new-bootstrap2/templates/archives.html13
-rw-r--r--new-bootstrap2/templates/article.html47
-rw-r--r--new-bootstrap2/templates/article_infos.html17
-rw-r--r--new-bootstrap2/templates/author.html2
-rw-r--r--new-bootstrap2/templates/authors.html0
-rw-r--r--new-bootstrap2/templates/base.html122
-rw-r--r--new-bootstrap2/templates/categories.html8
-rw-r--r--new-bootstrap2/templates/category.html2
-rw-r--r--new-bootstrap2/templates/comments.html7
-rw-r--r--new-bootstrap2/templates/disqus_script.html16
-rw-r--r--new-bootstrap2/templates/footer.html7
-rw-r--r--new-bootstrap2/templates/github.html9
-rw-r--r--new-bootstrap2/templates/index.html60
-rw-r--r--new-bootstrap2/templates/metryka.html25
-rw-r--r--new-bootstrap2/templates/page.html13
-rw-r--r--new-bootstrap2/templates/pagination.html15
-rw-r--r--new-bootstrap2/templates/piwik.html16
-rw-r--r--new-bootstrap2/templates/search_sidebar.html15
-rw-r--r--new-bootstrap2/templates/shortmail.html9
-rw-r--r--new-bootstrap2/templates/sidebar.html55
-rw-r--r--new-bootstrap2/templates/tag.html2
-rw-r--r--new-bootstrap2/templates/taglist.html7
-rw-r--r--new-bootstrap2/templates/tags.html13
-rw-r--r--new-bootstrap2/templates/translations.html6
-rw-r--r--new-bootstrap2/templates/twitter.html6
-rw-r--r--new-bootstrap2/templates/twitter_profile.html1
27 files changed, 505 insertions, 0 deletions
diff --git a/new-bootstrap2/templates/analytics.html b/new-bootstrap2/templates/analytics.html
new file mode 100644
index 0000000..e293740
--- /dev/null
+++ b/new-bootstrap2/templates/analytics.html
@@ -0,0 +1,12 @@
+{% if GOOGLE_ANALYTICS %}
+<script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS }}']);
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+</script>
+{% endif %} \ No newline at end of file
diff --git a/new-bootstrap2/templates/archives.html b/new-bootstrap2/templates/archives.html
new file mode 100644
index 0000000..83976a1
--- /dev/null
+++ b/new-bootstrap2/templates/archives.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+{% block content %}
+<section id="content">
+<h1>Archives for {{ SITENAME }}</h1>
+
+<dl>
+{% for article in dates %}
+ <dt>{{ article.locale_date }}</dt>
+ <dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
+{% endfor %}
+</dl>
+</section>
+{% endblock %}
diff --git a/new-bootstrap2/templates/article.html b/new-bootstrap2/templates/article.html
new file mode 100644
index 0000000..358661d
--- /dev/null
+++ b/new-bootstrap2/templates/article.html
@@ -0,0 +1,47 @@
+{% extends "base.html" %}
+{% block title %}{{ article.title }}{% endblock %}
+{%- block content %}
+<div class="row">
+ <div class="span2">
+ <div class="well">
+ {% include 'article_infos.html' %}
+ </div>
+ </div>
+ <div class="span6">
+<section id="content" class="well">
+ <article>
+ <header>
+ <h1>
+ <a href="{{ pagename }}"
+ rel="bookmark"
+ title="Permalink to {{ article.title }}">
+ {{ article.title}}
+ </a>
+ {% include 'twitter.html' %}
+ </h1>
+ </header>
+ <div class="entry-content">
+
+ {{ article.content }}
+ </div><!-- /.entry-content -->
+ {% if DISQUS_SITENAME %}
+ <div class="comments">
+ <h2>Comments !</h2>
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ var disqus_identifier = "{{ article.url }}";
+ (function() {
+ var dsq = document.createElement('script');
+ dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] ||
+ document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+ </div>
+ {% endif %}
+ </article>
+</section>
+</div>
+</div>
+{% endblock %}
diff --git a/new-bootstrap2/templates/article_infos.html b/new-bootstrap2/templates/article_infos.html
new file mode 100644
index 0000000..f95a27b
--- /dev/null
+++ b/new-bootstrap2/templates/article_infos.html
@@ -0,0 +1,17 @@
+<footer class="post-info">
+<abbr class="published" title="{{ article.date.isoformat() }}">
+ <i class="icon-calendar"></i>&nbsp;{{ article.locale_date }}
+</abbr>
+{% if article.author %}
+<br/><a href="{{ SITEURL }}/{{ article.author.url }}"><i class="icon-user"></i>&nbsp;{{ article.author }}</a>
+{% endif %}
+
+{% if PDF_GENERATOR %}
+<span class="label">
+ <a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">PDF</a>
+</span>
+{% endif %}
+
+{% include 'taglist.html' %}
+{% include 'translations.html' %}
+</footer><!-- /.post-info -->
diff --git a/new-bootstrap2/templates/author.html b/new-bootstrap2/templates/author.html
new file mode 100644
index 0000000..0b37290
--- /dev/null
+++ b/new-bootstrap2/templates/author.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ author }}{% endblock %}
diff --git a/new-bootstrap2/templates/authors.html b/new-bootstrap2/templates/authors.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/new-bootstrap2/templates/authors.html
diff --git a/new-bootstrap2/templates/base.html b/new-bootstrap2/templates/base.html
new file mode 100644
index 0000000..37828b0
--- /dev/null
+++ b/new-bootstrap2/templates/base.html
@@ -0,0 +1,122 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <title>{% block title %}Blog about Me and my Linux{% endblock %} | {{ SITENAME }}</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="keywords" content="{{ KEYWORDS }}" />
+ <meta name="author" content="{{ AUTHOR }}" />
+ <meta name="kittycheck_rumble" content="true" />
+ <meta name="kittycheck_position" content="top=60,right=60" />
+
+ <!-- Le styles -->
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/bootstrap.min.css" type="text/css" />
+ <style type="text/css">
+ body {
+ padding-top: 60px;
+ padding-bottom: 40px;
+ }
+ .sidebar-nav {
+ padding: 9px 0;
+ }
+ .tag-1 {
+ font-size: 13pt;
+ }
+ .tag-2 {
+ font-size: 10pt;
+ }
+ .tag-2 {
+ font-size: 8pt;
+ }
+ .tag-4 {
+ font-size: 6pt;
+ }
+ </style>
+ <link href="{{ SITEURL }}/theme/css/bootstrap-responsive.min.css" rel="stylesheet">
+ <link href="{{ SITEURL }}/theme/css/font-awesome.css" rel="stylesheet">
+ <link href="{{ SITEURL }}/theme/css/pygments.css" rel="stylesheet">
+
+ <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+ <!--[if lt IE 9]>
+ <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+
+ <!-- Le fav and touch icons -->
+ <link rel="shortcut icon" href="{{ SITEURL }}/theme/img/favicon.ico">
+ <link rel="apple-touch-icon" href="{{ SITEURL }}/theme/img/apple-touch-icon.png">
+ <link rel="apple-touch-icon" sizes="72x72" href="{{ SITEURL }}/theme/img/apple-touch-icon-72x72.png">
+ <link rel="apple-touch-icon" sizes="114x114" href="{{ SITEURL }}/theme/img/apple-touch-icon-114x114.png">
+
+ <link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
+ {% if FEED_RSS %}
+ <link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
+ {% endif %}
+ </head>
+ <body>
+ {% include 'github.html' %}
+ <div class="navbar navbar-fixed-top">
+ <div class="navbar-inner">
+ <div class="container-fluid">
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </a>
+ <a class="brand" href="{{ SITEURL }}/index.html">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a>
+ <div class="nav-collapse">
+ <ul class="nav">
+ {% for title, link in MENUITEMS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endfor %}
+ {% if DISPLAY_PAGES_ON_MENU %}
+ {% for gpage in PAGES %}
+ <li {% if page == gpage %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ gpage.url }}">{{ gpage.title }}</a></li>
+ {% endfor %}
+ <li class="divider-vertical"></li>
+ {% endif %}
+ {% for cat, null in categories %}
+ <li {% if cat == category %}class="active"{% endif %}>
+ <a href="{{ SITEURL }}/{{ cat.url }}">
+ <i class="icon-folder-open icon-large"></i>{{ cat }}
+ </a>
+ </li>
+ {% endfor %}
+ <ul class="nav pull-right">
+ <li><a href="{{ SITEURL }}/archives.html"><i class="icon-th-list"></i>Archives</a></li>
+ </ul>
+
+ </ul>
+ <!--<p class="navbar-text pull-right">Logged in as <a href="#">username</a></p>-->
+ </div><!--/.nav-collapse -->
+ </div>
+ </div>
+ </div>
+
+ <div class="container">
+ <div class="row">
+ <div class="span8" id="content">
+ {% block content %}
+ {% endblock %}
+ </div><!--/span-->
+ <div class="span3 well sidebar-nav" id="sidebar">
+ {% include 'sidebar.html' %}
+ </div><!--/.well -->
+
+ </div><!--/row-->
+
+ <hr>
+
+ {% include 'footer.html' %}
+ </div><!--/.fluid-container-->
+
+ {% include 'analytics.html' %}
+ {% include 'metryka.html' %}
+ {% include 'piwik.html' %}
+ {#% include 'disqus_script.html' %#}
+
+ <!-- Le javascript -->
+ <!-- Placed at the end of the document so the pages load faster -->
+ <script src="{{ SITEURL }}/theme/js/jquery-1.7.2.min.js"></script>
+ <script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script>
+ </body>
+</html>
diff --git a/new-bootstrap2/templates/categories.html b/new-bootstrap2/templates/categories.html
new file mode 100644
index 0000000..4a9088f
--- /dev/null
+++ b/new-bootstrap2/templates/categories.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+{% block content %}
+<ul>
+{% for category, articles in categories %}
+ <li><a href="{{ category.url }}">{{ category }}</a></li>
+{% endfor %}
+</ul>
+{% endblock %}
diff --git a/new-bootstrap2/templates/category.html b/new-bootstrap2/templates/category.html
new file mode 100644
index 0000000..56f8e93
--- /dev/null
+++ b/new-bootstrap2/templates/category.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
diff --git a/new-bootstrap2/templates/comments.html b/new-bootstrap2/templates/comments.html
new file mode 100644
index 0000000..8d25e1e
--- /dev/null
+++ b/new-bootstrap2/templates/comments.html
@@ -0,0 +1,7 @@
+{% if DISQUS_SITENAME %}
+ <p>There are
+ <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">
+ comments
+ </a>.
+ </p>
+{% endif %}
diff --git a/new-bootstrap2/templates/disqus_script.html b/new-bootstrap2/templates/disqus_script.html
new file mode 100644
index 0000000..e0940cd
--- /dev/null
+++ b/new-bootstrap2/templates/disqus_script.html
@@ -0,0 +1,16 @@
+{% if DISQUS_SITENAME %}
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
+ var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
+
+ /* * * DON'T EDIT BELOW THIS LINE * * */
+ (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>
+<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
+{% endif %} \ No newline at end of file
diff --git a/new-bootstrap2/templates/footer.html b/new-bootstrap2/templates/footer.html
new file mode 100644
index 0000000..69cbedc
--- /dev/null
+++ b/new-bootstrap2/templates/footer.html
@@ -0,0 +1,7 @@
+{% if FOOTER_NOTE %}
+<footer>
+ <address id="about">
+ {{ FOOTER_NOTE }}
+ </address><!-- /#about -->
+</footer>
+{% endif %} \ No newline at end of file
diff --git a/new-bootstrap2/templates/github.html b/new-bootstrap2/templates/github.html
new file mode 100644
index 0000000..1689115
--- /dev/null
+++ b/new-bootstrap2/templates/github.html
@@ -0,0 +1,9 @@
+{% if GITHUB_URL %}
+<a href="{{ GITHUB_URL }}" class="visible-desktop">
+{% if GITHUB_POSITION != "left" %}
+<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 9999;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" />
+{% else %}
+<img style="position: absolute; top: 0; left: 0; border: 0;z-index: 9999;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork me on GitHub" />
+{% endif %}
+</a>
+{% endif %}
diff --git a/new-bootstrap2/templates/index.html b/new-bootstrap2/templates/index.html
new file mode 100644
index 0000000..4d11a80
--- /dev/null
+++ b/new-bootstrap2/templates/index.html
@@ -0,0 +1,60 @@
+{% extends "base.html" %}
+{% block content_title %}{% endblock %}
+{%- block content %}
+<div class="row">
+{% if articles %}
+ {% for article in (articles_page.object_list if articles_page else articles) %}
+ <div class="span2">
+ <div class="well small">{% include "article_infos.html" %}</div>
+ </div>
+ <div class="span6">
+ <div class="article well">
+ <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
+ <div class="summary">{{ article.summary }}
+ <a class="btn btn-small" href="{{ SITEURL }}/{{ article.url }}">more ...</a>
+ </div>
+ </div>
+ </div>
+ <div class="span8">
+ <hr />
+ </div>
+ {% endfor %}
+{% endif %}
+
+<div class="span6">
+{% if articles_page and articles_paginator.num_pages > 1 %}
+<div class="pagination">
+<ul>
+ {% if articles_page.has_previous() %}
+ {% set num = articles_page.previous_page_number() %}
+ <li class="prev"><a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">&larr; Previous</a></li>
+ {% else %}
+ <li class="prev disabled"><a href="#">&larr; Previous</a></li>
+ {% endif %}
+ {% for num in range( 1, 1 + articles_paginator.num_pages ) %}
+ <li class="{{ 'active' if num == articles_page.number else '' }}"><a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">{{ num }}</a></li>
+ {% endfor %}
+ {% if articles_page.has_next() %}
+ <li class="next"><a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">Next &rarr;</a></li>
+ {% else %}
+ <li class="next disabled"><a href="#">&rarr; Next</a></li>
+ {% endif %}
+</ul>
+</div>
+{#
+{% else %}
+ {% if PAGES %}
+ <section id="content" class="body">
+ <h3>Pages</h3>
+ <ul class="nav nav-list">
+ {% for page in PAGES %}
+ <li><div><i class="icon-external-link"></i><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></div></li>
+ {% endfor %}
+ </ul>
+ </section>
+ {% endif %}
+#}
+{% endif %}
+</div>
+</div>
+{% endblock content %}
diff --git a/new-bootstrap2/templates/metryka.html b/new-bootstrap2/templates/metryka.html
new file mode 100644
index 0000000..7fe1871
--- /dev/null
+++ b/new-bootstrap2/templates/metryka.html
@@ -0,0 +1,25 @@
+{% if YANDEX_METRYKA %}
+<!-- Yandex.Metrika counter -->
+<script type="text/javascript">
+(function (d, w, c) {
+ (w[c] = w[c] || []).push(function() {
+ try {
+ w.yaCounter{{ YANDEX_METRYKA }} = new Ya.Metrika({id:{{ YANDEX_METRYKA }}, enableAll: true, trackHash:true});
+ } catch(e) { }
+ });
+
+ var n = d.getElementsByTagName("script")[0],
+ s = d.createElement("script"),
+ f = function () { n.parentNode.insertBefore(s, n); };
+ s.type = "text/javascript";
+ s.async = true;
+ s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
+
+ if (w.opera == "[object Opera]") {
+ d.addEventListener("DOMContentLoaded", f);
+ } else { f(); }
+})(document, window, "yandex_metrika_callbacks");
+</script>
+<noscript><div><img src="//mc.yandex.ru/watch/{{ YANDEX_METRYKA }}" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
+<!-- /Yandex.Metrika counter -->
+{% endif %} \ No newline at end of file
diff --git a/new-bootstrap2/templates/page.html b/new-bootstrap2/templates/page.html
new file mode 100644
index 0000000..a7ef6ce
--- /dev/null
+++ b/new-bootstrap2/templates/page.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+{% block title %}{{ page.title }}{% endblock %}
+{% block content %}
+<section id="content" class="body well">
+ <h1 class="entry-title">{{ page.title }}</h1>
+ {% if PDF_GENERATOR %}
+ <a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">
+ get the pdf
+ </a>
+ {% endif %}
+ {{ page.content }}
+</section>
+{% endblock %}
diff --git a/new-bootstrap2/templates/pagination.html b/new-bootstrap2/templates/pagination.html
new file mode 100644
index 0000000..83c587a
--- /dev/null
+++ b/new-bootstrap2/templates/pagination.html
@@ -0,0 +1,15 @@
+{% if DEFAULT_PAGINATION %}
+<p class="paginator">
+ {% if articles_page.has_previous() %}
+ {% if articles_page.previous_page_number() == 1 %}
+ <a href="{{ SITEURL }}/{{ page_name }}.html">&laquo;</a>
+ {% else %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">&laquo;</a>
+ {% endif %}
+ {% endif %}
+ Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
+ {% if articles_page.has_next() %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">&raquo;</a>
+ {% endif %}
+</p>
+{% endif %}
diff --git a/new-bootstrap2/templates/piwik.html b/new-bootstrap2/templates/piwik.html
new file mode 100644
index 0000000..2202089
--- /dev/null
+++ b/new-bootstrap2/templates/piwik.html
@@ -0,0 +1,16 @@
+{% if PIWIK_URL and PIWIK_SITE_ID %}
+<script type="text/javascript">
+{% if PIWIK_SSL_URL %}
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://{{ PIWIK_SSL_URL }}/" : "http://{{ PIWIK_URL }}/");
+{% else %}
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://{{ PIWIK_URL }}/" : "http://{{ PIWIK_URL }}/");
+{% endif %}
+document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+</script><script type="text/javascript">
+try {
+var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {{ PIWIK_SITE_ID }});
+piwikTracker.trackPageView();
+piwikTracker.enableLinkTracking();
+} catch( err ) {}
+</script><noscript><p><img src="http://{{ PIWIK_URL }}/piwik.php?idsite={{ PIWIK_SITE_ID }}" style="border:0" alt="" /></p></noscript>
+{% endif %} \ No newline at end of file
diff --git a/new-bootstrap2/templates/search_sidebar.html b/new-bootstrap2/templates/search_sidebar.html
new file mode 100644
index 0000000..24fdaad
--- /dev/null
+++ b/new-bootstrap2/templates/search_sidebar.html
@@ -0,0 +1,15 @@
+{% if GOOGLE_CUSTOM_SEARCH_SIDEBAR %}
+<li class="nav-header"><h4><i class="icon-search"></i>Google Search</h4></li>
+<div id="cse" style="width: 100%;">Loading</div>
+<script src="http://www.google.com/jsapi" type="text/javascript"></script>
+<script type="text/javascript">
+ google.load('search', '1');
+ google.setOnLoadCallback(function() {
+ var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl(
+ '{{GOOGLE_CUSTOM_SEARCH_SIDEBAR}}', customSearchOptions);
+ customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
+ customSearchControl.draw('cse');
+ }, true);
+</script>
+<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
+{% endif %}
diff --git a/new-bootstrap2/templates/shortmail.html b/new-bootstrap2/templates/shortmail.html
new file mode 100644
index 0000000..a1ae8a7
--- /dev/null
+++ b/new-bootstrap2/templates/shortmail.html
@@ -0,0 +1,9 @@
+{% if SHORT_MAIL %}
+<div class="shortmail-compose-widget"></div>
+<script src="http://shortmail.com/widgets/compose-widget.js?v=1"></script>
+<script>
+ Shortmail.ComposeWidget({
+ screenName: '{{ SHORT_MAIL }}'
+ });
+</script>
+{% endif %} \ No newline at end of file
diff --git a/new-bootstrap2/templates/sidebar.html b/new-bootstrap2/templates/sidebar.html
new file mode 100644
index 0000000..e4ffcdd
--- /dev/null
+++ b/new-bootstrap2/templates/sidebar.html
@@ -0,0 +1,55 @@
+<ul class="nav nav-list">
+{% if LINKS %}
+<li class="nav-header"><h4><i class="icon-external-link"></i>blogroll</h4></li>
+{% for name, link in LINKS %}
+ <li><div><i class="icon-external-link"></i><a href="{{ link }}">{{ name }}</a></div></li>
+{% endfor %}
+{% endif %}
+{% if SOCIAL %}
+<li class="nav-header"><h4><i class="icon-home icon-large"></i> social</h4></li>
+<li><a href="{{ SITEURL }}/{{ FEED_ATOM }}" rel="alternate"><i class="icon-bookmark icon-large"></i>atom feed</a></li>
+{% if FEED_RSS %}
+<li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate"><i class="icon-bookmark icon-large"></i>rss feed</a></li>
+{% endif %}
+{% for name, link in SOCIAL %}
+ <li><a href="{{ link }}"><i class="icon-{{ name }}-sign icon-large"></i>{{ name }}</a></li>
+{% endfor %}
+{% endif %}
+
+<li class="nav-header"><h4><i class="icon-folder-close icon-large"></i>Categories</h4></li>
+{% for cat, null in categories %}
+<li>
+<a href="{{ SITEURL }}/{{ cat.url }}">
+ <i class="icon-folder-open icon-large"></i>{{ cat }}
+</a>
+</li>
+{% endfor %}
+
+<li class="nav-header"><a href="{{ SITEURL }}/tags.html"><h4><i class="icon-tags icon-large"></i>Tags</h4></a></li>
+{# <li>
+<div id="tags">
+ <ul>#}
+{% for tag in tag_cloud %}
+ <li class="tag-{{ tag.1 }}">
+ <a href="{{ SITEURL }}/{{ tag.0.url }}">
+ <i class="icon-tag icon-large"></i>{{ tag.0 }}
+ </a>
+ </li>
+{% endfor %}
+{# </ul>
+</div>
+<div id="myCanvasContainer">
+ <canvas width="230" height="230" id="myCanvas">
+ <p>Anything in here will be replaced on browsers that support the canvas element</p>
+ </canvas>
+</div>
+</li>#}
+
+{% include 'twitter_profile.html' %}
+{% include 'shortmail.html' %}
+{% include 'search_sidebar.html' %}
+
+{% if SIDEBAR_CUSTOM %}
+ {{ SIDEBAR_CUSTOM }}
+{% endif %}
+</ul>
diff --git a/new-bootstrap2/templates/tag.html b/new-bootstrap2/templates/tag.html
new file mode 100644
index 0000000..68cdcba
--- /dev/null
+++ b/new-bootstrap2/templates/tag.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
diff --git a/new-bootstrap2/templates/taglist.html b/new-bootstrap2/templates/taglist.html
new file mode 100644
index 0000000..fcc1b1d
--- /dev/null
+++ b/new-bootstrap2/templates/taglist.html
@@ -0,0 +1,7 @@
+{% if article.tags %}
+<br/>
+{#<span class="label">Tags</span>#}
+{%- for tag in article.tags %}
+ &nbsp;&nbsp;<a href="{{ SITEURL }}/{{ tag.url }}" class="label"><i class="icon-tag"></i>&nbsp;{{ tag }}</a>
+{% endfor %}
+{% endif %}
diff --git a/new-bootstrap2/templates/tags.html b/new-bootstrap2/templates/tags.html
new file mode 100644
index 0000000..862eff6
--- /dev/null
+++ b/new-bootstrap2/templates/tags.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+{% block content %}
+<ul>
+<li class="nav-header"><h4><i class="icon-tags icon-large"></i>Tags</h4></li>
+{% for tag in tag_cloud %}
+<li class="tag-{{ tag.1 }}">
+ <a href="{{ SITEURL }}/{{ tag.0.url }}">
+ <i class="icon-tag icon-large"></i>{{ tag.0 }}
+ </a>
+</li>
+{% endfor %}
+</ul>
+{% endblock %}
diff --git a/new-bootstrap2/templates/translations.html b/new-bootstrap2/templates/translations.html
new file mode 100644
index 0000000..d705533
--- /dev/null
+++ b/new-bootstrap2/templates/translations.html
@@ -0,0 +1,6 @@
+{% if article.translations %}
+<span class="label">Lang</span>
+{% for translation in article.translations %}
+ <a href="{{ SITEURL }}/{{ translation.url }}"><i class="icon-edit"></i>{{ translation.lang }}</a>
+{% endfor %}
+{% endif %}
diff --git a/new-bootstrap2/templates/twitter.html b/new-bootstrap2/templates/twitter.html
new file mode 100644
index 0000000..b7a5fd8
--- /dev/null
+++ b/new-bootstrap2/templates/twitter.html
@@ -0,0 +1,6 @@
+{% if TWITTER_USERNAME %}
+<a href="http://twitter.com/share" class="twitter-share-button"
+ data-count="horizontal" data-via="{{ TWITTER_USERNAME }}">Tweet</a>
+<script type="text/javascript" src="http://platform.twitter.com/widgets.js">
+</script>
+{% endif %}
diff --git a/new-bootstrap2/templates/twitter_profile.html b/new-bootstrap2/templates/twitter_profile.html
new file mode 100644
index 0000000..5d913e9
--- /dev/null
+++ b/new-bootstrap2/templates/twitter_profile.html
@@ -0,0 +1 @@
+{% if TWITTER_USERNAME %} <li class="nav-header"><h4><i class="icon-twitter-sign"></i>Twitter</h4></li> <script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script> <script> new TWTR.Widget({ version: 2, type: 'profile', rpp: 4, interval: 30000, width: 'auto', height: 300, theme: { shell: { background: '#f5f5f5', color: '#000000' }, tweets: { background: '#ffffff', color: '#000000', links: '#1a50a1' } }, features: { scrollbar: false, loop: false, live: false, behavior: 'all' } }).render().setUser('{{ TWITTER_USERNAME }}').start(); </script> {% endif %} \ No newline at end of file