aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2017-02-21 08:52:32 -0800
committerGitHub <noreply@github.com>2017-02-21 08:52:32 -0800
commitdaf25dfb2062270a1571d850c1d17ec9d0dbc98b (patch)
treeaf70eacd15b7cbe2114913b2acf28a0296911e34
parent42412ba752da93242a9784d9df5f6b680bce2d73 (diff)
parent185f6fdd3da30e6cfce6156992bd1fb15d79015d (diff)
downloadpelican-themes-daf25dfb2062270a1571d850c1d17ec9d0dbc98b.tar.gz
Merge pull request #491 from Bricabraque/master
Add Bricabrac theme
-rw-r--r--bricabrac/README.md28
-rw-r--r--bricabrac/archive.pngbin0 -> 23212 bytes
-rw-r--r--bricabrac/article.pngbin0 -> 105413 bytes
-rw-r--r--bricabrac/categories.pngbin0 -> 14485 bytes
-rw-r--r--bricabrac/index.pngbin0 -> 41128 bytes
-rw-r--r--bricabrac/static/css/main.css1
-rw-r--r--bricabrac/templates/archives.html16
-rw-r--r--bricabrac/templates/article.html15
-rw-r--r--bricabrac/templates/author.html2
-rw-r--r--bricabrac/templates/base.html42
-rw-r--r--bricabrac/templates/categories.html15
-rw-r--r--bricabrac/templates/index.html32
-rw-r--r--bricabrac/templates/page.html13
-rw-r--r--bricabrac/templates/pagination.html15
-rw-r--r--bricabrac/templates/taglist.html2
-rw-r--r--bricabrac/templates/tags.html16
-rw-r--r--bricabrac/templates/translations.html6
17 files changed, 203 insertions, 0 deletions
diff --git a/bricabrac/README.md b/bricabrac/README.md
new file mode 100644
index 0000000..ba84861
--- /dev/null
+++ b/bricabrac/README.md
@@ -0,0 +1,28 @@
+# Bricabrac
+## A minimalist Pelican theme
+Brc is a minimalist theme for the static site generator [Pelican](https://blog.getpelican.com/).
+It is based on the [mnmlist theme](https://github.com/getpelican/pelican-themes/tree/master/mnmlist).
+
+Note: templates include hard-coded French words, you must edit the .html files in order to modify them in the wanted language.
+
+## How-to
+
+To use this theme, just extract the archive to the `themes` folder in your Pelican site path. Then add the line below to your pelicanconf.py :
+
+ THEME = 'themes/brc-pelican-theme'
+
+## Screenshots
+
+![Home page](index.png)
+
+---
+
+![Article](article.png)
+
+---
+
+![Category list](categories.png)
+
+---
+
+![Archive](archive.png)
diff --git a/bricabrac/archive.png b/bricabrac/archive.png
new file mode 100644
index 0000000..ad57ff7
--- /dev/null
+++ b/bricabrac/archive.png
Binary files differ
diff --git a/bricabrac/article.png b/bricabrac/article.png
new file mode 100644
index 0000000..b64ec94
--- /dev/null
+++ b/bricabrac/article.png
Binary files differ
diff --git a/bricabrac/categories.png b/bricabrac/categories.png
new file mode 100644
index 0000000..f7f9077
--- /dev/null
+++ b/bricabrac/categories.png
Binary files differ
diff --git a/bricabrac/index.png b/bricabrac/index.png
new file mode 100644
index 0000000..cc44115
--- /dev/null
+++ b/bricabrac/index.png
Binary files differ
diff --git a/bricabrac/static/css/main.css b/bricabrac/static/css/main.css
new file mode 100644
index 0000000..e2780f9
--- /dev/null
+++ b/bricabrac/static/css/main.css
@@ -0,0 +1 @@
+*{box-sizing:border-box;}html,body{background:none repeat scroll 0% 0% #fefefe;color:#333;font-family:'EB Garamond',serif;line-height:2.5em;}#conteneur{margin:auto;padding:1em 0 1em;width:600px;}h1,h2,h3,h4{font-family:'Helvetica',sans-serif;}h1{color:#333;font-weight:normal;}h2,h3,h4{color:#666;}time{color:#888;font-family:'Helvetica',sans-serif;}blockquote{border-left:1px solid #a5abab;padding:0 12px 0 12px;}p{font-size:22px;white-space:pre-wrap;}a{color:#c5000b;text-decoration:none;}a:hover{color:#999;}hr{border:none;color:#333;margin:3em auto 4em;text-align:center;}hr:after{content:'\002042';}ul li,ol li,dl dd,dl dt{font-size:25px;}strong{color:#444;font-weight:bold;}header{padding:2em 0 0;}header a{color:#333;}header a#page-title{color:#c5000b;font-weight:bold;}#article-list{margin-top:6em;}#article-list ol li{list-style-type:none;}.simple-footnotes{border-top:1px solid #666;margin-top:4em;padding-top:1em;}footer{font-family:'Helvetica',sans-serif;letter-spacing:4px;padding:3em 0 2em;}footer a{color:#888;}footer li{display:inline;font-size:.9em;}@media only screen and (max-width:650px){#conteneur{width:90%;}}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block;}audio,canvas,progress,video{display:inline-block;vertical-align:baseline;}audio:not([controls]){display:none;height:0;}[hidden],template{display:none;}a{background-color:transparent;}a:active,a:hover{outline:0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}h1{font-size:2em;margin:0;}mark{background:#ff0;color:#000;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:1em 40px;}hr{box-sizing:content-box;height:0;}pre{overflow:auto;}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em;}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;}button{overflow:visible;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}input{line-height:normal;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto;}input[type="search"]{-webkit-appearance:textfield;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}fieldset{border:none;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}textarea{overflow:auto;}optgroup{font-weight:bold;}table{border-collapse:collapse;border-spacing:0;}td,th{padding:0;}
diff --git a/bricabrac/templates/archives.html b/bricabrac/templates/archives.html
new file mode 100644
index 0000000..2f424f8
--- /dev/null
+++ b/bricabrac/templates/archives.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+{% block content %}
+<header>
+<h1>
+<a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> :
+<a href="{{ SITEURL }}/archives.html" id="page-title">archives</a></h1>
+</header>
+<section id="content" class="body">
+<dl>
+{% for article in dates %}
+<dt>{{ article.locale_date }}</dt>
+<dd><a href='{{ SITEURL }}/{{ article.url }}'>{{ article.title }}</a></dd>
+{% endfor %}
+</dl>
+</section>
+{% endblock %}
diff --git a/bricabrac/templates/article.html b/bricabrac/templates/article.html
new file mode 100644
index 0000000..61d4a45
--- /dev/null
+++ b/bricabrac/templates/article.html
@@ -0,0 +1,15 @@
+{%- if article.lang %}{% set DEFAULT_LANG = article.lang %}{% endif -%}
+{% extends "base.html" %}
+{% block title %}{{ super() }} : {{ article.title }}{% endblock %}
+{% block content %}
+<header>
+<h1>
+<a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> :
+<a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
+{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
+</header>
+<article>
+<div class="meta" style="text-align:right;">{% if article.translations %}{% for translation in article.translations %}{{ article.lang or DEFAULT_LANG }}&nbsp;|&nbsp;<a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div>
+{{ article.content }}
+</article>
+{% endblock %}
diff --git a/bricabrac/templates/author.html b/bricabrac/templates/author.html
new file mode 100644
index 0000000..0b37290
--- /dev/null
+++ b/bricabrac/templates/author.html
@@ -0,0 +1,2 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ author }}{% endblock %}
diff --git a/bricabrac/templates/base.html b/bricabrac/templates/base.html
new file mode 100644
index 0000000..7d61e87
--- /dev/null
+++ b/bricabrac/templates/base.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="fr">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1" />
+<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
+<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
+<link rel="icon" type="image/png" href="{{ SITEURL }}/theme/fav.png" />
+<title>{% block title %}{{ SITENAME }} {%endblock%}</title>
+<!--[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>
+<div id="conteneur">
+{% block content %}
+{% endblock %}
+<footer>
+<nav>
+<ul>
+<li><a href="https://blog.getpelican.com/">Pelican</a> & <a href="">brc theme</a></li>
+{% 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">catégories</a></li>
+{% endif %}
+{% if tags|length > 1 %}
+<li>:: <a href="{{ SITEURL }}/tags.html">tags</a></li>
+{% endif %}
+<li>:: <a href="{{ SITEURL }}/archives.html">archives</a></li>
+<li>:: <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}">atom</a></li>
+</ul>
+</nav>
+</footer>
+</div>
+</body>
+</html>
diff --git a/bricabrac/templates/categories.html b/bricabrac/templates/categories.html
new file mode 100644
index 0000000..380bddc
--- /dev/null
+++ b/bricabrac/templates/categories.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+{% block content %}
+<header>
+<h1>
+<a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> :
+<a href="{{ SITEURL }}/archives.html" id="page-title">catégories</a></h1>
+</header>
+<section id="content" class="body">
+<ul>
+{% for category, articles in categories %}
+ <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
+{% endfor %}
+</ul>
+</section>
+{% endblock %}
diff --git a/bricabrac/templates/index.html b/bricabrac/templates/index.html
new file mode 100644
index 0000000..6797900
--- /dev/null
+++ b/bricabrac/templates/index.html
@@ -0,0 +1,32 @@
+{% 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 }}" id="site-title">{{ SITENAME }} {% if SITEDESCRIPTION %} <strong>{{ SITEDESCRIPTION }}</strong>{% endif %}</a> : <a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
+{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
+</header>
+<article>
+{{ article.summary }}
+<p><a href="{{ SITEURL }}/{{ article.url }}" id="page-title"><u>lire la suite</u></a></p>
+</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="Permalien vers {{ article.title|striptags }}">{{ article.title }}</a></li>
+ {% endif %}
+{% endfor %}
+ </ol>
+ </section><!-- #article-list -->
+{% else %}
+ No posts found.
+{% endif %}
+{% endblock content %}
diff --git a/bricabrac/templates/page.html b/bricabrac/templates/page.html
new file mode 100644
index 0000000..4509e10
--- /dev/null
+++ b/bricabrac/templates/page.html
@@ -0,0 +1,13 @@
+{%- if page.lang %}{% set DEFAULT_LANG = page.lang %}{% endif -%}
+{% extends "base.html" %}
+{% block title %}{{ super() }} : {{ page.title }}{% endblock %}
+{% block content %}
+<header>
+<h1><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> :
+<a href="{{ SITEURL }}/{{ page.url }}" id="page-title">{{ page.title }}</a></h1>
+</header>
+<article>
+<div class="meta" style="text-align:right;">{% if page.translations %}{% for translation in page.translations %}{{ page.lang or DEFAULT_LANG }}&nbsp;|&nbsp;<a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div>
+{{ page.content }}
+</article>
+{% endblock %}
diff --git a/bricabrac/templates/pagination.html b/bricabrac/templates/pagination.html
new file mode 100644
index 0000000..839a6d0
--- /dev/null
+++ b/bricabrac/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 %} \ No newline at end of file
diff --git a/bricabrac/templates/taglist.html b/bricabrac/templates/taglist.html
new file mode 100644
index 0000000..4c783e8
--- /dev/null
+++ b/bricabrac/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">exporter en pdf</a></p>{% endif %}
diff --git a/bricabrac/templates/tags.html b/bricabrac/templates/tags.html
new file mode 100644
index 0000000..11a8862
--- /dev/null
+++ b/bricabrac/templates/tags.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+{% block content %}
+<header>
+<h1>
+<a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> :
+<a href="{{ SITEURL }}/archives.html" id="page-title">tags</a></h1>
+</header>
+<section id="content" class="body">
+<ul>
+{% for tag, articles in tags %}
+ <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
+{% endfor %}
+</ul>
+</section>
+{% endblock %}
+
diff --git a/bricabrac/templates/translations.html b/bricabrac/templates/translations.html
new file mode 100644
index 0000000..0079883
--- /dev/null
+++ b/bricabrac/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 %}