aboutsummaryrefslogtreecommitdiffstats
path: root/lightweight
diff options
context:
space:
mode:
authorskami <skami@skami-laptop.dyndns.org>2011-02-13 20:22:23 +0100
committerskami <skami@skami-laptop.dyndns.org>2011-02-13 20:22:23 +0100
commit3072332a1549bbdbc458c13112b6013716c5782b (patch)
tree1913657c03b86597d01425e674a78f8b8a6bfb83 /lightweight
parent079da3ce990ccc101b58fe1b5ded8342d52244a6 (diff)
downloadpelican-themes-3072332a1549bbdbc458c13112b6013716c5782b.tar.gz
Ajout d'un thème
Diffstat (limited to 'lightweight')
-rw-r--r--lightweight/static/css/main.css206
-rw-r--r--lightweight/templates/archives.html0
-rw-r--r--lightweight/templates/article.html17
-rw-r--r--lightweight/templates/base.html32
-rw-r--r--lightweight/templates/categories.html0
-rw-r--r--lightweight/templates/category.html0
-rw-r--r--lightweight/templates/index.html23
-rw-r--r--lightweight/templates/menu.html9
-rw-r--r--lightweight/templates/page.html12
-rw-r--r--lightweight/templates/sidebar.html5
-rw-r--r--lightweight/templates/tag.html0
-rw-r--r--lightweight/templates/tags.html0
12 files changed, 304 insertions, 0 deletions
diff --git a/lightweight/static/css/main.css b/lightweight/static/css/main.css
new file mode 100644
index 0000000..7dad177
--- /dev/null
+++ b/lightweight/static/css/main.css
@@ -0,0 +1,206 @@
+@font-face {
+ font-family: 'Goudy Bookletter 1911';
+ font-style: normal;
+ font-weight: normal;
+ src: local('Goudy Bookletter 1911'), local('GoudyBookletter1911'), url('http://themes.googleusercontent.com/font?kit=l5lwlGTN3pEY5Bf-rQEuILmKcuvUA98TddnVPjOJl_w') format('truetype');
+}
+
+header, footer, section, nav {
+ display: block;
+}
+
+body {
+ max-width: 1400px;
+ min-width: 800px;
+ margin: 0;
+ padding: 0;
+ /* Pensez à utiliser une collection de polices (2), par ex:
+ *///font-family: Arial, Helvetica, FreeSans, sans-serif;
+ font-size: .8em; /* À adapter pour la police choisie. (3) */
+ line-height: 1.3; /* À adapter au design. (4) */
+ color: #111;
+ background: white;
+}
+
+/* Titres */
+h1, h2, h3, h4, h5, h6 {
+ margin: 1em 0 .5em 0; /* Rapproche le titre du texte. (5) */
+ line-height: 1.2;
+ font-weight: bold; /* Valeur par défaut. (6) */
+ font-family: 'Goudy Bookletter 1911';
+ color: #111;
+ font-style: normal;
+}
+h1 {
+ font-size: 1.75em;
+}
+h2 {
+ font-size: 1.5em;
+}
+h2.page_title {
+ text-align: center;
+ text-decoration: none;
+ font-size: 2em;
+}
+ h2.page_title:before {
+ content: '~ ';
+ }
+ h2.page_title:after {
+ content: ' ~';
+ }
+h3 {
+ font-size: 1.25em;
+ margin-left: 15px;
+}
+h4 {
+ font-size: 1em;
+ margin-left: 30px;
+}
+
+/* Listes */
+ul, ol {
+ margin: .75em 0 .75em 32px;
+ padding: 0;
+}
+
+/* Paragraphes */
+p {
+ margin: .75em; /* Marges plus faibles que par défaut. (7) */
+}
+
+pre, blockquote, table {
+ border: 2px dotted silver;
+ margin: 15px 10px;
+ padding: 5px;
+ scroll: auto;
+}
+
+hr {
+ height: 0;
+ width: 60%;
+ margin: 15px auto;
+ color: transparent;
+ border-bottom: 2px dotted silver;
+}
+
+address {
+ margin: .75em 0;
+ font-style: normal;
+}
+
+/* Liens */
+a {
+ text-decoration: underline;
+}
+a:link {
+ color: #11C;
+ color: #222;
+}
+a:visited {
+ color: inherit;
+}
+a:hover, a:focus, a:active {
+ color: slategrey;
+}
+
+/* Pas de bordure autour des images dans les liens */
+a img {
+ border: none;
+}
+
+/* Divers éléments de type en-ligne (8) */
+em {
+ font-style: italic;
+}
+strong {
+ font-weight: bold;
+}
+
+/* Formulaires */
+form, fieldset {
+ margin: 0;
+ padding: 0;
+ border: none;
+}
+input, button, select {
+ vertical-align: middle; /* Solution pb. d'alignement. (9) */
+}
+
+
+div#page {
+ width: 75%;
+ margin: 5% auto 5% auto;
+ background: #EFEFEF;
+ border: 1px solid silver;
+ border-radius: 10px;
+}
+
+
+ header#header {
+ width: 100%;
+ height: 60px;
+ clear: both;
+ text-align: center;
+ border-bottom: 1px solid silver;
+ }
+
+ #header#header>h1 {
+ font-family: 'Goudy Bookletter 1911';
+ font-style: italic;
+ font-size: 200%;
+ }
+
+ #header#header>h1>a {
+ text-decoration: inherit;
+ color: inherit;
+ }
+
+ nav#menu {
+ width: 100%;
+ padding-top: 2px;
+ padding-bottom: 2px;
+ border-bottom: 1px solid silver;
+ text-align: center;
+ }
+
+ nav#menu a {
+ display: inline-block;
+ text-decoration: none;
+ margin: 2px;
+ padding: 1px;
+ border: 1px solid silver;
+ font-weight: bold;
+ color: #222;
+ }
+
+ nav#menu a:hover, nav#menu.active {
+ border: 1px solid SlateGrey;
+ color: #11C;
+ }
+
+ section#content {
+ float: left;
+ width: 75%;
+ border-right: 1px solid silver;
+ }
+
+ section#content article.post {
+ margin: 10px;
+ }
+
+ section.post_content, section.page_content {
+ margin: 10px;
+ }
+
+
+ aside#sidebar {
+ float: right;
+ width: 24%;
+ }
+
+footer#footer {
+ clear:both;
+ border-top: 1px solid silver;
+ padding: 5px 20px;
+}
+
diff --git a/lightweight/templates/archives.html b/lightweight/templates/archives.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lightweight/templates/archives.html
diff --git a/lightweight/templates/article.html b/lightweight/templates/article.html
new file mode 100644
index 0000000..b4d872e
--- /dev/null
+++ b/lightweight/templates/article.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %}
+
+{% block content %}
+ <article class="post">
+ <h2 class="page_title"><a href="{{ SITEURL }}/{{ article.url}}">{{ article.title }}</a></h2>
+ <details class="meta">
+ <p>
+ Posté{%if article.date %} le <time pubdate="pubdate" datetime="{{ article.date }}">{{ article.locale_date }}</time>{% endif %}{% if article.author %} par {{ article.author }}{% endif %} dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>».
+ {% if articles.tags %}<br />Tags : {% for tag in article.tags %}{% if loop.index > 1%}, {% endif %}<span class="tag"><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a></span>{% endfor %}{%endif%}
+ </p>
+ </details>
+ <section class="post_content">
+ {{ article.content }}
+ </section>
+ </article>
+{% endblock %}
diff --git a/lightweight/templates/base.html b/lightweight/templates/base.html
new file mode 100644
index 0000000..14a0d11
--- /dev/null
+++ b/lightweight/templates/base.html
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html>
+<html lang="{{ DEFAULT_LANG }}" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/main.css" type="text/css" />
+ <link href="{{ SITEURL }}/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} - Flux ATOM" />
+</html>
+<body>
+<div id="page">
+
+ <header id="header">
+ <h1><a href="{{ SITEURL }}/index.html">{{ SITENAME }}</a></h1>
+ </header>
+
+{% include 'menu.html' %}
+
+ <section id="content">
+{% block content %}
+{% endblock %}
+ </section> <!-- /#content -->
+
+{% include 'sidebar.html' %}
+
+
+ <footer id="footer">
+ <p>Propulsé par <a href="http://docs.notmyidea.org/alexis/pelican/index.html">Pelican</a>.</p>
+ </footer>
+</div> <!-- /#page -->
+</body>
+</html>
diff --git a/lightweight/templates/categories.html b/lightweight/templates/categories.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lightweight/templates/categories.html
diff --git a/lightweight/templates/category.html b/lightweight/templates/category.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lightweight/templates/category.html
diff --git a/lightweight/templates/index.html b/lightweight/templates/index.html
new file mode 100644
index 0000000..b51a318
--- /dev/null
+++ b/lightweight/templates/index.html
@@ -0,0 +1,23 @@
+{% extends "base.html" %}
+{% block title %}{{ SITENAME }} - Accueil{% endblock %}
+
+{% block content %}
+ {% if articles %}
+ {% for article in articles %}
+ <article class="post">
+ <h2 class="title"><a href="{{ SITEURL }}/{{ article.url}}">{{ article.title }}</a></h2>
+ <details class="meta">
+ <p>
+ Posté{%if article.date %} le <time pubdate="pubdate" datetime="{{ article.date }}">{{ article.date }}</time>{% endif %}{% if article.author %} par {{ article.author }}{% endif %} dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>».
+ {% if articles.tags %}<br />Tags : {% for tag in article.tags %}{% if loop.index > 1%}, {% endif %}<span class="tag"><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a></span>{% endfor %}{%endif%}
+ </p>
+ </details>
+
+ <section class="post_content">
+ {{ article.summary }}<br />
+ <a class="more" href="{{ SITEURL }}/{{ article.url }}">Lire la suite...</a>
+ </section>
+ </article>
+ {% endfor %}
+ {% endif %}
+{% endblock %}
diff --git a/lightweight/templates/menu.html b/lightweight/templates/menu.html
new file mode 100644
index 0000000..88d5d7a
--- /dev/null
+++ b/lightweight/templates/menu.html
@@ -0,0 +1,9 @@
+<nav id="menu">
+ <a href="{{ SITEURL }}/index.html">Accueil</a>
+ {% if DISPLAY_PAGES_ON_MENU != False%}
+ {% for p in PAGES %}
+ <a {% if p == page %}class="active" {% endif %}href="{{ SITEURL }}/pages/{{ p.url }}">{{ p.title }}</a>
+ {% endfor %}
+ {% endif %}
+
+</nav> <!-- /#nav -->
diff --git a/lightweight/templates/page.html b/lightweight/templates/page.html
new file mode 100644
index 0000000..47dc631
--- /dev/null
+++ b/lightweight/templates/page.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+{% block title %}{{ page.title }}{% endblock %}
+{% block content %}
+ <h2 class="page_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;">&nbsp;</div>
+ <section class="page_content">
+ {{ page.content }}
+ </section>
+
+{% endblock %}
diff --git a/lightweight/templates/sidebar.html b/lightweight/templates/sidebar.html
new file mode 100644
index 0000000..964b43c
--- /dev/null
+++ b/lightweight/templates/sidebar.html
@@ -0,0 +1,5 @@
+<aside id="sidebar">
+ <h2>Sidebar</h2>
+{% block sidebar %}
+{% endblock %}
+</aside>
diff --git a/lightweight/templates/tag.html b/lightweight/templates/tag.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lightweight/templates/tag.html
diff --git a/lightweight/templates/tags.html b/lightweight/templates/tags.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lightweight/templates/tags.html