diff options
author | Alexis Metaireau <alexis@notmyidea.org> | 2012-03-27 15:39:48 -0700 |
---|---|---|
committer | Alexis Metaireau <alexis@notmyidea.org> | 2012-03-27 15:39:48 -0700 |
commit | 8cdc0ff6b9c9f25b29db996e5b51f7f99e11236e (patch) | |
tree | 6218570b2c68d9111ac23734563bddf585a65604 /bootstrap2/templates | |
parent | cc809c34841e0cb25cde42cff85528b05581e1a1 (diff) | |
parent | 6fa854a4396f51a85f58bbde329a5735173062c7 (diff) | |
download | pelican-themes-8cdc0ff6b9c9f25b29db996e5b51f7f99e11236e.tar.gz |
Merge pull request #17 from farseerfc/master
I made (yet another) bootstrap 2.0 theme
Diffstat (limited to 'bootstrap2/templates')
24 files changed, 462 insertions, 0 deletions
diff --git a/bootstrap2/templates/analytics.html b/bootstrap2/templates/analytics.html new file mode 100644 index 0000000..b96f455 --- /dev/null +++ b/bootstrap2/templates/analytics.html @@ -0,0 +1,11 @@ +{% if GOOGLE_ANALYTICS %} +<script type="text/javascript"> +var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); +document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); +</script> +<script type="text/javascript"> +try { + var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}"); +pageTracker._trackPageview(); +} catch(err) {}</script> +{% endif %}
\ No newline at end of file diff --git a/bootstrap2/templates/archives.html b/bootstrap2/templates/archives.html new file mode 100644 index 0000000..83976a1 --- /dev/null +++ b/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/bootstrap2/templates/article.html b/bootstrap2/templates/article.html new file mode 100644 index 0000000..8b9e0ab --- /dev/null +++ b/bootstrap2/templates/article.html @@ -0,0 +1,40 @@ +{% extends "base.html" %} +{% block title %}{{ article.title }}{% endblock %} +{% block content %} +<section id="content"> + <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"> + <div class="well"> + {% include 'article_infos.html' %} + </div> + {{ 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> +{% endblock %} diff --git a/bootstrap2/templates/article_infos.html b/bootstrap2/templates/article_infos.html new file mode 100644 index 0000000..0a6ce7a --- /dev/null +++ b/bootstrap2/templates/article_infos.html @@ -0,0 +1,21 @@ +<footer class="post-info"> +<span class="label">Date</span> +<abbr class="published" title="{{ article.date.isoformat() }}"> + <i class="icon-calendar"></i>{{ article.locale_date }} +</abbr> +{% if article.author %} +<span class="label">By</span> +<a href="{{ SITEURL }}/{{ article.author.url }}"><i class="icon-user"></i>{{ article.author }}</a> +{% endif %} +<span class="label">Category</span> +<a href="{{ SITEURL }}/{{ article.category.url }}"><i class="icon-folder-open"></i>{{ article.category }}</a>. + +{% if PDF_PROCESSOR %} +<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/bootstrap2/templates/author.html b/bootstrap2/templates/author.html new file mode 100644 index 0000000..0b37290 --- /dev/null +++ b/bootstrap2/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/bootstrap2/templates/authors.html b/bootstrap2/templates/authors.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/bootstrap2/templates/authors.html diff --git a/bootstrap2/templates/base.html b/bootstrap2/templates/base.html new file mode 100644 index 0000000..3e42e65 --- /dev/null +++ b/bootstrap2/templates/base.html @@ -0,0 +1,155 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>{% block title %}{{ SITENAME }}{%endblock%}</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="description" content=""> + <meta name="author" content=""> + + <!-- Le styles --> + <link rel="stylesheet" href="{{ SITEURL }}/theme/css/bootstrap.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.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/images/favicon.ico"> + <link rel="apple-touch-icon" href="{{ SITEURL }}/theme/images/apple-touch-icon.png"> + <link rel="apple-touch-icon" sizes="72x72" href="{{ SITEURL }}/theme/images/apple-touch-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="114x114" href="{{ SITEURL }}/theme/images/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> + + <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 page in PAGES %} + <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.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 }}/category/{{ cat }}.html"> + <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-fluid"> + <div class="row"> + <div class="span9" id="content"> + {% block content %} + {% endblock %} + </div><!--/span--> + + <div class="span3 well sidebar-nav" id="sidebar"> + {% include 'sidebar.html' %} + </div><!--/.well --> + + </div><!--/row--> + + <hr> + + <footer> + <address id="about"> + Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican <i class="icon-external-link"></i></a>, + which takes great advantage of <a href="http://python.org">Python <i class="icon-external-link"></i></a>. + </address><!-- /#about --> + + <p>The theme is from <a href="http://twitter.github.com/bootstrap/">Bootstrap from Twitter <i class="icon-external-link"></i></a>, + and <a href="http://fortawesome.github.com/Font-Awesome/">Font-Awesome <i class="icon-external-link"></i></a>, thanks!</p> + </footer> + + </div><!--/.fluid-container--> + + + {% include 'analytics.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.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-transition.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-alert.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-modal.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-dropdown.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-scrollspy.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-tab.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-tooltip.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-popover.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-button.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-collapse.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-carousel.js"></script> + <script src="{{ SITEURL }}/theme/js/bootstrap-typeahead.js"></script> + + <!--<script src="{{ SITEURL }}/theme/js/autosidebar.js"></script>--> + </body> +</html> + diff --git a/bootstrap2/templates/categories.html b/bootstrap2/templates/categories.html new file mode 100644 index 0000000..4a9088f --- /dev/null +++ b/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/bootstrap2/templates/category.html b/bootstrap2/templates/category.html new file mode 100644 index 0000000..56f8e93 --- /dev/null +++ b/bootstrap2/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/bootstrap2/templates/comments.html b/bootstrap2/templates/comments.html new file mode 100644 index 0000000..806d9a0 --- /dev/null +++ b/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/bootstrap2/templates/disqus_script.html b/bootstrap2/templates/disqus_script.html new file mode 100644 index 0000000..c4f442c --- /dev/null +++ b/bootstrap2/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} +<script type="text/javascript"> + var disqus_shortname = '{{ DISQUS_SITENAME }}'; + (function () { + var s = document.createElement('script'); s.async = true; + s.type = 'text/javascript'; + s.src = 'http://' + disqus_shortname + '.disqus.com/count.js'; + (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); + }()); +</script> +{% endif %} diff --git a/bootstrap2/templates/github.html b/bootstrap2/templates/github.html new file mode 100644 index 0000000..31e6c47 --- /dev/null +++ b/bootstrap2/templates/github.html @@ -0,0 +1,9 @@ +{% if GITHUB_URL %} +<a href="{{ GITHUB_URL }}"> +{% if GITHUB_POSITION != "left" %} +<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_red_aa0000.png" alt="Fork me on GitHub" /> +{% else %} +<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_white_ffffff.png" alt="Fork me on GitHub" /> +{% endif %} +</a> +{% endif %} diff --git a/bootstrap2/templates/index.html b/bootstrap2/templates/index.html new file mode 100644 index 0000000..f1a75d9 --- /dev/null +++ b/bootstrap2/templates/index.html @@ -0,0 +1,47 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} + {% for article in (articles_page.object_list if articles_page else articles) %} + <div class='article'> + <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1> + <div class="well small">{% include "article_infos.html" %}</div> + <div class="summary">{{ article.summary }} + <a class="btn primary xsmall" href="{{ SITEURL }}/{{ article.url }}">more ...</a> + </div> + </div> + <hr /> + {% endfor %} +{%endif%} + + {% 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">← Previous</a></li> + {% else %} + <li class="prev disabled"><a href="#">← 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 →</a></li> + {% else %} + <li class="next disabled"><a href="#">→ Next</a></li> + {% endif %} + </ul> + </div> + +{% else %} + {% if PAGES %} + <section id="content" class="body"> + <h1>Pages</h1> + {% for page in PAGES %} + <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li> + {% endfor %} + </section> + {% endif %} +{% endif %} +{% endblock content %} diff --git a/bootstrap2/templates/page.html b/bootstrap2/templates/page.html new file mode 100644 index 0000000..8d51188 --- /dev/null +++ b/bootstrap2/templates/page.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{% endblock %} +{% block content %} +<section id="content" class="body"> + <h1 class="entry-title">{{ page.title }}</h1> + {% if PDF_PROCESSOR %} + <a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf"> + get the pdf + </a> + {% endif %} + {{ page.content }} +</section> +{% endblock %} diff --git a/bootstrap2/templates/pagination.html b/bootstrap2/templates/pagination.html new file mode 100644 index 0000000..83c587a --- /dev/null +++ b/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">«</a> + {% else %} + <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">«</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">»</a> + {% endif %} +</p> +{% endif %} diff --git a/bootstrap2/templates/piwik.html b/bootstrap2/templates/piwik.html new file mode 100644 index 0000000..2202089 --- /dev/null +++ b/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/bootstrap2/templates/search_sidebar.html b/bootstrap2/templates/search_sidebar.html new file mode 100644 index 0000000..00c81e3 --- /dev/null +++ b/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 %}
\ No newline at end of file diff --git a/bootstrap2/templates/sidebar.html b/bootstrap2/templates/sidebar.html new file mode 100644 index 0000000..fb94733 --- /dev/null +++ b/bootstrap2/templates/sidebar.html @@ -0,0 +1,43 @@ +<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><i class="icon-external-link"></i><a href="{{ link }}">{{ name }}</a></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 }}" 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 }}/category/{{ cat }}.html"> + <i class="icon-folder-open icon-large"></i>{{ cat }} +</a> +</li> +{% endfor %} + +<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/{{ tag.0 }}.html"> + <i class="icon-tag icon-large"></i>{{ tag.0 }} + </a> +</li> +{% endfor %} + +{% include 'twitter_profile.html' %} +{% include 'search_sidebar.html' %} + +{% if SIDEBAR_CUSTOM %} + {{ SIDEBAR_CUSTOM }} +{% endif %} +</ul>
\ No newline at end of file diff --git a/bootstrap2/templates/tag.html b/bootstrap2/templates/tag.html new file mode 100644 index 0000000..68cdcba --- /dev/null +++ b/bootstrap2/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/bootstrap2/templates/taglist.html b/bootstrap2/templates/taglist.html new file mode 100644 index 0000000..c87ec0e --- /dev/null +++ b/bootstrap2/templates/taglist.html @@ -0,0 +1,6 @@ +{% if article.tags %} +<span class="label">Tags</span> +{% for tag in article.tags %} + <a href="{{ SITEURL }}/{{ tag.url }}"><i class="icon-tag"></i>{{ tag }}</a> +{% endfor %} +{% endif %} diff --git a/bootstrap2/templates/tags.html b/bootstrap2/templates/tags.html new file mode 100644 index 0000000..6e8a22f --- /dev/null +++ b/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/{{ tag.0 }}.html"> + <i class="icon-tag icon-large"></i>{{ tag.0 }} + </a> +</li> +{% endfor %} +</ul> +{% endblock %}
\ No newline at end of file diff --git a/bootstrap2/templates/translations.html b/bootstrap2/templates/translations.html new file mode 100644 index 0000000..d705533 --- /dev/null +++ b/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/bootstrap2/templates/twitter.html b/bootstrap2/templates/twitter.html new file mode 100644 index 0000000..b758853 --- /dev/null +++ b/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/bootstrap2/templates/twitter_profile.html b/bootstrap2/templates/twitter_profile.html new file mode 100644 index 0000000..5d913e9 --- /dev/null +++ b/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 |