Added new theme built-texts, based on tuxlite-tbs and bootstrap

This commit is contained in:
Abhishek L
2012-12-16 17:08:01 +05:30
parent e4c896d1f5
commit 76bbbdfd68
43 changed files with 2586 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
{% if GOOGLE_ANALYTICS %}
<script>var _gaq=[['_setAccount','{{GOOGLE_ANALYTICS}}'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script'))</script>
{% endif %}

View File

@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} <small>[archive]</small>{% endblock %}
{% block content %}
<h2>Archives</h2>
<table class="table table-striped">
<tbody>
{% for article in dates %}
<tr>
<td>{{ article.date.strftime("%d %b %Y") }}</td>
<td><a href='{{ article.url }}'>{{ article.title }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}

View File

@@ -0,0 +1,14 @@
<p>{{ article.locale_date }} </p>
<p style="text-align: left;">
Filed under <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</p>
<p style="text-align: left;">
{% if article.tags %}
Tags {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> {% endfor %}
{% endif %}
</p>
<p>
{% include "twitter.html" %}
</p>

View File

@@ -0,0 +1,25 @@
{% extends "base.html" %}
{% block content %}
<div class='article'>
<div class="row-fluid">
<div class="content-title span9">
<h1>{{ article.title }}</h1b>
</div>
</div>
<div class="row-fluid">
<div class="span2">
{% include "article-sidebar.html" %}
</div>
<div class="span8">
{{ article.content }}
<hr />
</div>
</div>
<div class="span10">
<h3>Comments</h3>
{% include 'disqus.html' %}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,2 @@
{% extends "index.html" %}
{% block title %}{{ SITENAME }} <small>{{ author }}</small>{% endblock %}

View File

@@ -0,0 +1,140 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{% block windowtitle %}{{ SITENAME }}{% endblock %}</title>
<meta name="description" content="">
<meta name="author" content="{{ AUTHOR }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="{{ SITEURL }}/theme/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.no-icons.min.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/local.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/pygments.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/font-awesome.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Gudea:400,400italic|Alegreya+SC' rel='stylesheet' type='text/css'>
</head>
<body>
<header class="blog-header">
<div class="container">
<div class="row-fluid">
<div class="span9">
<a href="{{ SITEURL }}" class="brand">{{SITENAME}}</a>
</div>
<div class="span3" id="blog-nav">
<ul class="nav nav-pills pull-right">
{% if DISPLAY_PAGES_ON_MENU %}
{% for page in PAGES %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
{% endif %}
{% for cat, null in categories %}
<li {% if cat == category %} class="active" {% endif %}>
<a href="{{ SITEURL }}/{{ cat.url }} ">{{ cat }}</a>
{% endfor %}
</ul>
</div>
</div> <!-- End of fluid row-->
</div> <!-- End of Container-->
</header>
<div class="container">
<div class="content">
<div class="row-fluid">
<div class="span10">
{% block content %}{% endblock %}
</div>
</div> {# End row #}
</div> {# End content #}
</div>
<!--footer-->
<div class="container">
<div class="well" style="background-color: #E9EFF6">
<div id="blog-footer">
<div class="row-fluid">
{% if SOCIAL %}
<div class="social span2" align="center" id="socialist">
<ul class="nav nav-list">
<li class="nav-header">
Social
</li>
{% for name,link in SOCIAL %}
<li><a href="{{ link }}"><i class="icon-{{ name }}" style="color: #1f334b"></i>{{name}}</a></li>
{% endfor %}
{% if EMAIL%}
<a href="mailto:{{ EMAIL}}"><i class="icon-envelope" style="color: #1f334b" ></i> email</a>
{% endif %}
</ul>
</div>
{% endif %}
{% include "colophon.html" %}
{% if LINKS %}
<div class="links span2" align="center">
<ul class="nav nav-list">
<li class="nav-header">
Links
</li>
{% for name, link in LINKS %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
<div class="site-nav span2" align="center">
<ul class="nav nav-list" id="site-links">
<li class="nav-header">
Site
</li>
<li><a href="{{ SITEURL }}"><i class="icon-home" style="color: #1f334b">
</i>Home</a></li>
<li><a href="{{ SITEURL }}/archives.html"><i class="icon-list" style="color: #1f334b">
</i>Archives</a></li>
<li><a href="{{ SITEURL }}/tags.html"><i class="icon-tags" style="color: #1f334b">
</i>Tags</a></li>
{% if FEED_RSS %}
<li> <a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">
<i class="icon-rss" style="color: #1f334b"></i>
RSS Feed</a></li>
{% endif %}
<li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate">
<i class="icon-rss-sign" style="color: #1f334b"></i>
Atom Feed</a></li>
</ul>
</div>
</div> <!--end of fluid row-->
</div> <!--end of blog-footer-->
<hr />
<p align="center"><a href="{{ SITEURL }}">{{ SITENAME }}</a>
&copy; {{ AUTHOR }}
Powered by <a href="github.com/getpelican/pelican">Pelican</a> and
<a href="https://twitter.github.com/bootstrap">Twitter Bootstrap</a>.
Icons by <a href="http://fortawesome.github.com/Font-Awesome">Font Awesome</a> and
<a href="http://gregoryloucas.github.com/Font-Awesome-More">Font Awesome More</a></p>
</div> <!--end of well -->
</div> <!--end of container -->
<!--/footer-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
{% include "analytics.html" %}
</body>
</html>

View File

@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} <small>[categories]</small>{% endblock %}
{% block content %}
<ul>
{% for category, articles in categories %}
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</li>
{% endfor %}
</ul>
{% endblock %}

View File

@@ -0,0 +1,2 @@
{% extends "index.html" %}
{% block title %}{{ SITENAME }} <small>{{ category }}</small>{% endblock %}

View File

@@ -0,0 +1,6 @@
{% if COLOPHON %}
<div class="span8" id="colophon">
<h2 align="center">{{ COLOPHON_TITLE }}</h2>
<p align="justify"> {{ COLOPHON_CONTENT }} </p>
</div>
{% endif %}

View File

@@ -0,0 +1,13 @@
{% if DISQUS_SITENAME %}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ DISQUS_SITENAME }}';
(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 %}

View File

@@ -0,0 +1,3 @@
{% if GITHUB_URL %}
<a href="{{ GITHUB_URL }}"><img style="position: absolute; top: 40px; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub" /></a>
{% endif %}

View File

@@ -0,0 +1,63 @@
{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block content %}
{% if articles %}
{% for article in articles_page.object_list %}
{% if loop.first and not articles_page.has_previous() %}
<div class='row-fluid''>
<div class="article-title span9">
<a href="{{ SITEURL }}/{{ article.url }}"><h1>{{ article.title }}</h1></a>
</div>
</div>
<div class="row-fluid">
<div class="span2">
{% include "article-sidebar.html" %}
</div>
<div class="article-content span8">
{{ article.content}}
<a class="btn btn-mini xsmall" href="{{ SITEURL }}/{{ article.url }}">
<i class="icon-comment"></i> Comment </a>
<hr />
</div>
</div>
{% if loop.length == 1 %}
{% include 'pagination.html' %}
{% endif %}
{# other items #}
{% else %}
<div class='row-fluid'>
<div class='article-title span9'>
<a href="{{ SITEURL }}/{{ article.url }}"><h1>{{ article.title }}</h1></a>
</div>
</div>
<div class="row-fluid">
<div class="span2">
{% include "article-sidebar.html" %}
</div>
<div class="summary span8">
{{ article.summary }}
<a class="btn btn-mini xsmall" href="{{ SITEURL }}/{{ article.url }}">
<i class="icon-plus-sign"></i> Read More </a>
<hr />
</div>
</div>
{% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %}
{% include 'pagination.html' %}
{% endif %}
{% endif %} {# First item if #}
{% endfor %} {# For article #}
{% endif %} {# If articles #}
{% endblock content %}

View File

@@ -0,0 +1,13 @@
{{ article.locale_date }}
{% if article.author %}
by <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
{% endif %}
{# Filed under <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> #}
{#
{% if article.tags %}
Tags {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> {% endfor %}
{% endif %}
#}

View File

@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block title %} {% endblock %}
{% block content %}
<section id="content" class="body span10">
<h2 class="content-title">{{ page.title }}</h2>
{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get
the pdf</a>{% endif %}
{{ page.content }}
</section>
{% endblock %}

View File

@@ -0,0 +1,21 @@
<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>

View File

@@ -0,0 +1,2 @@
{% extends "index.html" %}
{% block title %}{{ SITENAME }} <small>{{ tag }}</small>{% endblock %}

View File

@@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} <small>[tgs]</small>{% endblock %}
{% block content %}
<ul>
{% for tag, articles in tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</li>
{% endfor %}
</ul>
{% endblock %}

View File

@@ -0,0 +1,3 @@
{% 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 %}