From 1bcb149edda11531986d0db855529ef123a69d18 Mon Sep 17 00:00:00 2001 From: Mathieu Agopian Date: Sat, 3 Mar 2012 09:41:45 +0100 Subject: [PATCH] mnmlist theme --- mnmlist/README.rst | 22 +++ mnmlist/compass/config.rb | 6 + mnmlist/compass/src/main.scss | 141 ++++++++++++++++++ mnmlist/static/css/main.css | 170 ++++++++++++++++++++++ mnmlist/static/css/pygment.css | 205 +++++++++++++++++++++++++++ mnmlist/templates/analytics.html | 11 ++ mnmlist/templates/archives.html | 13 ++ mnmlist/templates/article.html | 12 ++ mnmlist/templates/author.html | 2 + mnmlist/templates/authors.html | 0 mnmlist/templates/base.html | 50 +++++++ mnmlist/templates/categories.html | 8 ++ mnmlist/templates/category.html | 2 + mnmlist/templates/comments.html | 1 + mnmlist/templates/disqus_script.html | 11 ++ mnmlist/templates/github.html | 9 ++ mnmlist/templates/index.html | 34 +++++ mnmlist/templates/page.html | 11 ++ mnmlist/templates/pagination.html | 15 ++ mnmlist/templates/piwik.html | 16 +++ mnmlist/templates/tag.html | 2 + mnmlist/templates/taglist.html | 2 + mnmlist/templates/tags.html | 9 ++ mnmlist/templates/translations.html | 6 + mnmlist/templates/twitter.html | 3 + 25 files changed, 761 insertions(+) create mode 100644 mnmlist/README.rst create mode 100644 mnmlist/compass/config.rb create mode 100644 mnmlist/compass/src/main.scss create mode 100644 mnmlist/static/css/main.css create mode 100644 mnmlist/static/css/pygment.css create mode 100644 mnmlist/templates/analytics.html create mode 100644 mnmlist/templates/archives.html create mode 100644 mnmlist/templates/article.html create mode 100644 mnmlist/templates/author.html create mode 100644 mnmlist/templates/authors.html create mode 100644 mnmlist/templates/base.html create mode 100644 mnmlist/templates/categories.html create mode 100644 mnmlist/templates/category.html create mode 100644 mnmlist/templates/comments.html create mode 100644 mnmlist/templates/disqus_script.html create mode 100644 mnmlist/templates/github.html create mode 100644 mnmlist/templates/index.html create mode 100644 mnmlist/templates/page.html create mode 100644 mnmlist/templates/pagination.html create mode 100644 mnmlist/templates/piwik.html create mode 100644 mnmlist/templates/tag.html create mode 100644 mnmlist/templates/taglist.html create mode 100644 mnmlist/templates/tags.html create mode 100644 mnmlist/templates/translations.html create mode 100644 mnmlist/templates/twitter.html diff --git a/mnmlist/README.rst b/mnmlist/README.rst new file mode 100644 index 0000000..c863513 --- /dev/null +++ b/mnmlist/README.rst @@ -0,0 +1,22 @@ +mnmlist +####### + +This is the `mnmlist theme `_ adapted for Pelican. + + +Settings +~~~~~~~~ + +There's one additional setting used by this theme, if present: + +:: + + HIDE_DATE = False + +If ``HIDE_DATE`` is set to ``True``, dates won't be displayed under the blog post titles. + + +Compass +~~~~~~~ + +The ``main.css`` file is generated from the ``compass/src/main.scss`` sass file, using http://compass-style.org/. diff --git a/mnmlist/compass/config.rb b/mnmlist/compass/config.rb new file mode 100644 index 0000000..29d91ee --- /dev/null +++ b/mnmlist/compass/config.rb @@ -0,0 +1,6 @@ +# Require any additional compass plugins here. +# Set this to the root of your project when deployed: +css_dir = "../static/css" +sass_dir = "src" +# To enable relative paths to assets via compass helper functions. Uncomment: +relative_assets = true diff --git a/mnmlist/compass/src/main.scss b/mnmlist/compass/src/main.scss new file mode 100644 index 0000000..b01954f --- /dev/null +++ b/mnmlist/compass/src/main.scss @@ -0,0 +1,141 @@ +/* + Theme Name: mnmlist + Theme URI: http://mathieu.agopian.info/mnmlist/theme.html + Description: Theme adapted from http://mnmlist.com/theme/ from Leo Babauta, a very clean minimalist theme, without comments, search, archives or other features. + Author: Mathieu Agopian + Autor URI: http://mathieu.agopian.info + + This theme is uncopyrighted, free, and offered as is. +*/ + +@import url("pygment.css"); + +body { + background: #fff; + color: #333; + font: 20px Hoefler Text, bodyfont, serif; + line-height: 30px; + max-width: 30em; + margin: 60px 14px 0 64px; +} + +h1 { + color:#333; + font-family: Helvetica, sans-serif; + font-size: 1.5em; + font-weight: normal; + line-height: 26px; + margin-bottom: 0; +} + +h2 { + color:#666; + font-family: Helvetica, sans-serif; + font-size: 18px; + line-height: 15px; + padding-top: 10px; +} + +h3 { + font-family: Georgia, "Times New Roman", Times, serif; + font-size: 1em; color:#000000; +} + +h4 { + color:#000000; + font-size: 9pt; +} + +time { + color: #c0c0c0; + font-size: 50%; +} + +img { + border: none; +} + +blockquote { + border-left: 1px solid #A5ABAB; + margin:0px; + padding:0 12px 0 12px; +} + +p { + line-height: 30px; + margin:30px auto; + text-indent: 0px; + &.caption { + font-size: 80%; + margin-top: 0; + } +} + +a { + border-bottom: #999 1px solid; + color: #303030; + text-decoration: none; + &:hover { color: #999; } +} + +ul, ol { + padding: .5em 0em 1em 3.2em; + li { + line-height: 30px; + padding: 6px 0 0 0; + } +} + +strong { + color: #555555; + font-family: Georgia, "Times New Roman", Times, serif; + font-weight: bold; +} + +tt, pre { + background-color: #fafafa; + font-family: Inconsolata, Monaco, monospace; + line-height: 1.2em; +} + +pre { + font-size: 0.8em; + overflow: auto; + padding: 10px; +} + +header { + padding-bottom: 20px; + a { + border-bottom: none; + &#page-title { font-weight: bold; } + } +} + +#article-list { + margin-top: 100px; + ol li { + line-height: 1.2em; + list-style-type: none; + padding-bottom: 10px; + } +} + +footer { + background: #fff; + color: #666; + font-family:helvetica, sans-serif; + font-size:13px; + letter-spacing:4px; + margin-left: 20px; + a { + border-bottom: none; + color: #c0c0c0; + } + li { + display: inline; + } + p { + text-align: right; + } +} diff --git a/mnmlist/static/css/main.css b/mnmlist/static/css/main.css new file mode 100644 index 0000000..5d1b896 --- /dev/null +++ b/mnmlist/static/css/main.css @@ -0,0 +1,170 @@ +/* + Theme Name: mnmlist + Theme URI: http://mathieu.agopian.info/mnmlist/theme.html + Description: Theme adapted from http://mnmlist.com/theme/ from Leo Babauta, a very clean minimalist theme, without comments, search, archives or other features. + Author: Mathieu Agopian + Autor URI: http://mathieu.agopian.info + + This theme is uncopyrighted, free, and offered as is. +*/ +@import url("pygment.css"); +/* line 13, ../../compass/src/main.scss */ +body { + background: #fff; + color: #333; + font: 20px Hoefler Text, bodyfont, serif; + line-height: 30px; + max-width: 30em; + margin: 60px 14px 0 64px; +} + +/* line 22, ../../compass/src/main.scss */ +h1 { + color: #333; + font-family: Helvetica, sans-serif; + font-size: 1.5em; + font-weight: normal; + line-height: 26px; + margin-bottom: 0; +} + +/* line 31, ../../compass/src/main.scss */ +h2 { + color: #666; + font-family: Helvetica, sans-serif; + font-size: 18px; + line-height: 15px; + padding-top: 10px; +} + +/* line 39, ../../compass/src/main.scss */ +h3 { + font-family: Georgia, "Times New Roman", Times, serif; + font-size: 1em; + color: #000000; +} + +/* line 44, ../../compass/src/main.scss */ +h4 { + color: #000000; + font-size: 9pt; +} + +/* line 49, ../../compass/src/main.scss */ +time { + color: #c0c0c0; + font-size: 50%; +} + +/* line 54, ../../compass/src/main.scss */ +img { + border: none; +} + +/* line 58, ../../compass/src/main.scss */ +blockquote { + border-left: 1px solid #A5ABAB; + margin: 0px; + padding: 0 12px 0 12px; +} + +/* line 64, ../../compass/src/main.scss */ +p { + line-height: 30px; + margin: 30px auto; + text-indent: 0px; +} +/* line 68, ../../compass/src/main.scss */ +p.caption { + font-size: 80%; + margin-top: 0; +} + +/* line 74, ../../compass/src/main.scss */ +a { + border-bottom: #999 1px solid; + color: #303030; + text-decoration: none; +} +/* line 78, ../../compass/src/main.scss */ +a:hover { + color: #999; +} + +/* line 81, ../../compass/src/main.scss */ +ul, ol { + padding: .5em 0em 1em 3.2em; +} +/* line 83, ../../compass/src/main.scss */ +ul li, ol li { + line-height: 30px; + padding: 6px 0 0 0; +} + +/* line 89, ../../compass/src/main.scss */ +strong { + color: #555555; + font-family: Georgia, "Times New Roman", Times, serif; + font-weight: bold; +} + +/* line 95, ../../compass/src/main.scss */ +tt, pre { + background-color: #fafafa; + font-family: Inconsolata, Monaco, monospace; + line-height: 1.2em; +} + +/* line 101, ../../compass/src/main.scss */ +pre { + font-size: 0.8em; + overflow: auto; + padding: 10px; +} + +/* line 107, ../../compass/src/main.scss */ +header { + padding-bottom: 20px; +} +/* line 109, ../../compass/src/main.scss */ +header a { + border-bottom: none; +} +/* line 111, ../../compass/src/main.scss */ +header a#page-title { + font-weight: bold; +} + +/* line 115, ../../compass/src/main.scss */ +#article-list { + margin-top: 100px; +} +/* line 117, ../../compass/src/main.scss */ +#article-list ol li { + line-height: 1.2em; + list-style-type: none; + padding-bottom: 10px; +} + +/* line 124, ../../compass/src/main.scss */ +footer { + background: #fff; + color: #666; + font-family: helvetica, sans-serif; + font-size: 13px; + letter-spacing: 4px; + margin-left: 20px; +} +/* line 131, ../../compass/src/main.scss */ +footer a { + border-bottom: none; + color: #c0c0c0; +} +/* line 135, ../../compass/src/main.scss */ +footer li { + display: inline; +} +/* line 138, ../../compass/src/main.scss */ +footer p { + text-align: right; +} diff --git a/mnmlist/static/css/pygment.css b/mnmlist/static/css/pygment.css new file mode 100644 index 0000000..594b0fa --- /dev/null +++ b/mnmlist/static/css/pygment.css @@ -0,0 +1,205 @@ +.hll { +background-color:#FFFFCC; +} +.c { +color:#408090; +font-style:italic; +} +.err { +border:1px solid #FF0000; +} +.k { +color:#007020; +font-weight:bold; +} +.o { +color:#666666; +} +.cm { +color:#408090; +font-style:italic; +} +.cp { +color:#007020; +} +.c1 { +color:#408090; +font-style:italic; +} +.cs { +background-color:#FFF0F0; +color:#408090; +} +.gd { +color:#A00000; +} +.ge { +font-style:italic; +} +.gr { +color:#FF0000; +} +.gh { +color:#000080; +font-weight:bold; +} +.gi { +color:#00A000; +} +.go { +color:#303030; +} +.gp { +color:#C65D09; +font-weight:bold; +} +.gs { +font-weight:bold; +} +.gu { +color:#800080; +font-weight:bold; +} +.gt { +color:#0040D0; +} +.kc { +color:#007020; +font-weight:bold; +} +.kd { +color:#007020; +font-weight:bold; +} +.kn { +color:#007020; +font-weight:bold; +} +.kp { +color:#007020; +} +.kr { +color:#007020; +font-weight:bold; +} +.kt { +color:#902000; +} +.m { +color:#208050; +} +.s { +color:#4070A0; +} +.na { +color:#4070A0; +} +.nb { +color:#007020; +} +.nc { +color:#0E84B5; +font-weight:bold; +} +.no { +color:#60ADD5; +} +.nd { +color:#555555; +font-weight:bold; +} +.ni { +color:#D55537; +font-weight:bold; +} +.ne { +color:#007020; +} +.nf { +color:#06287E; +} +.nl { +color:#002070; +font-weight:bold; +} +.nn { +color:#0E84B5; +font-weight:bold; +} +.nt { +color:#062873; +font-weight:bold; +} +.nv { +color:#BB60D5; +} +.ow { +color:#007020; +font-weight:bold; +} +.w { +color:#BBBBBB; +} +.mf { +color:#208050; +} +.mh { +color:#208050; +} +.mi { +color:#208050; +} +.mo { +color:#208050; +} +.sb { +color:#4070A0; +} +.sc { +color:#4070A0; +} +.sd { +color:#4070A0; +font-style:italic; +} +.s2 { +color:#4070A0; +} +.se { +color:#4070A0; +font-weight:bold; +} +.sh { +color:#4070A0; +} +.si { +color:#70A0D0; +font-style:italic; +} +.sx { +color:#C65D09; +} +.sr { +color:#235388; +} +.s1 { +color:#4070A0; +} +.ss { +color:#517918; +} +.bp { +color:#007020; +} +.vc { +color:#BB60D5; +} +.vg { +color:#BB60D5; +} +.vi { +color:#BB60D5; +} +.il { +color:#208050; +} diff --git a/mnmlist/templates/analytics.html b/mnmlist/templates/analytics.html new file mode 100644 index 0000000..ba174fc --- /dev/null +++ b/mnmlist/templates/analytics.html @@ -0,0 +1,11 @@ +{% if GOOGLE_ANALYTICS %} + + +{% endif %} \ No newline at end of file diff --git a/mnmlist/templates/archives.html b/mnmlist/templates/archives.html new file mode 100644 index 0000000..5ba2c81 --- /dev/null +++ b/mnmlist/templates/archives.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% block content %} +
+

