diff options
author | Badaboum <bricabrac@grainedutopie.eu> | 2017-09-04 20:19:34 +0200 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2017-09-04 11:19:34 -0700 |
commit | fead1fbe83caa45fce1d475bbdd81c7394aae6ab (patch) | |
tree | e379bb2ac1817be804dcc5dfc4a15b05d7d7a408 /bricabrac | |
parent | 7adcf67c02df99da3cdc8e881843ae443bcf5e34 (diff) | |
download | pelican-themes-fead1fbe83caa45fce1d475bbdd81c7394aae6ab.tar.gz |
Bricabrac: Update theme (#512)
Diffstat (limited to 'bricabrac')
25 files changed, 193 insertions, 61 deletions
diff --git a/bricabrac/README.md b/bricabrac/README.md index d59ccfc..682709e 100644 --- a/bricabrac/README.md +++ b/bricabrac/README.md @@ -3,30 +3,16 @@ Bricabrac 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 and copy the bricabrac theme folder to the `themes` folder in your Pelican site path. Then add the line below to your pelicanconf.py : THEME = 'themes/bricabrac-pelican-theme' -## Live demo - -You can see a live demo of this theme on my personal web-log : [bricabraque.github.com](https://bricabraque.github.io). - -## Screenshots - -![Home page](index.png) +## Localization ---- +This theme can handle several locales and languages for your website through the i18n-subsites jinja extension. -![Article](article.png) - ---- - -![Category list](categories.png) - ---- +## Live demo -![Archive](archive.png) +You can see a live demo of this theme on my personal web-log : [bricabraque.grainedutopie.eu](https://bricabrac.grainedutopie.eu).
\ No newline at end of file diff --git a/bricabrac/archive.png b/bricabrac/archive.png Binary files differdeleted file mode 100644 index ad57ff7..0000000 --- a/bricabrac/archive.png +++ /dev/null diff --git a/bricabrac/article.png b/bricabrac/article.png Binary files differdeleted file mode 100644 index b64ec94..0000000 --- a/bricabrac/article.png +++ /dev/null diff --git a/bricabrac/babel.cfg b/bricabrac/babel.cfg new file mode 100644 index 0000000..2274808 --- /dev/null +++ b/bricabrac/babel.cfg @@ -0,0 +1 @@ +[jinja2: templates/**.html] diff --git a/bricabrac/categories.png b/bricabrac/categories.png Binary files differdeleted file mode 100644 index f7f9077..0000000 --- a/bricabrac/categories.png +++ /dev/null diff --git a/bricabrac/index.png b/bricabrac/index.png Binary files differdeleted file mode 100644 index cc44115..0000000 --- a/bricabrac/index.png +++ /dev/null diff --git a/bricabrac/messages.pot b/bricabrac/messages.pot new file mode 100644 index 0000000..25335f4 --- /dev/null +++ b/bricabrac/messages.pot @@ -0,0 +1,35 @@ +# Translations template for Bricabrac pelican theme. +# CC-BY 2017 Bricabrac +# This file is distributed under the same license as the Bricabrac pelican theme project. +# Bricabrac <bricabrac@grainedutopie.eu>, 2017. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: 1.0\n" +"Report-Msgid-Bugs-To: bricabrac@grainedutopie.eu\n" +"POT-Creation-Date: 2017-03-15 14:06+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Bricabrac <bricabrac@grainedutopie.eu>\n" +"Language-Team: none\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: templates/base.html:36 templates/categories.html:6 +msgid "catégories" +msgstr "catégories" + +#: templates/index.html:15 +msgid "lire la suite" +msgstr "lire la suite" + +#: templates/index.html:19 +msgid "Tous les articles" +msgstr "Tous les articles" + +#: templates/index.html:30 +msgid "Aucun article" +msgstr "Aucun article" + diff --git a/bricabrac/static/css/main.css b/bricabrac/static/css/main.css index e2780f9..fbdc541 100644 --- a/bricabrac/static/css/main.css +++ b/bricabrac/static/css/main.css @@ -1 +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;} +@font-face{font-family:Alegreya;src:url('../fonts/alegreya/Alegreya-Regular.otf') format("opentype");font-weight:400;font-style:normal;}@font-face{font-family:Alegreya;src:url('../fonts/alegreya/Alegreya-Italic.otf') format("opentype");font-weight:400;font-style:italic;}@font-face{font-family:Alegreya;src:url('../fonts/alegreya/Alegreya-Bold.otf') format("opentype");font-weight:700;font-style:italic;}@font-face{font-family:Alegreya Sans;src:url('../fonts/alegreya-sans/AlegreyaSans-Regular.otf') format("opentype");font-weight:400;font-style:normal;}@font-face{font-family:Alegreya Sans;src:url('../fonts/alegreya-sans/AlegreyaSans-Medium.otf') format("opentype");font-weight:500;font-style:normal;}@font-face{font-family:Alegreya Sans;src:url('../fonts/alegreya-sans/AlegreyaSans-Bold.otf') format("opentype");font-weight:700;font-style:normal;}*{box-sizing:border-box;}html,body{background:none repeat scroll 0% 0% #fefefe;color:#333;font-family:'Alegreya',serif;line-height:2em;}#conteneur{margin:auto;width:560px;}h1,h2,h3,h4{font-family:'Alegreya Sans',sans-serif;font-weight:500;font-style:normal;}h1{color:#333;font-weight:normal;}h2,h3,h4{color:#444;}article h1,h2,h3,h4{padding:1em 0 .5em;}time{color:#888;font-family:'Alegreya Sans',sans-serif;font-size:1.2em;font-weight:400;}blockquote{border-left:1px solid #a5abab;padding:0 12px 0 12px;}p{font-size:20px;text-align:justify;padding:0;margin:0;line-height:1.3em;}#continue{margin-top:.5em;}article p:first-letter{margin-left:1em;}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:20px;}ul,ol,dl{line-height:1.4em;}dl{padding-left:1em;}header{padding:2em 0 1em;}header a{color:#333;}header a#page-title{color:#c5000b;font-weight:700;}#article-list{margin-top:2em;}#article-list h2{line-height:1em;padding-bottom:0;}#article-list ol li{list-style-type:none;}.simple-footnotes{border-top:1px solid #666;margin-top:4em;padding-top:1em;}footer{font-family:'Alegreya Sans',sans-serif;letter-spacing:4px;padding:2em 0 2em;text-align:right;}footer a{color:#666;}footer li{display:inline;font-size:15px;}@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:700;}dfn,i,em{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;line-height:1.3em;background-color:#eee;padding:1em;}code{font-size:.7em;padding:0;}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/static/fonts/alegreya-sans/AlegreyaSans-Bold.otf b/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Bold.otf Binary files differnew file mode 100644 index 0000000..f44c12a --- /dev/null +++ b/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Bold.otf diff --git a/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Italic.otf b/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Italic.otf Binary files differnew file mode 100644 index 0000000..16218fd --- /dev/null +++ b/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Italic.otf diff --git a/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Medium.otf b/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Medium.otf Binary files differnew file mode 100644 index 0000000..285fa87 --- /dev/null +++ b/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Medium.otf diff --git a/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Regular.otf b/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Regular.otf Binary files differnew file mode 100644 index 0000000..237e5b6 --- /dev/null +++ b/bricabrac/static/fonts/alegreya-sans/AlegreyaSans-Regular.otf diff --git a/bricabrac/static/fonts/alegreya-sans/SIL Open Font License.txt b/bricabrac/static/fonts/alegreya-sans/SIL Open Font License.txt new file mode 100644 index 0000000..ce39b5b --- /dev/null +++ b/bricabrac/static/fonts/alegreya-sans/SIL Open Font License.txt @@ -0,0 +1,43 @@ +Copyright (c) 2013, Juan Pablo del Peral (juan@huertatipografica.com.ar), with Reserved Font Names 'Alegreya Sans' + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the copyright statement(s). + +"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
\ No newline at end of file diff --git a/bricabrac/static/fonts/alegreya/Alegreya-Bold.otf b/bricabrac/static/fonts/alegreya/Alegreya-Bold.otf Binary files differnew file mode 100644 index 0000000..e3744b2 --- /dev/null +++ b/bricabrac/static/fonts/alegreya/Alegreya-Bold.otf diff --git a/bricabrac/static/fonts/alegreya/Alegreya-Italic.otf b/bricabrac/static/fonts/alegreya/Alegreya-Italic.otf Binary files differnew file mode 100644 index 0000000..cce4eda --- /dev/null +++ b/bricabrac/static/fonts/alegreya/Alegreya-Italic.otf diff --git a/bricabrac/static/fonts/alegreya/Alegreya-Regular.otf b/bricabrac/static/fonts/alegreya/Alegreya-Regular.otf Binary files differnew file mode 100644 index 0000000..80324b4 --- /dev/null +++ b/bricabrac/static/fonts/alegreya/Alegreya-Regular.otf diff --git a/bricabrac/static/fonts/alegreya/SIL Open Font License.txt b/bricabrac/static/fonts/alegreya/SIL Open Font License.txt new file mode 100644 index 0000000..8abf613 --- /dev/null +++ b/bricabrac/static/fonts/alegreya/SIL Open Font License.txt @@ -0,0 +1,44 @@ +Copyright (c) 2011, Juan Pablo del Peral (juan@huertatipografica.com.ar), +with Reserved Font Names "Alegreya" "Alegreya SC" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the copyright statement(s). + +"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
\ No newline at end of file diff --git a/bricabrac/templates/archives.html b/bricabrac/templates/archives.html deleted file mode 100644 index 2f424f8..0000000 --- a/bricabrac/templates/archives.html +++ /dev/null @@ -1,16 +0,0 @@ -{% 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 index 61d4a45..768c9d3 100644 --- a/bricabrac/templates/article.html +++ b/bricabrac/templates/article.html @@ -9,7 +9,7 @@ {% 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 }} | <a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div> +<!--<div class="meta" style="text-align:right;">{% if article.translations %}{% for translation in article.translations %}{{ article.lang or DEFAULT_LANG }} | <a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div>--> {{ article.content }} </article> {% endblock %} diff --git a/bricabrac/templates/base.html b/bricabrac/templates/base.html index 03b0099..d372b93 100644 --- a/bricabrac/templates/base.html +++ b/bricabrac/templates/base.html @@ -3,37 +3,39 @@ <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" /> +<link rel="stylesheet" href="{{ SITEURL }}/../theme/css/{{ CSS_FILE }}" type="text/css" /> +{% if FEED_ALL_ATOM %} +<link href="./{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" /> +{% endif %} +{% if FEED_ALL_RSS %} +<link href="./{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> +{% endif %} +<!--<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"> +<!-- SNIP --> {% block content %} {% endblock %} <footer> <nav> <ul> -<li><a href="https://blog.getpelican.com/">Pelican</a> & <a href="https://github.com/Bricabraque/bricabrac-pelican-theme">bricabrac</a></li> +{% if extra_siteurls %} +{% for lang, url in extra_siteurls.items() %} +<li><a href="{{ url }}/">{{ lang | lookup_lang_name }}</a></li> +{% endfor %} +{% endif %} +<!--<li><a href="https://blog.getpelican.com/">Pelican</a> & <a href="https://github.com/Bricabraque/bricabrac-pelican-theme">bricabrac</a></li>--> {% for page in pages %} -<li> :: <a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>{% if not loop.last %}{% endif %}</li> +<li>:: <a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>{% if not loop.last %}{% endif %}</li> {% endfor %} -<li> :: <a href="{{ SITEURL }}/archives.html">archives</a></li> {% if categories|length > 1 %} -<li> :: <a href="{{ SITEURL }}/categories.html">catégories</a></li> +<li> :: <a href="{{ SITEURL }}/categories.html">{{ gettext('catégories') }}</a></li> {% endif %} {% if tags|length > 1 %} <li> :: <a href="{{ SITEURL }}/tags.html">tags</a></li> {% endif %} -<li> :: <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}">atom</a></li> {% if SOCIAL %} {% for name, link in SOCIAL %} <li> :: <a href="{{ link }}">{{ name }}</a></li> diff --git a/bricabrac/templates/categories.html b/bricabrac/templates/categories.html index 380bddc..a3ef625 100644 --- a/bricabrac/templates/categories.html +++ b/bricabrac/templates/categories.html @@ -3,7 +3,7 @@ <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> +<a href="{{ SITEURL }}/archives.html" id="page-title">{{ gettext('catégories') }}</a></h1> </header> <section id="content" class="body"> <ul> diff --git a/bricabrac/templates/index.html b/bricabrac/templates/index.html index 6797900..f5dde62 100644 --- a/bricabrac/templates/index.html +++ b/bricabrac/templates/index.html @@ -12,21 +12,22 @@ </header> <article> {{ article.summary }} -<p><a href="{{ SITEURL }}/{{ article.url }}" id="page-title"><u>lire la suite</u></a></p> </article> +<p id="continue"><a href="{{ SITEURL }}/{{ article.url }}" id="page-title"><u>{{ gettext('lire la suite') }}</u></a></p> {% if loop.length > 1 %} <section id="article-list"> -<h2>Tous les articles</h2> -<ol> +<h2>{{ gettext('Tous les articles') }}</h2> +<dl> {% endif %} {# other items #} - {% else %} -<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalien vers {{ article.title|striptags }}">{{ article.title }}</a></li> + {% else %} +<dt>{{ article.locale_date }}</dt> +<dd><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark">{{ article.title }}</a></dd> {% endif %} {% endfor %} - </ol> - </section><!-- #article-list --> + </dl> {% else %} - No posts found. + <p>{{ gettext('Aucun article') }}.</p> + </section><!-- #article-list --> {% endif %} {% endblock content %} diff --git a/bricabrac/templates/page.html b/bricabrac/templates/page.html index 4509e10..ae3f0ab 100644 --- a/bricabrac/templates/page.html +++ b/bricabrac/templates/page.html @@ -7,7 +7,7 @@ <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 }} | <a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div> +<!--<div class="meta" style="text-align:right;">{% if page.translations %}{% for translation in page.translations %}{{ page.lang or DEFAULT_LANG }} | <a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div>--> {{ page.content }} </article> {% endblock %} diff --git a/bricabrac/translations/en/LC_MESSAGES/messages.mo b/bricabrac/translations/en/LC_MESSAGES/messages.mo Binary files differnew file mode 100644 index 0000000..d161d41 --- /dev/null +++ b/bricabrac/translations/en/LC_MESSAGES/messages.mo diff --git a/bricabrac/translations/en/LC_MESSAGES/messages.po b/bricabrac/translations/en/LC_MESSAGES/messages.po new file mode 100644 index 0000000..607042f --- /dev/null +++ b/bricabrac/translations/en/LC_MESSAGES/messages.po @@ -0,0 +1,36 @@ +# English translations for Bricabrac pelican theme. +# CC-BY 2017 Bricabrac +# This file is distributed under the same license as the Bricabrac pelican +# theme project. +# Bricabrac <bricabrac@grainedutopie.eu>, 2017. +# +msgid "" +msgstr "" +"Project-Id-Version: 1.0\n" +"Report-Msgid-Bugs-To: bricabrac@grainedutopie.eu\n" +"POT-Creation-Date: 2017-03-15 14:06+0100\n" +"PO-Revision-Date: 2017-03-15 14:09+0100\n" +"Last-Translator: Bricabrac <bricabrac@grainedutopie.eu>\n" +"Language: en\n" +"Language-Team: none\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: templates/base.html:36 templates/categories.html:6 +msgid "catégories" +msgstr "categories" + +#: templates/index.html:15 +msgid "lire la suite" +msgstr "continue reading" + +#: templates/index.html:19 +msgid "Tous les articles" +msgstr "All posts" + +#: templates/index.html:30 +msgid "Aucun article" +msgstr "No post" |