aboutsummaryrefslogtreecommitdiffstats
path: root/built-texts/templates
diff options
context:
space:
mode:
authorAbhishek L <abhishekl.2006@gmail.com>2012-12-16 17:08:01 +0530
committerAbhishek L <abhishekl.2006@gmail.com>2012-12-16 17:08:01 +0530
commit76bbbdfd68152e35ed7b050c8159fd35be0e4be8 (patch)
tree934788db60928d7f466594b22a2d112360c98dcf /built-texts/templates
parente4c896d1f5c0b093537e8f162df75484573d1d2c (diff)
downloadpelican-themes-76bbbdfd68152e35ed7b050c8159fd35be0e4be8.tar.gz
Added new theme built-texts, based on tuxlite-tbs and bootstrap
Diffstat (limited to 'built-texts/templates')
-rw-r--r--built-texts/templates/analytics.html3
-rw-r--r--built-texts/templates/archives.html19
-rw-r--r--built-texts/templates/article-sidebar.html14
-rw-r--r--built-texts/templates/article.html25
-rw-r--r--built-texts/templates/author.html2
-rw-r--r--built-texts/templates/base.html140
-rw-r--r--built-texts/templates/categories.html10
-rw-r--r--built-texts/templates/category.html2
-rw-r--r--built-texts/templates/colophon.html6
-rw-r--r--built-texts/templates/disqus.html13
-rw-r--r--built-texts/templates/github.html3
-rw-r--r--built-texts/templates/index.html63
-rw-r--r--built-texts/templates/metadata.html13
-rw-r--r--built-texts/templates/page.html10
-rw-r--r--built-texts/templates/pagination.html21
-rw-r--r--built-texts/templates/tag.html2
-rw-r--r--built-texts/templates/tags.html9
-rw-r--r--built-texts/templates/twitter.html3
18 files changed, 358 insertions, 0 deletions
diff --git a/built-texts/templates/analytics.html b/built-texts/templates/analytics.html
new file mode 100644
index 0000000..62f8511
--- /dev/null
+++ b/built-texts/templates/analytics.html
@@ -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 %} \ No newline at end of file
diff --git a/built-texts/templates/archives.html b/built-texts/templates/archives.html
new file mode 100644
index 0000000..4c04c67
--- /dev/null
+++ b/built-texts/templates/archives.html
@@ -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 %}
diff --git a/built-texts/templates/article-sidebar.html b/built-texts/templates/article-sidebar.html
new file mode 100644
index 0000000..cd75278
--- /dev/null
+++ b/built-texts/templates/article-sidebar.html
@@ -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>
+
diff --git a/built-texts/templates/article.html b/built-texts/templates/article.html
new file mode 100644
index 0000000..0fb7d2a
--- /dev/null
+++ b/built-texts/templates/article.html
@@ -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 %}
diff --git a/built-texts/templates/author.html b/built-texts/templates/author.html
new file mode 100644
index 0000000..5b41b41
--- /dev/null
+++ b/built-texts/templates/author.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} <small>{{ author }}</small>{% endblock %} \ No newline at end of file
diff --git a/built-texts/templates/base.html b/built-texts/templates/base.html
new file mode 100644
index 0000000..c081927
--- /dev/null
+++ b/built-texts/templates/base.html
@@ -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>
diff --git a/built-texts/templates/categories.html b/built-texts/templates/categories.html
new file mode 100644
index 0000000..2b95d34
--- /dev/null
+++ b/built-texts/templates/categories.html
@@ -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 %}
diff --git a/built-texts/templates/category.html b/built-texts/templates/category.html
new file mode 100644
index 0000000..52215e6
--- /dev/null
+++ b/built-texts/templates/category.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} <small>{{ category }}</small>{% endblock %} \ No newline at end of file
diff --git a/built-texts/templates/colophon.html b/built-texts/templates/colophon.html
new file mode 100644
index 0000000..515b484
--- /dev/null
+++ b/built-texts/templates/colophon.html
@@ -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 %}
diff --git a/built-texts/templates/disqus.html b/built-texts/templates/disqus.html
new file mode 100644
index 0000000..5aa9f62
--- /dev/null
+++ b/built-texts/templates/disqus.html
@@ -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 %}
diff --git a/built-texts/templates/github.html b/built-texts/templates/github.html
new file mode 100644
index 0000000..4c3d935
--- /dev/null
+++ b/built-texts/templates/github.html
@@ -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 %}
diff --git a/built-texts/templates/index.html b/built-texts/templates/index.html
new file mode 100644
index 0000000..727489c
--- /dev/null
+++ b/built-texts/templates/index.html
@@ -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 %}
+
diff --git a/built-texts/templates/metadata.html b/built-texts/templates/metadata.html
new file mode 100644
index 0000000..3f7e987
--- /dev/null
+++ b/built-texts/templates/metadata.html
@@ -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 %}
+#}
diff --git a/built-texts/templates/page.html b/built-texts/templates/page.html
new file mode 100644
index 0000000..6c0e36a
--- /dev/null
+++ b/built-texts/templates/page.html
@@ -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 %}
diff --git a/built-texts/templates/pagination.html b/built-texts/templates/pagination.html
new file mode 100644
index 0000000..6783ae5
--- /dev/null
+++ b/built-texts/templates/pagination.html
@@ -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>
diff --git a/built-texts/templates/tag.html b/built-texts/templates/tag.html
new file mode 100644
index 0000000..ce6dcb7
--- /dev/null
+++ b/built-texts/templates/tag.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} <small>{{ tag }}</small>{% endblock %} \ No newline at end of file
diff --git a/built-texts/templates/tags.html b/built-texts/templates/tags.html
new file mode 100644
index 0000000..dea6672
--- /dev/null
+++ b/built-texts/templates/tags.html
@@ -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 %}
diff --git a/built-texts/templates/twitter.html b/built-texts/templates/twitter.html
new file mode 100644
index 0000000..c6b159f
--- /dev/null
+++ b/built-texts/templates/twitter.html
@@ -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 %} \ No newline at end of file