From 185f6fdd3da30e6cfce6156992bd1fb15d79015d Mon Sep 17 00:00:00 2001 From: Bricabraque Date: Tue, 21 Feb 2017 00:12:00 +0100 Subject: Add bricabrac theme --- bricabrac/README.md | 28 +++++++++++++++++++++++ bricabrac/archive.png | Bin 0 -> 23212 bytes bricabrac/article.png | Bin 0 -> 105413 bytes bricabrac/categories.png | Bin 0 -> 14485 bytes bricabrac/index.png | Bin 0 -> 41128 bytes bricabrac/static/css/main.css | 1 + bricabrac/templates/archives.html | 16 +++++++++++++ bricabrac/templates/article.html | 15 ++++++++++++ bricabrac/templates/author.html | 2 ++ bricabrac/templates/base.html | 42 ++++++++++++++++++++++++++++++++++ bricabrac/templates/categories.html | 15 ++++++++++++ bricabrac/templates/index.html | 32 ++++++++++++++++++++++++++ bricabrac/templates/page.html | 13 +++++++++++ bricabrac/templates/pagination.html | 15 ++++++++++++ bricabrac/templates/taglist.html | 2 ++ bricabrac/templates/tags.html | 16 +++++++++++++ bricabrac/templates/translations.html | 6 +++++ 17 files changed, 203 insertions(+) create mode 100644 bricabrac/README.md create mode 100644 bricabrac/archive.png create mode 100644 bricabrac/article.png create mode 100644 bricabrac/categories.png create mode 100644 bricabrac/index.png create mode 100644 bricabrac/static/css/main.css create mode 100644 bricabrac/templates/archives.html create mode 100644 bricabrac/templates/article.html create mode 100644 bricabrac/templates/author.html create mode 100644 bricabrac/templates/base.html create mode 100644 bricabrac/templates/categories.html create mode 100644 bricabrac/templates/index.html create mode 100644 bricabrac/templates/page.html create mode 100644 bricabrac/templates/pagination.html create mode 100644 bricabrac/templates/taglist.html create mode 100644 bricabrac/templates/tags.html create mode 100644 bricabrac/templates/translations.html 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 Binary files /dev/null and b/bricabrac/archive.png differ diff --git a/bricabrac/article.png b/bricabrac/article.png new file mode 100644 index 0000000..b64ec94 Binary files /dev/null and b/bricabrac/article.png differ diff --git a/bricabrac/categories.png b/bricabrac/categories.png new file mode 100644 index 0000000..f7f9077 Binary files /dev/null and b/bricabrac/categories.png differ diff --git a/bricabrac/index.png b/bricabrac/index.png new file mode 100644 index 0000000..cc44115 Binary files /dev/null and b/bricabrac/index.png 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 %} +
+

+{{ SITENAME }} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} : +archives

+
+
+
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+
+{% 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 %} +
+

+{{ SITENAME }} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} : +{{ article.title }}

+{% if not HIDE_DATE %}{% endif %} +
+
+
{% if article.translations %}{% for translation in article.translations %}{{ article.lang or DEFAULT_LANG }} | {{ translation.lang }}{% endfor %}{% endif %}
+{{ article.content }} +
+{% 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 @@ + + + + + + + + +{% block title %}{{ SITENAME }} {%endblock%} + + + + + +
+{% block content %} +{% endblock %} + +
+ + 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 %} +
+

+{{ SITENAME }} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} : +catégories

+
+
+ +
+{% 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 %} +
+

{{ SITENAME }} {% if SITEDESCRIPTION %} {{ SITEDESCRIPTION }}{% endif %} : {{ article.title }}

+{% if not HIDE_DATE %}{% endif %} +
+
+{{ article.summary }} +

lire la suite

+
+ {% if loop.length > 1 %} +
+

Tous les articles

+
    + {% endif %} + {# other items #} + {% else %} +
  1. {{ article.title }}
  2. + {% endif %} +{% endfor %} +
+
+{% 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 %} +
+

{{ SITENAME }} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} : +{{ page.title }}

+
+
+
{% if page.translations %}{% for translation in page.translations %}{{ page.lang or DEFAULT_LANG }} | {{ translation.lang }}{% endfor %}{% endif %}
+{{ page.content }} +
+{% 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 %} +

+{% if articles_page.has_previous() %} +{% if articles_page.previous_page_number() == 1 %} +« +{% else %} +« +{% endif %} +{% endif %} +Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} +{% if articles_page.has_next() %} +» +{% endif %} +

+{% 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 %}

tags: {% for tag in article.tags %}{{ tag }}{% endfor %}

{% endif %} +{% if PDF_PROCESSOR %}

exporter en pdf

{% 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 %} +
+

+{{ SITENAME }} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} : +tags

+
+
+ +
+{% 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 %} + {{ translation.lang }} + {% endfor %} +{% endif %} -- cgit