diff options
author | Alexis Metaireau <alexis@notmyidea.org> | 2011-02-01 21:50:43 +0000 |
---|---|---|
committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-02-01 21:50:43 +0000 |
commit | 50991bc1b6a994223f2a715a42faad34050c507c (patch) | |
tree | f6a8ffdfe2cf5a817d3b0fc5e5cb625c42c8a992 /brownstone/templates | |
parent | 92808823a34cabb29b85ae2550e83ef39fc132a6 (diff) | |
download | pelican-themes-50991bc1b6a994223f2a715a42faad34050c507c.tar.gz |
Add the brownstone theme, removed from pelican upstream.
Diffstat (limited to 'brownstone/templates')
-rw-r--r-- | brownstone/templates/analytics.html | 11 | ||||
-rw-r--r-- | brownstone/templates/archives.html | 19 | ||||
-rw-r--r-- | brownstone/templates/article.html | 35 | ||||
-rw-r--r-- | brownstone/templates/base.html | 108 | ||||
-rw-r--r-- | brownstone/templates/categories.html | 18 | ||||
-rw-r--r-- | brownstone/templates/category.html | 2 | ||||
-rw-r--r-- | brownstone/templates/index.html | 43 | ||||
-rw-r--r-- | brownstone/templates/page.html | 17 | ||||
-rw-r--r-- | brownstone/templates/tag.html | 2 | ||||
-rw-r--r-- | brownstone/templates/tags.html | 12 | ||||
-rw-r--r-- | brownstone/templates/twitter.html | 3 |
11 files changed, 270 insertions, 0 deletions
diff --git a/brownstone/templates/analytics.html b/brownstone/templates/analytics.html new file mode 100644 index 0000000..f19c7a6 --- /dev/null +++ b/brownstone/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 %} diff --git a/brownstone/templates/archives.html b/brownstone/templates/archives.html new file mode 100644 index 0000000..5adaacb --- /dev/null +++ b/brownstone/templates/archives.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} +{% block title %}Archives de {{ SITENAME }}{% endblock %} +{% block content %} + <div id="content"> + <div class="post"> + <dl> + <h2 class="title">Archives de {{ SITENAME }}</h2> + {% for article in dates %} + <dt>{{ article.locale_date }}</dt> + <dd><a href='{{ article.url }}'>{{ article.title }}</a></dd> + <dd>Catégorie : <a href="{{ article.category }}">{{ article.category }}</a></dd> + {% endfor %} + </dl> + </div> + + <div style="clear: both;"> </div> + </div> + <!-- end #content --> +{% endblock %} diff --git a/brownstone/templates/article.html b/brownstone/templates/article.html new file mode 100644 index 0000000..2458ecb --- /dev/null +++ b/brownstone/templates/article.html @@ -0,0 +1,35 @@ +{% extends "base.html" %} +{% block title %}{{ article.title }}{% endblock %} +{% block content %} + <div id="content"> + <div class="post"> + <h2 class="title"><a href="{{ article.url }}">{{ article.title }}</a></h2> + <p class="meta"><span class="date">Le {{ article.locale_date }} </span><span class="posted">Par <a href="#">{{ article.author }}</a></span><span> | Catégorie : <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></span></p> + <p class="meta">Tags : {% for tag in article.tags %} +<span><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a> / </span> +{% endfor %}</p> + <div style="clear: both;"> </div> + <div class="entry"> + {{ article.content }} + {% include 'twitter.html' %} + </div> + </div> + + <div style="clear: both;"> </div> + {% if DISQUS_SITENAME %} + <div class="post"> + <h2 class="title">Commentaires !</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 %} + </div> + <!-- end #content --> +{% endblock %} diff --git a/brownstone/templates/base.html b/brownstone/templates/base.html new file mode 100644 index 0000000..cd7cc7b --- /dev/null +++ b/brownstone/templates/base.html @@ -0,0 +1,108 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<!-- +Design by Free CSS Templates +http://www.freecsstemplates.org +Released for free under a Creative Commons Attribution 2.5 License + +Name : Brown Stone +Description: A two-column, fixed-width design with dark color scheme. +Version : 1.0 +Released : 20100928 + +--> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta name="keywords" content="" /> +<meta name="description" content="" /> +<meta http-equiv="content-type" content="text/html; charset=utf-8" /> +<title>{% block title %}{{ SITENAME }}{%endblock%}</title> +<link href="{{ SITEURL }}/theme/css/style.css" rel="stylesheet" type="text/css" media="screen" /> +<link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" /> +{% if FEED_RSS %} +<link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> +{% endif %} +</head> +<body> +<div id="wrapper"> + <div id="page"> + <div id="page-bgtop"> + <div id="page-bgbtm"> + {% block content %} + {% endblock %} + <div id="sidebar"> + <div id="logo"> + <h1><a href="{{ SITEURL }}">{{ SITENAME }}</h1> + {% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %} + </div> + <div id="menu"> + <ul> + <li class="current_page_item"><a href="{{ SITEURL }}">Home</a></li> + <li><a href="{{ SITEURL }}/archives.html">Archives</a></li> + {% if DISPLAY_PAGES_ON_MENU %} + {% for page in PAGES %} + <li><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a></li> + {% endfor %} + {% endif %} + </ul> + </div> + <ul> + <li> + <h2>Catégories</h2> + <ul> + {% for cat, null in categories %} + <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li> + {% endfor %} + </ul> + </li> + {% if LINKS %} + <li> + <h2>Blogroll</h2> + <ul> + {% for name, link in LINKS %} + <li><a href="{{ link }}">{{ name }}</a></li> + {% endfor %} + </ul> + </li> + {% endif %} + {% if SOCIAL %} + <li> + <h2>Social</h2> + <ul> + <li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate">Flux Atom</a></li> + {% if FEED_RSS %} + <li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">Flux Rss</a></li> + {% endif %} + {% for name, link in SOCIAL %} + <li><a href="{{ link }}">{{ name }}</a></li> + {% endfor %} + </ul> + </li><!-- /.social --> + {% endif %} + <li> + <h2>Tags</h2> + <ul> + {% for tag, articles in tags %} + <li><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a></li> + {% endfor %} + </ul> + </li> + + + </ul> + </div> + <!-- end #sidebar --> + <div style="clear: both;"> </div> + </div> + </div> + </div> + <!-- end #page --> + +<div id="footer"> + <p>Copyright (c) 2008 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/">CSS Templates</a>.</p> + <p>Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>. +</p> +</div> +{% include 'analytics.html' %} +<!-- end #footer --> +</body> +</html> diff --git a/brownstone/templates/categories.html b/brownstone/templates/categories.html new file mode 100644 index 0000000..9e9bea8 --- /dev/null +++ b/brownstone/templates/categories.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% block content %} +<div id="content"> +<div class="post"> + {% if articles %} + {% for article in articles %} + {% if loop.index == 1 %} + <ul> + {% for category, articles in categories %} + <li>{{ category }}</li> + {% endfor %} + </ul> + {% endif %} + {% endfor %} + {% endif %} + </div> + </div> +{% endblock %} diff --git a/brownstone/templates/category.html b/brownstone/templates/category.html new file mode 100644 index 0000000..56f8e93 --- /dev/null +++ b/brownstone/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/brownstone/templates/index.html b/brownstone/templates/index.html new file mode 100644 index 0000000..3ec1781 --- /dev/null +++ b/brownstone/templates/index.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} + {% if articles %} + {% for article in articles %} + {% if loop.index == 1 %} + <div id="content"> + <div class="post"> + <h2 class="title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2> + <p class="meta"><span class="date">Le {{ article.date.locale_date }} </span><span class="posted">Par <a href="#">{{ article.author }}</a></span><span> | Catégorie : <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></span></p> + <p class="meta">Tags : {% for tag in article.tags %} +<span><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a> / </span> +{% endfor %}</p> + <div style="clear: both;"> </div> + <div class="entry"> + {{ article.content }} + {% include 'twitter.html' %} + </div> + </div> + {% if loop.length > 1 %} + <div class="post"> + <h2 class="title">Autres articles</h2> + </div> + {% endif %} + {% else %} + <div class="post summary"> + <h2 class="title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2> + <p class="meta"><span class="date">Le {{ article.locale_date }}</span><span class="posted">Par <a href="#">{{ article.author }}</a></span></p> + <div style="clear: both;"> </div> + <div class="entry"> + {{ article.summary }} + <a class="readmore" href="{{ SITEURL }}/{{ article.url }}">Lire la suite …</a> + </div> + </div> + {% endif %} + {% endfor %} + {% else %} + <div id="content"> + </div> + {% endif %} + <div style="clear: both;"> </div> + </div> + {% endblock content %} diff --git a/brownstone/templates/page.html b/brownstone/templates/page.html new file mode 100644 index 0000000..6181ea9 --- /dev/null +++ b/brownstone/templates/page.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{% endblock %} +{% block content %} +<div id="content"> +<div class="post"> + <h2 class="title"><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a></h1> + {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get + the pdf</a>{% endif %} + <div style="clear: both;"> </div> + <div class="entry"> + {{ page.content }} + {% include 'twitter.html' %} + </div> + </div> +</div> + +{% endblock %} diff --git a/brownstone/templates/tag.html b/brownstone/templates/tag.html new file mode 100644 index 0000000..68cdcba --- /dev/null +++ b/brownstone/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/brownstone/templates/tags.html b/brownstone/templates/tags.html new file mode 100644 index 0000000..a950663 --- /dev/null +++ b/brownstone/templates/tags.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% block content %} +<div id="content"> +<div class="post"> +<ul> +{% for tag, articles in tags %} + <li>{{ tag }}</li> +{% endfor %} +</ul> +</div> +</div> +{% endblock %} diff --git a/brownstone/templates/twitter.html b/brownstone/templates/twitter.html new file mode 100644 index 0000000..94a9ba9 --- /dev/null +++ b/brownstone/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 %} |