Archives for {{ SITENAME }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+
+{% endblock %} diff --git a/mnmlist/templates/article.html b/mnmlist/templates/article.html new file mode 100644 index 0000000..356900d --- /dev/null +++ b/mnmlist/templates/article.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% block title %}{{ super() }} : {{ article.title }}{% endblock %} +{% block content %} +
+

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

+ {% if not HIDE_DATE %}{% endif %} +
+
+ {{ article.content }} +
+{% endblock %} diff --git a/mnmlist/templates/author.html b/mnmlist/templates/author.html new file mode 100644 index 0000000..0b37290 --- /dev/null +++ b/mnmlist/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/mnmlist/templates/authors.html b/mnmlist/templates/authors.html new file mode 100644 index 0000000..e69de29 diff --git a/mnmlist/templates/base.html b/mnmlist/templates/base.html new file mode 100644 index 0000000..ad7f23b --- /dev/null +++ b/mnmlist/templates/base.html @@ -0,0 +1,50 @@ + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + + {% if FEED_RSS %} + + {% endif %} + + + + + + + + + + +{% include 'github.html' %} + {% block content %} + {% endblock %} + +
+ +

Thème mnmlist

+
+ +{% include 'analytics.html' %} +{% include 'piwik.html' %} +{% include 'disqus_script.html' %} + + diff --git a/mnmlist/templates/categories.html b/mnmlist/templates/categories.html new file mode 100644 index 0000000..78362e4 --- /dev/null +++ b/mnmlist/templates/categories.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} + +{% endblock %} diff --git a/mnmlist/templates/category.html b/mnmlist/templates/category.html new file mode 100644 index 0000000..56f8e93 --- /dev/null +++ b/mnmlist/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/mnmlist/templates/comments.html b/mnmlist/templates/comments.html new file mode 100644 index 0000000..bb033c0 --- /dev/null +++ b/mnmlist/templates/comments.html @@ -0,0 +1 @@ +{% if DISQUS_SITENAME %}

