aboutsummaryrefslogtreecommitdiffstats
path: root/dev-random/templates
diff options
context:
space:
mode:
authorm-r-r <raybaudroigm@gmail.com>2012-04-07 19:36:03 +0200
committerm-r-r <raybaudroigm@gmail.com>2012-04-07 19:36:03 +0200
commit261797ff47d96c47c3364110c100bf64701f7da5 (patch)
tree3242dd2ba40c67387cd5ac646d7831522eaad86b /dev-random/templates
parenta006f0a70f9e432908d97bd9ecdb37e4b8f5d328 (diff)
downloadpelican-themes-261797ff47d96c47c3364110c100bf64701f7da5.tar.gz
Added the dev-random theme
Diffstat (limited to 'dev-random/templates')
-rw-r--r--dev-random/templates/archives.html30
-rw-r--r--dev-random/templates/article.html57
-rw-r--r--dev-random/templates/author.html5
-rw-r--r--dev-random/templates/base.html84
-rw-r--r--dev-random/templates/categories.html14
-rw-r--r--dev-random/templates/category.html5
-rw-r--r--dev-random/templates/index.html64
-rw-r--r--dev-random/templates/page.html10
-rw-r--r--dev-random/templates/tag.html4
-rw-r--r--dev-random/templates/tags.html14
10 files changed, 287 insertions, 0 deletions
diff --git a/dev-random/templates/archives.html b/dev-random/templates/archives.html
new file mode 100644
index 0000000..998890e
--- /dev/null
+++ b/dev-random/templates/archives.html
@@ -0,0 +1,30 @@
+{% extends "base.html" %}
+
+{% block content_title %}{{ SITENAME }} — Archives{% endblock %}
+
+{%- block content %}
+
+ <dl>
+ {% for article in articles %}
+ {% if loop.first or article.date.strftime('%Y %m') != articles[loop.index0-1].date.strftime('%Y %m') %}
+ <dt>
+ <h2>{{ article.date.strftime('%B %Y') }}</h2>
+ <ul>
+ {% endif %}
+
+ <li>
+ <a rel="bookmark"
+ href="{{ SITEURL }}/{{ article.url }}"
+ title="Lien permanent vers «{{ article.title }}»">
+ {{ article.title }}
+ </a>
+ </li>
+
+ {% if loop.last or article.date.strftime('%Y %m') != articles[loop.index0+1].date.strftime('%Y %m') %}
+ </ul>
+ </dt>
+ {% endif %}
+ {% endfor %}
+ </dl>
+
+{% endblock content -%}
diff --git a/dev-random/templates/article.html b/dev-random/templates/article.html
new file mode 100644
index 0000000..d85c7c5
--- /dev/null
+++ b/dev-random/templates/article.html
@@ -0,0 +1,57 @@
+{% extends "base.html" %}
+
+{% block headers %}
+ {{ super() }}
+ <meta name="author" content="{{ article.author }}" />
+ <meta name="keywords" content="{{ articles.tags|join(' ')}}" />
+{% endblock %}
+
+{% block title %}{{ article.title }} — {{ super() }}{% endblock %}
+
+{%- block content %}
+ <article class="post" id="page-content">
+ <header class="post-header">
+ <time datetime="{{ article.date.isoformat() }}" pubdate="pubdate">
+ {{ article.locale_date }}
+ </time>
+ <h1>
+ <a rel="bookmark"
+ href="{{ SITEURL }}/{{ article.url }}"
+ title="Lien permanent vers «{{ article.title }}»">
+ {{ article.title }}
+ </a>
+ </h1>
+ <div class="meta">
+ Dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>»
+ par <a href="{{ SITEURL }}/author/{{article.author}}.html">{{ article.author}}</a>
+ </div>
+ </header>
+ <div class="post-content">
+ {{ article.content}}
+ </div>
+ <footer class="post-footer">
+ <div class="meta">
+ Posté dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>»
+ par <a href="{{ SITEURL }}/author/{{article.author}}.html">{{ article.author}}</a><br />
+ Mots-clés: {% for tag in article.tags %} #<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a>{% endfor %}
+ </div>
+ </footer>
+ {% if DISQUS_SITENAME %}
+ <hr />
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
+ var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
+
+ /* * * DON'T EDIT BELOW THIS LINE * * */
+ (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>
+ <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
+ {% endif %}
+ </article>
+{% endblock content -%}
diff --git a/dev-random/templates/author.html b/dev-random/templates/author.html
new file mode 100644
index 0000000..165b74d
--- /dev/null
+++ b/dev-random/templates/author.html
@@ -0,0 +1,5 @@
+{% extends "index.html" %}
+
+{% block title %}{{ SITENAME }} — Articles de {{ author }}{% endblock %}
+
+{% block index_title %}Articles de <i>{{ author }}</i> :{% endblock %}
diff --git a/dev-random/templates/base.html b/dev-random/templates/base.html
new file mode 100644
index 0000000..bbb2fcf
--- /dev/null
+++ b/dev-random/templates/base.html
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<html lang="{{ DEFAULT_LANG }}">
+ <head>
+ {% block headers %}
+ <meta charset="utf-8" />
+ <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
+ <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" />
+ <link rel="shortcut icon" type="text/css" href="{{ SITEURL }}/favicon.ico" />
+ <link rel="alternate" type="application/atom+xml"
+ title="{{ SITENAME }} — Flux Atom"
+ href="{{ SITEURL }}/{{ FEED }}" />
+ {% if FEED_RSS %}
+ <link rel ="alternate" type="application/rss+xml"
+ title="{{ SITENAME }} — Flux RSS"
+ href="{{ SITEURL }}/{{ FEED_RSS }}" />
+ {% endif %}
+ <!--[if lte IE 8]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ {% if GOOGLE_ANALYTICS %}
+ <script type="text/javascript">
+ // Google analytics:
+ 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"));
+ function enableGA() {
+ try {
+ var pageTracker = _gat._getTracker("{{ GOOGLE_ANALYTICS }}");
+ pageTracker._trackPageview();
+ _gaq.push(['_setCustomVar',
+ 1, // This custom var is set to slot #1. Required parameter.
+ 'User-Agent',
+ navigator.userAgent
+ ]);
+ console.log('GA loaded');
+ } catch(err) {
+ setTimeout(500,'enableGA()');
+ console.log('Waiting GA ...');
+ }
+ }
+ setTimeout('enableGA()', 200);
+ </script>
+ {% endif %}
+ {% endblock headers %}
+ </head>
+ <body>
+ <!--[if lt IE 7]>
+ <div style="font-size: small; background-color: black; color: white; position: fixed; bottom: 0; left: 0; right: 0;border-bottom: 1px solid gray; padding: 2px 5px;"
+ id="outdated">Il est recommandé d'utiliser un navigateur Web
+ moderne, comme <a href="http://www.mozilla.com/firefox/">Mozilla
+ Firefox</a> ou <a href="http://www.google.com/chrome/">Google
+ Chrome</a> pour voir ce site
+ </div>
+ <![endif]-->
+ <header id="page-header">
+ <h1>
+ <a href="{{ SITEURL }}/index.html">{{ SITENAME }}</a>
+ </h1>
+ </header>
+
+ <nav id="page-menu">
+ <ul>
+ {% for title, link in MENUITEMS %}
+ <li><a href="{{ link|format(SITEURL) }}">{{ title }}</a></li>
+ {% endfor %}
+ {% if DISPLAY_PAGES_ON_MENU %}
+ <li><a href="{{ SITEURL }}/index.html">Accueil</a></li>
+ {% for p in PAGES %}
+ <li {% if p == page %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url|e }}">{{ p.title }}</a></li>
+ {% endfor %}
+ {% else %}
+ {% for cat, null in categories %}
+ <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url|e }}">{{ cat }}</a></li>
+ {% endfor %}
+ {% endif %}
+ </ul>
+ </nav>
+
+ {% block content %}
+ {% endblock content %}
+
+ <footer id="page-footer">
+ <p> {{ FOOTER_TEXT or 'Powered by <a href="http://docs.notmyidea.org/alexis/pelican/">Pelican</a>' }}</p>
+ {% if GITHUB_URL %}<p><a id="github-link" href="{{ GITHUB_URL}}">Fork me on Github</a></p>{% endif %}
+ </footer>
+ </body>
+</html>
diff --git a/dev-random/templates/categories.html b/dev-random/templates/categories.html
new file mode 100644
index 0000000..ca9a7b1
--- /dev/null
+++ b/dev-random/templates/categories.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block title %}{{ super() }} — Catégories{% endblock title %}
+
+{%- block content %}
+ <section id="page-content">
+ <h1>Catégories</h1>
+ <ul id="category-list">
+ {% for category, n in categories %}
+ <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ n|count }} articles)</li>
+ {% endfor %}
+ </ul>
+ </section>
+{% endblock content -%}
diff --git a/dev-random/templates/category.html b/dev-random/templates/category.html
new file mode 100644
index 0000000..6cff639
--- /dev/null
+++ b/dev-random/templates/category.html
@@ -0,0 +1,5 @@
+{% extends "index.html" %}
+
+{% block title %}{{ SITENAME }} — Articles dans la catégorie «{{ category }}»{% endblock %}
+
+{% block index_title %}Articles dans la catégorie <i>«{{ category }}»</i> :{% endblock %}
diff --git a/dev-random/templates/index.html b/dev-random/templates/index.html
new file mode 100644
index 0000000..ad01608
--- /dev/null
+++ b/dev-random/templates/index.html
@@ -0,0 +1,64 @@
+{% extends "base.html" %}
+
+{%- block content %}
+ <section id="page-content">
+ <h1 id="page-title">{% block index_title %}Tous les articles{% endblock index_title %}</h1>
+
+ {% for article in articles_page.object_list %}
+ <article class="post">
+ <header class="post-header">
+ <time datetime="{{ article.date.isoformat() }}" pubdate="pubdate">
+ {{ article.locale_date }}
+ </time>
+ <h1>
+ <a rel="bookmark"
+ href="{{ SITEURL }}/{{ article.url }}"
+ title="Lien permanent vers «{{ article.title }}»">
+ {{ article.title }}
+ </a>
+ </h1>
+ <div class="meta">
+ Dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>»
+ par <a href="{{ SITEURL }}/author/{{article.author}}.html">{{ article.author}}</a>
+ </div>
+ </header>
+ <div class="post-content">
+ {{ article.summary }}
+ </div>
+ <footer class="post-footer">
+ <a class="readmore" href="{{ SITEURL }}/{{ article.url }}">Lire la suite...</a>
+ </footer>
+ </article>
+ {% endfor %}
+
+ {%- if articles_page %}
+ <nav id="pagination">
+ {%- if articles_page.has_previous() %}
+ <a id="first_page" href="{{ SITEURL }}/{{ page_name }}.html">&#60;&#60;</a>
+ <a id="prev_page" href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() if articles_page.previous_page_number() != 1 else "" }}.html">&#60;</a>
+ {% else %}
+ <!-- <span id="first_page" class="a inactive">&#60;&#60;</span>
+ <span id="first_page" class="a inactive">&#60;</span> -->
+ {% endif -%}
+
+ {%- for i in range(1,articles_paginator.num_pages+1) %}
+ {%- if articles_page.number - 5 < i < articles_page.number + 5 %}
+ {%- if i == articles_page.number %}
+ <span class="a active">{{loop.index}}</span>
+ {% else %}
+ <a href="{{SITEURL}}/{{ page_name }}{{ ( i if i != 1 else "" ) }}.html">{{loop.index}}</a>
+ {% endif -%}
+ {% endif -%}
+ {% endfor -%}
+
+ {%- if articles_page.has_next() %}
+ <a id="next_page" href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">&#62;</a>
+ <a id="last_page" href="{{ SITEURL }}/{{ page_name }}{{ articles_paginator.num_pages }}.html">&#62;&#62;</a>
+ {% else %}
+ <!-- <span id="next_page" class="a inactive">&#62;</span>
+ <span id="next_page" class="a inactive">&#62;&#62;</span> -->
+ {% endif -%}
+ </nav>
+ {%- endif%}
+ </section>
+{% endblock content -%}
diff --git a/dev-random/templates/page.html b/dev-random/templates/page.html
new file mode 100644
index 0000000..25acc8e
--- /dev/null
+++ b/dev-random/templates/page.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+
+{% block title %}{{ super() }} — {{ page.url }}{% endblock title %}
+
+{%- block content %}
+ <section id="page-content">
+ <h1>{{ page.title }}</h1>
+ {{ page.content }}
+ </section>
+{% endblock content -%}
diff --git a/dev-random/templates/tag.html b/dev-random/templates/tag.html
new file mode 100644
index 0000000..0eb2bab
--- /dev/null
+++ b/dev-random/templates/tag.html
@@ -0,0 +1,4 @@
+{% extends "index.html" %}
+
+{% block content_title %}Articles avec la mot clé « {{ tag }} » :{% endblock %}
+
diff --git a/dev-random/templates/tags.html b/dev-random/templates/tags.html
new file mode 100644
index 0000000..45b883b
--- /dev/null
+++ b/dev-random/templates/tags.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block title %}{{ super() }} — Mots-clés{% endblock title %}
+
+{%- block content %}
+ <section id="page-content">
+ <h1>Mots-clés</h1>
+ <ul id="tagslist">
+ {% for tag in tag_cloud %}
+ <li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">{{ tag.0 }}</a></li>
+ {% endfor %}
+ </ul>
+ </section>
+{% endblock content -%}