aboutsummaryrefslogtreecommitdiffstats
path: root/waterspill-en/templates
diff options
context:
space:
mode:
Diffstat (limited to 'waterspill-en/templates')
-rw-r--r--waterspill-en/templates/analytics.html11
-rw-r--r--waterspill-en/templates/archives.html25
-rw-r--r--waterspill-en/templates/article.html37
-rw-r--r--waterspill-en/templates/base.html131
-rw-r--r--waterspill-en/templates/categories.html18
-rw-r--r--waterspill-en/templates/category.html2
-rw-r--r--waterspill-en/templates/index.html46
-rw-r--r--waterspill-en/templates/page.html16
-rw-r--r--waterspill-en/templates/tag.html2
-rw-r--r--waterspill-en/templates/tags.html10
-rw-r--r--waterspill-en/templates/twitter.html3
11 files changed, 301 insertions, 0 deletions
diff --git a/waterspill-en/templates/analytics.html b/waterspill-en/templates/analytics.html
new file mode 100644
index 0000000..f19c7a6
--- /dev/null
+++ b/waterspill-en/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/waterspill-en/templates/archives.html b/waterspill-en/templates/archives.html
new file mode 100644
index 0000000..c485aeb
--- /dev/null
+++ b/waterspill-en/templates/archives.html
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+{% block title %}Archives of {{ SITENAME }}{% endblock %}
+{% block content %}
+
+<div class="blogItem">
+<dl>
+ <h2>Archives of {{ SITENAME }}</h2>
+ {% for article in dates %}
+ <dt>{{ article.locale_date }}</dt>
+ <dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
+
+ {% endfor %}
+ </dl>
+
+
+</div>
+
+
+
+{% endblock %}
+
+
+
+
+
diff --git a/waterspill-en/templates/article.html b/waterspill-en/templates/article.html
new file mode 100644
index 0000000..a4aa4de
--- /dev/null
+++ b/waterspill-en/templates/article.html
@@ -0,0 +1,37 @@
+{% extends "base.html" %}
+{% block title %}{{ article.title }}{% endblock %}
+{% block content %}
+
+
+<div class="blogItem">
+
+ <h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
+ <h3>{{ article.locale_date }}</h3>
+
+ {{ article.content }}
+ {% include 'twitter.html' %}
+
+ <h3 class="blogMeta">By <a href="#">{{ article.author }}</a>{% if not SUPPRESS_ITEM_CATEGORIES %}, Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% endif %}</h3>
+ {% if article.tags %}<h3 class="blogMeta">Tags: {% for tag in article.tags %}
+<span><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> / </span>
+{% endfor %}</h3>{% endif %}
+
+ </div><!-- end #blogItem -->
+{% if DISQUS_SITENAME %}
+<div class="blogItem">
+
+ <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 %}
+
+ <!-- end #content -->
+{% endblock %}
diff --git a/waterspill-en/templates/base.html b/waterspill-en/templates/base.html
new file mode 100644
index 0000000..a60034e
--- /dev/null
+++ b/waterspill-en/templates/base.html
@@ -0,0 +1,131 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+
+ <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_ATOM }}" 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 %}
+
+ <!--[if IE]>
+ <style type="text/css">
+ .twoColFixRtHdr #mainContent { zoom: 1; }
+ </style>
+ <![endif]-->
+
+</head>
+
+<body>
+
+<div id="container">
+
+ <div id="header">
+ <h1><a href="{{ SITEURL }}/index.html">{{ SITENAME }}</h1>
+ {% if SITESUBTITLE %}<h2>{{ SITESUBTITLE }}</h2>{% endif %}
+
+ </div><!-- end #header -->
+
+ <div id="topMenu">
+
+ <ul>
+ {% for item in BEFORE_MENU %}
+ <li><a href="{{ item.url }}">{{ item.name }}</li>
+ <li>&ndash;</li>
+ {% endfor %}
+ <li><a href="{{ SITEURL }}/index.html">Home</a></li>
+ <li>&ndash;</li>
+ <li><a href="{{ SITEURL }}/archives.html">Archives</a></li>
+ {% for item in AFTER_MENU %}
+ <li>&ndash;</li>
+ <li><a href="{{ item.url }}">{{ item.name }}</li>
+ {% endfor %}
+
+ </ul>
+
+ </div><!-- end #topMenu -->
+
+ <div id="sidebar">
+ <ul>
+ {% if DISPLAY_PAGES_ON_MENU %}
+ <li>
+ <h3>Pages</h3>
+ <ul>
+ {% for page in PAGES %}
+ <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
+ {% endfor %}
+ </ul>
+ </li>
+ {% endif %}
+ {% if not SUPPRESS_CATEGORIES_ON_MENU %}
+ <li>
+ <h3>Categories</h3>
+ <ul>
+ {% for cat, null in categories %}
+ <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
+ {% endfor %}
+ </ul>
+ </li>
+ {% endif %}
+ {% if LINKS %}
+ <li>
+ <h3>Blogroll</h3>
+ <ul>
+ {% for name, link in LINKS %}
+ <li><a href="{{ link }}">{{ name }}</a></li>
+ {% endfor %}
+ </ul>
+ </li>
+ {% endif %}
+ {% if SOCIAL %}
+ <li>
+ <h3>Social</h3>
+ <ul>
+ {% if FEED_ATOM %}
+ <li><a href="{{ SITEURL }}/{{ FEED_ATOM }}" rel="alternate">Atom feed</a></li>
+ {% endif %}
+ {% 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 %}
+ {% if tags %}
+ <li>
+ <h3>Tags</h3>
+ <ul>
+ {% for tag, articles in tags %}
+ <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
+ {% endfor %}
+ </ul>
+ </li>
+ {% endif %}
+ </ul>
+ </div><!-- end #sidebar -->
+
+ <div id="mainContent">
+
+ {% block content %}
+ {% endblock %}
+
+ </div><!-- end #mainContent -->
+
+<div class="clearfloat"></div>
+
+ <div id="footer">
+
+ <p><a href="http://css4free.com/" title="free CSS web site designs">Free CSS Gallery</a></p>
+ <p>Proudly powered by <a href="http://getpelican.com">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
+ </div><!-- end #footer -->
+
+</div><!-- end #container -->
+{% include 'analytics.html' %}
+</body>
+</html>
diff --git a/waterspill-en/templates/categories.html b/waterspill-en/templates/categories.html
new file mode 100644
index 0000000..b32f5cb
--- /dev/null
+++ b/waterspill-en/templates/categories.html
@@ -0,0 +1,18 @@
+{% extends "base.html" %}
+{% block content %}
+
+<div class="blogItem">
+ {% 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>
+
+{% endblock %}
diff --git a/waterspill-en/templates/category.html b/waterspill-en/templates/category.html
new file mode 100644
index 0000000..56f8e93
--- /dev/null
+++ b/waterspill-en/templates/category.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
diff --git a/waterspill-en/templates/index.html b/waterspill-en/templates/index.html
new file mode 100644
index 0000000..338155a
--- /dev/null
+++ b/waterspill-en/templates/index.html
@@ -0,0 +1,46 @@
+{% extends "base.html" %}
+{% block content_title %}{% endblock %}
+{% block content %}
+ {% if articles %}
+ {% for article in articles %}
+ {% if loop.index == 1 %}
+
+ <div class="blogItem">
+
+ <h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
+ <h3>{{ article.locale_date }}</h3>
+
+ {{ article.content }}
+
+
+ <h3 class="blogMeta">By <a href="#">{{ article.author }}</a>{% if not SUPPRESS_ITEM_CATEGORIES %}, Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% endif %}</h3>
+ {% if article.tags %}<h3 class="blogMeta">Tags: {% for tag in article.tags %}
+<span><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> / </span>
+{% endfor %}</h3>{% endif %}
+
+ </div><!-- end #blogItem -->
+ {% if loop.length > 1 %}
+ <div class="blogItem">
+ <h2>Other articles</h2>
+ </div>
+{% endif %}
+{% else %}
+ <div class="blogItem">
+
+ <h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
+ <h3>{{ article.locale_date }}</h3>
+
+ {{ article.summary }}
+<h3 class="blogMeta">By <a href="#">{{ article.author }}</a>{% if not SUPPRESS_ITEM_CATEGORIES %}, Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% endif %}</h3>
+ <a href="{{ SITEURL }}/{{ article.url }}">Continue reading …</a>
+
+
+
+
+ </div><!-- end #blogItem -->
+ {% endif %}
+{% endfor %}
+{% else %}
+
+{% endif %}
+{% endblock content %}
diff --git a/waterspill-en/templates/page.html b/waterspill-en/templates/page.html
new file mode 100644
index 0000000..f9a091a
--- /dev/null
+++ b/waterspill-en/templates/page.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+{% block title %}{{ page.title }}{% endblock %}
+{% block content %}
+
+<div class="blogItem">
+ <h2><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a></h3>
+ {{ page.content }}
+ {% include 'twitter.html' %}
+
+ {% if PDF_PROCESSOR %}<h3 class="blogMeta"><a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get
+ the pdf</a></h3>{% endif %}
+
+
+</div>
+
+{% endblock %}
diff --git a/waterspill-en/templates/tag.html b/waterspill-en/templates/tag.html
new file mode 100644
index 0000000..68cdcba
--- /dev/null
+++ b/waterspill-en/templates/tag.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
diff --git a/waterspill-en/templates/tags.html b/waterspill-en/templates/tags.html
new file mode 100644
index 0000000..1fd478c
--- /dev/null
+++ b/waterspill-en/templates/tags.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+{% block content %}
+<div class="blogItem">
+<ul>
+{% for tag, articles in tags %}
+ <li>{{ tag }}</li>
+{% endfor %}
+</ul>
+</div>
+{% endblock %}
diff --git a/waterspill-en/templates/twitter.html b/waterspill-en/templates/twitter.html
new file mode 100644
index 0000000..94a9ba9
--- /dev/null
+++ b/waterspill-en/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 %}