There are comments.

{% endif %} diff --git a/mnmlist/templates/disqus_script.html b/mnmlist/templates/disqus_script.html new file mode 100644 index 0000000..c4f442c --- /dev/null +++ b/mnmlist/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} + +{% endif %} diff --git a/mnmlist/templates/github.html b/mnmlist/templates/github.html new file mode 100644 index 0000000..75592ac --- /dev/null +++ b/mnmlist/templates/github.html @@ -0,0 +1,9 @@ +{% if GITHUB_URL %} + +{% if GITHUB_POSITION != "left" %} +Fork me on GitHub +{% else %} +Fork me on GitHub +{% endif %} + +{% endif %} diff --git a/mnmlist/templates/index.html b/mnmlist/templates/index.html new file mode 100644 index 0000000..871360f --- /dev/null +++ b/mnmlist/templates/index.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} + {% for article in articles %} + + {# First item #} + {% if loop.first %} +
+

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

+ {% if not HIDE_DATE %}{% endif %} +
+ +
+ {{ article.content }}{% include 'comments.html' %} +
+ {% if loop.length > 1 %} +
+

Tous les articles

+
    + {% endif %} + {# other items #} + {% else %} +
  1. {{ article.title }}
  2. + {% endif %} +{% endfor %} + {% if loop.length > 1 %} +
+
+{% endif %} +{% else %} + Pas d'articles pour le moment. +{% endif %} +{% endblock content %} diff --git a/mnmlist/templates/page.html b/mnmlist/templates/page.html new file mode 100644 index 0000000..0fad5fe --- /dev/null +++ b/mnmlist/templates/page.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{% endblock %} +{% block content %} +
+

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

+
+
+ {{ page.content }} +
+{% endblock %} diff --git a/mnmlist/templates/pagination.html b/mnmlist/templates/pagination.html new file mode 100644 index 0000000..83c587a --- /dev/null +++ b/mnmlist/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 %} diff --git a/mnmlist/templates/piwik.html b/mnmlist/templates/piwik.html new file mode 100644 index 0000000..ff459af --- /dev/null +++ b/mnmlist/templates/piwik.html @@ -0,0 +1,16 @@ +{% if PIWIK_URL and PIWIK_SITE_ID %} + +{% endif %} \ No newline at end of file diff --git a/mnmlist/templates/tag.html b/mnmlist/templates/tag.html new file mode 100644 index 0000000..68cdcba --- /dev/null +++ b/mnmlist/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/mnmlist/templates/taglist.html b/mnmlist/templates/taglist.html new file mode 100644 index 0000000..0f4862d --- /dev/null +++ b/mnmlist/templates/taglist.html @@ -0,0 +1,2 @@ +{% if article.tags %}

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

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

get the pdf

{% endif %} diff --git a/mnmlist/templates/tags.html b/mnmlist/templates/tags.html new file mode 100644 index 0000000..5bee1e1 --- /dev/null +++ b/mnmlist/templates/tags.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% block content %} + +{% endblock %} + diff --git a/mnmlist/templates/translations.html b/mnmlist/templates/translations.html new file mode 100644 index 0000000..0079883 --- /dev/null +++ b/mnmlist/templates/translations.html @@ -0,0 +1,6 @@ +{% if article.translations %} +Translations: + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} +{% endif %} diff --git a/mnmlist/templates/twitter.html b/mnmlist/templates/twitter.html new file mode 100644 index 0000000..c6b159f --- /dev/null +++ b/mnmlist/templates/twitter.html @@ -0,0 +1,3 @@ +{% if TWITTER_USERNAME %} + +{% endif %} \ No newline at end of file