aboutsummaryrefslogtreecommitdiffstats
path: root/nmnlist/templates
diff options
context:
space:
mode:
Diffstat (limited to 'nmnlist/templates')
-rw-r--r--nmnlist/templates/.article.html.un~bin0 -> 19753 bytes
-rw-r--r--nmnlist/templates/.base.html.un~bin0 -> 21409 bytes
-rw-r--r--nmnlist/templates/.index.html.un~bin0 -> 3501 bytes
-rw-r--r--nmnlist/templates/.page.html.un~bin0 -> 5424 bytes
-rw-r--r--nmnlist/templates/analytics.html11
-rw-r--r--nmnlist/templates/archives.html13
-rw-r--r--nmnlist/templates/article.html12
-rw-r--r--nmnlist/templates/author.html2
-rw-r--r--nmnlist/templates/authors.html0
-rw-r--r--nmnlist/templates/base.html50
-rw-r--r--nmnlist/templates/categories.html8
-rw-r--r--nmnlist/templates/category.html2
-rw-r--r--nmnlist/templates/comments.html1
-rw-r--r--nmnlist/templates/disqus_script.html11
-rw-r--r--nmnlist/templates/github.html9
-rw-r--r--nmnlist/templates/index.html35
-rw-r--r--nmnlist/templates/page.html11
-rw-r--r--nmnlist/templates/pagination.html15
-rw-r--r--nmnlist/templates/piwik.html16
-rw-r--r--nmnlist/templates/tag.html2
-rw-r--r--nmnlist/templates/taglist.html2
-rw-r--r--nmnlist/templates/tags.html9
-rw-r--r--nmnlist/templates/translations.html6
-rw-r--r--nmnlist/templates/twitter.html3
24 files changed, 218 insertions, 0 deletions
diff --git a/nmnlist/templates/.article.html.un~ b/nmnlist/templates/.article.html.un~
new file mode 100644
index 0000000..3d5cd13
--- /dev/null
+++ b/nmnlist/templates/.article.html.un~
Binary files differ
diff --git a/nmnlist/templates/.base.html.un~ b/nmnlist/templates/.base.html.un~
new file mode 100644
index 0000000..7579a7a
--- /dev/null
+++ b/nmnlist/templates/.base.html.un~
Binary files differ
diff --git a/nmnlist/templates/.index.html.un~ b/nmnlist/templates/.index.html.un~
new file mode 100644
index 0000000..1b7f894
--- /dev/null
+++ b/nmnlist/templates/.index.html.un~
Binary files differ
diff --git a/nmnlist/templates/.page.html.un~ b/nmnlist/templates/.page.html.un~
new file mode 100644
index 0000000..8ab4606
--- /dev/null
+++ b/nmnlist/templates/.page.html.un~
Binary files differ
diff --git a/nmnlist/templates/analytics.html b/nmnlist/templates/analytics.html
new file mode 100644
index 0000000..ba174fc
--- /dev/null
+++ b/nmnlist/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/nmnlist/templates/archives.html b/nmnlist/templates/archives.html
new file mode 100644
index 0000000..5ba2c81
--- /dev/null
+++ b/nmnlist/templates/archives.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+{% block content %}
+<section id="content" class="body">
+<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/nmnlist/templates/article.html b/nmnlist/templates/article.html
new file mode 100644
index 0000000..58f8dd2
--- /dev/null
+++ b/nmnlist/templates/article.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+{% block title %}{{ super() }} : {{ article.title }}{% endblock %}
+{% block content %}
+<header>
+ <h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
+ <span id="sitename"><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> &sdot;</span>
+ {% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
+</header>
+<article>
+ {{ article.content }}
+</article>
+{% endblock %}
diff --git a/nmnlist/templates/author.html b/nmnlist/templates/author.html
new file mode 100644
index 0000000..0b37290
--- /dev/null
+++ b/nmnlist/templates/author.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ author }}{% endblock %}
diff --git a/nmnlist/templates/authors.html b/nmnlist/templates/authors.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/nmnlist/templates/authors.html
diff --git a/nmnlist/templates/base.html b/nmnlist/templates/base.html
new file mode 100644
index 0000000..ccbe1ba
--- /dev/null
+++ b/nmnlist/templates/base.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
+ <meta charset="utf-8" />
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
+ <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 %}
+
+ <!--[if IE]>
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+
+ <!--[if lte IE 7]>
+ <link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie.css"/>
+ <script src="{{ SITEURL }}/js/IE8.js" type="text/javascript"></script><![endif]-->
+
+ <!--[if lt IE 7]>
+ <link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie6.css"/><![endif]-->
+
+</head>
+
+<body>
+{% include 'github.html' %}
+ {% block content %}
+ {% endblock %}
+
+ <footer>
+ <nav>
+ <ul>
+ {% for page in PAGES %}
+ <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>{% if not loop.last %} ::{% endif %}</li>
+ {% endfor %}
+ {% if categories|length > 1 %}
+ <li>:: <a href="{{ SITEURL }}/categories.html">Categories</a></li>
+ {% endif %}
+ {% if tags|length > 1 %}
+ <li>:: <a href="{{ SITEURL }}/tags.html">Tags</a></li>
+ {% endif %}
+ </ul>
+ </nav>
+ <p id="theme-credit">Proudly powered by <a href="http://docs.notmyidea.org/alexis/pelican/">pelican</a></p>
+ </footer>
+
+{% include 'analytics.html' %}
+{% include 'piwik.html' %}
+{% include 'disqus_script.html' %}
+</body>
+</html>
diff --git a/nmnlist/templates/categories.html b/nmnlist/templates/categories.html
new file mode 100644
index 0000000..e29be0c
--- /dev/null
+++ b/nmnlist/templates/categories.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+{% block content %}
+<ul>
+{% for category, articles in categories %}
+ <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
+{% endfor %}
+</ul>
+{% endblock %}
diff --git a/nmnlist/templates/category.html b/nmnlist/templates/category.html
new file mode 100644
index 0000000..56f8e93
--- /dev/null
+++ b/nmnlist/templates/category.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
diff --git a/nmnlist/templates/comments.html b/nmnlist/templates/comments.html
new file mode 100644
index 0000000..bb033c0
--- /dev/null
+++ b/nmnlist/templates/comments.html
@@ -0,0 +1 @@
+{% if DISQUS_SITENAME %}<p>There are <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">comments</a>.</p>{% endif %}
diff --git a/nmnlist/templates/disqus_script.html b/nmnlist/templates/disqus_script.html
new file mode 100644
index 0000000..c4f442c
--- /dev/null
+++ b/nmnlist/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/nmnlist/templates/github.html b/nmnlist/templates/github.html
new file mode 100644
index 0000000..75592ac
--- /dev/null
+++ b/nmnlist/templates/github.html
@@ -0,0 +1,9 @@
+{% if GITHUB_URL %}
+<a href="{{ GITHUB_URL }}">
+{% if GITHUB_POSITION != "left" %}
+<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_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/nmnlist/templates/index.html b/nmnlist/templates/index.html
new file mode 100644
index 0000000..b754a8e
--- /dev/null
+++ b/nmnlist/templates/index.html
@@ -0,0 +1,35 @@
+{% extends "base.html" %}
+{% block content_title %}{% endblock %}
+{% block content %}
+{% if articles %}
+ {% for article in articles %}
+
+ {# First item #}
+ {% if loop.first %}
+ <header>
+ <h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
+ <span id="sitename"><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> &sdot;</span>
+ {% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
+ </header>
+
+ <article>
+ {{ article.content }}{% include 'comments.html' %}
+ </article>
+ {% if loop.length > 1 %}
+ <section id="article-list">
+ <h2>Tous les articles</h2>
+ <ol>
+ {% endif %}
+ {# other items #}
+ {% else %}
+ <li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></li>
+ {% endif %}
+{% endfor %}
+ {% if loop.length > 1 %}
+ </ol>
+ </section><!-- #article-list -->
+{% endif %}
+{% else %}
+ Pas d'articles pour le moment.
+{% endif %}
+{% endblock content %}
diff --git a/nmnlist/templates/page.html b/nmnlist/templates/page.html
new file mode 100644
index 0000000..4659e4c
--- /dev/null
+++ b/nmnlist/templates/page.html
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+{% block title %}{{ page.title }}{% endblock %}
+{% block content %}
+<header>
+ <h1><a href="{{ SITEURL }}/{{ page.slug }}" id="page-title">{{ page.title }}</a></h1>
+ <span id="sitename"><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></span>
+</header>
+<article>
+ {{ page.content }}
+</article>
+{% endblock %}
diff --git a/nmnlist/templates/pagination.html b/nmnlist/templates/pagination.html
new file mode 100644
index 0000000..83c587a
--- /dev/null
+++ b/nmnlist/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">&laquo;</a>
+ {% else %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">&laquo;</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">&raquo;</a>
+ {% endif %}
+</p>
+{% endif %}
diff --git a/nmnlist/templates/piwik.html b/nmnlist/templates/piwik.html
new file mode 100644
index 0000000..ff459af
--- /dev/null
+++ b/nmnlist/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/nmnlist/templates/tag.html b/nmnlist/templates/tag.html
new file mode 100644
index 0000000..68cdcba
--- /dev/null
+++ b/nmnlist/templates/tag.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
diff --git a/nmnlist/templates/taglist.html b/nmnlist/templates/taglist.html
new file mode 100644
index 0000000..c792fd7
--- /dev/null
+++ b/nmnlist/templates/taglist.html
@@ -0,0 +1,2 @@
+{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}</p>{% endif %}
+{% if PDF_PROCESSOR %}<p><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a></p>{% endif %}
diff --git a/nmnlist/templates/tags.html b/nmnlist/templates/tags.html
new file mode 100644
index 0000000..a6011a0
--- /dev/null
+++ b/nmnlist/templates/tags.html
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+{% block content %}
+<ul>
+{% for tag, articles in tags %}
+ <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
+{% endfor %}
+</ul>
+{% endblock %}
+
diff --git a/nmnlist/templates/translations.html b/nmnlist/templates/translations.html
new file mode 100644
index 0000000..0079883
--- /dev/null
+++ b/nmnlist/templates/translations.html
@@ -0,0 +1,6 @@
+{% if article.translations %}
+Translations:
+ {% for translation in article.translations %}
+ <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
+ {% endfor %}
+{% endif %}
diff --git a/nmnlist/templates/twitter.html b/nmnlist/templates/twitter.html
new file mode 100644
index 0000000..c6b159f
--- /dev/null
+++ b/nmnlist/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