theme variant from mnmlist
This commit is contained in:
3
nmnlist/LICENSE
Normal file
3
nmnlist/LICENSE
Normal file
@@ -0,0 +1,3 @@
|
||||
This theme is uncopyrighted (http://mathieu.agopian.info/mnmlist/theme.html), and is an adaptation of the mnmlist theme for wordpress, which is also uncopyrighted (http://mnmlist.com/theme/).
|
||||
|
||||
This theme is also free, and offered as is.
|
||||
22
nmnlist/README.rst
Normal file
22
nmnlist/README.rst
Normal file
@@ -0,0 +1,22 @@
|
||||
mnmlist
|
||||
#######
|
||||
|
||||
This is the `mnmlist theme <http://mnmlist.com/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/.
|
||||
6
nmnlist/compass/config.rb
Normal file
6
nmnlist/compass/config.rb
Normal file
@@ -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
|
||||
138
nmnlist/compass/src/main.scss
Normal file
138
nmnlist/compass/src/main.scss
Normal file
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
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;
|
||||
}
|
||||
|
||||
@mixin heading ($font-size, $color: #666) {
|
||||
color: $color;
|
||||
font-family: Helvetica, sans-serif;
|
||||
font-size: $font-size;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@include heading(1.5em, #333);
|
||||
font-weight: normal;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@include heading(1.3em);
|
||||
}
|
||||
|
||||
h3 {
|
||||
@include heading(1em);
|
||||
}
|
||||
|
||||
h4 {
|
||||
@include heading(0.9em);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
BIN
nmnlist/screenshot.png
Normal file
BIN
nmnlist/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 121 KiB |
BIN
nmnlist/static/css/.main.css.un~
Normal file
BIN
nmnlist/static/css/.main.css.un~
Normal file
Binary file not shown.
BIN
nmnlist/static/css/.pygment.css.un~
Normal file
BIN
nmnlist/static/css/.pygment.css.un~
Normal file
Binary file not shown.
185
nmnlist/static/css/main.css
Normal file
185
nmnlist/static/css/main.css
Normal file
@@ -0,0 +1,185 @@
|
||||
/*
|
||||
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.
|
||||
|
||||
Update (inverted colors, minor changes) by Tastalian, 2013-03-20.
|
||||
*/
|
||||
|
||||
@import url("pygment.css");
|
||||
|
||||
/* line 13, ../../compass/src/main.scss */
|
||||
body {
|
||||
background: #111;
|
||||
color: #EEE;
|
||||
font: 20px Hoefler Text, bodyfont, serif;
|
||||
line-height: 30px;
|
||||
max-width: 30em;
|
||||
margin: 60px 14px 0 64px;
|
||||
}
|
||||
|
||||
/* line 28, ../../compass/src/main.scss */
|
||||
h1 {
|
||||
color: #F00;
|
||||
font-family: Helvetica, sans-serif;
|
||||
font-size: 1.5em;
|
||||
font-weight: normal;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* line 34, ../../compass/src/main.scss */
|
||||
h2 {
|
||||
color: #DDD;
|
||||
font-family: Helvetica, sans-serif;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
/* line 38, ../../compass/src/main.scss */
|
||||
h3 {
|
||||
color: #CCC;
|
||||
font-family: Helvetica, sans-serif;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* line 42, ../../compass/src/main.scss */
|
||||
h4 {
|
||||
color: #CCC;
|
||||
font-family: Helvetica, sans-serif;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
/* line 46, ../../compass/src/main.scss */
|
||||
time, #sitename {
|
||||
color: #c0c0c0;
|
||||
font-size: 75%;
|
||||
font-variant: small-caps;
|
||||
}
|
||||
|
||||
/* line 51, ../../compass/src/main.scss */
|
||||
img {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* line 55, ../../compass/src/main.scss */
|
||||
blockquote {
|
||||
border-left: 1px solid #A5ABAB;
|
||||
margin: 0px;
|
||||
padding: 0 12px 0 12px;
|
||||
}
|
||||
|
||||
/* line 61, ../../compass/src/main.scss */
|
||||
p {
|
||||
line-height: 30px;
|
||||
margin: 30px auto;
|
||||
text-indent: 0px;
|
||||
}
|
||||
|
||||
/* line 65, ../../compass/src/main.scss */
|
||||
p.caption {
|
||||
font-size: 80%;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* my own link style (Tastalian) */
|
||||
|
||||
a {
|
||||
color: #3B0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
background-color: #3B0;
|
||||
color: white;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #F60;
|
||||
}
|
||||
|
||||
a:visited:hover {
|
||||
background-color: #F60;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* line 78, ../../compass/src/main.scss */
|
||||
ul, ol {
|
||||
padding: .5em 0em 1em 3.2em;
|
||||
}
|
||||
|
||||
/* line 80, ../../compass/src/main.scss */
|
||||
ul li, ol li {
|
||||
line-height: 30px;
|
||||
padding: 6px 0 0 0;
|
||||
}
|
||||
|
||||
/* line 86, ../../compass/src/main.scss */
|
||||
strong {
|
||||
color: #999;
|
||||
font-family: Georgia, "Times New Roman", Times, serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* line 92, ../../compass/src/main.scss */
|
||||
tt, pre {
|
||||
background-color: #222;
|
||||
font-family: Inconsolata, Monaco, monospace;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
|
||||
/* line 98, ../../compass/src/main.scss */
|
||||
pre {
|
||||
font-size: 0.8em;
|
||||
overflow: auto;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
/* line 104, ../../compass/src/main.scss */
|
||||
header {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
/* line 106, ../../compass/src/main.scss */
|
||||
header a {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* line 108, ../../compass/src/main.scss */
|
||||
header a#page-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* line 112, ../../compass/src/main.scss */
|
||||
#article-list {
|
||||
margin-top: 100px;
|
||||
}
|
||||
|
||||
/* line 114, ../../compass/src/main.scss */
|
||||
#article-list ol li {
|
||||
line-height: 1.2em;
|
||||
list-style-type: none;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
/* line 121, ../../compass/src/main.scss */
|
||||
footer {
|
||||
background: #222;
|
||||
color: #CCC;
|
||||
font-family: helvetica, sans-serif;
|
||||
font-size: 13px;
|
||||
letter-spacing: 4px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
/* line 132, ../../compass/src/main.scss */
|
||||
footer li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* line 135, ../../compass/src/main.scss */
|
||||
footer p {
|
||||
text-align: right;
|
||||
}
|
||||
205
nmnlist/static/css/pygment.css
Normal file
205
nmnlist/static/css/pygment.css
Normal file
@@ -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:#10D0E0;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
BIN
nmnlist/templates/.article.html.un~
Normal file
BIN
nmnlist/templates/.article.html.un~
Normal file
Binary file not shown.
BIN
nmnlist/templates/.base.html.un~
Normal file
BIN
nmnlist/templates/.base.html.un~
Normal file
Binary file not shown.
BIN
nmnlist/templates/.index.html.un~
Normal file
BIN
nmnlist/templates/.index.html.un~
Normal file
Binary file not shown.
BIN
nmnlist/templates/.page.html.un~
Normal file
BIN
nmnlist/templates/.page.html.un~
Normal file
Binary file not shown.
11
nmnlist/templates/analytics.html
Normal file
11
nmnlist/templates/analytics.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% if GOOGLE_ANALYTICS %}
|
||||
<script type="text/javascript">
|
||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
|
||||
pageTracker._trackPageview();
|
||||
} catch(err) {}</script>
|
||||
{% endif %}
|
||||
13
nmnlist/templates/archives.html
Normal file
13
nmnlist/templates/archives.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<section id="content" class="body">
|
||||
<h1>Archives for {{ SITENAME }}</h1>
|
||||
|
||||
<dl>
|
||||
{% for article in dates %}
|
||||
<dt>{{ article.locale_date }}</dt>
|
||||
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</section>
|
||||
{% endblock %}
|
||||
12
nmnlist/templates/article.html
Normal file
12
nmnlist/templates/article.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ super() }} : {{ article.title }}{% endblock %}
|
||||
{% block content %}
|
||||
<header>
|
||||
<h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
|
||||
<span id="sitename"><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> ⋅</span>
|
||||
{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
|
||||
</header>
|
||||
<article>
|
||||
{{ article.content }}
|
||||
</article>
|
||||
{% endblock %}
|
||||
2
nmnlist/templates/author.html
Normal file
2
nmnlist/templates/author.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - {{ author }}{% endblock %}
|
||||
0
nmnlist/templates/authors.html
Normal file
0
nmnlist/templates/authors.html
Normal file
50
nmnlist/templates/base.html
Normal file
50
nmnlist/templates/base.html
Normal file
@@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
|
||||
<link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
|
||||
{% if FEED_RSS %}
|
||||
<link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
|
||||
{% endif %}
|
||||
|
||||
<!--[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>
|
||||
{% include 'github.html' %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
<footer>
|
||||
<nav>
|
||||
<ul>
|
||||
{% 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">Categories</a></li>
|
||||
{% endif %}
|
||||
{% if tags|length > 1 %}
|
||||
<li>:: <a href="{{ SITEURL }}/tags.html">Tags</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
<p id="theme-credit"><a href="http://mathieu.agopian.info/mnmlist/theme.html">Theme from "mnmlist"</a></p>
|
||||
</footer>
|
||||
|
||||
{% include 'analytics.html' %}
|
||||
{% include 'piwik.html' %}
|
||||
{% include 'disqus_script.html' %}
|
||||
</body>
|
||||
</html>
|
||||
8
nmnlist/templates/categories.html
Normal file
8
nmnlist/templates/categories.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<ul>
|
||||
{% for category, articles in categories %}
|
||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
2
nmnlist/templates/category.html
Normal file
2
nmnlist/templates/category.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
|
||||
1
nmnlist/templates/comments.html
Normal file
1
nmnlist/templates/comments.html
Normal file
@@ -0,0 +1 @@
|
||||
{% if DISQUS_SITENAME %}<p>There are <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">comments</a>.</p>{% endif %}
|
||||
11
nmnlist/templates/disqus_script.html
Normal file
11
nmnlist/templates/disqus_script.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% if DISQUS_SITENAME %}
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
{% endif %}
|
||||
9
nmnlist/templates/github.html
Normal file
9
nmnlist/templates/github.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% if GITHUB_URL %}
|
||||
<a href="{{ GITHUB_URL }}">
|
||||
{% if GITHUB_POSITION != "left" %}
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
{% else %}
|
||||
<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_white_ffffff.png" alt="Fork me on GitHub" />
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
35
nmnlist/templates/index.html
Normal file
35
nmnlist/templates/index.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{% 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 }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
|
||||
<span id="sitename"><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> ⋅</span>
|
||||
{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
|
||||
</header>
|
||||
|
||||
<article>
|
||||
{{ article.content }}{% include 'comments.html' %}
|
||||
</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="Permalink to {{ article.title}}">{{ article.title }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if loop.length > 1 %}
|
||||
</ol>
|
||||
</section><!-- #article-list -->
|
||||
{% endif %}
|
||||
{% else %}
|
||||
Pas d'articles pour le moment.
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
11
nmnlist/templates/page.html
Normal file
11
nmnlist/templates/page.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ page.title }}{% endblock %}
|
||||
{% block content %}
|
||||
<header>
|
||||
<h1><a href="{{ SITEURL }}/{{ page.slug }}" id="page-title">{{ page.title }}</a></h1>
|
||||
<span id="sitename"><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></span>
|
||||
</header>
|
||||
<article>
|
||||
{{ page.content }}
|
||||
</article>
|
||||
{% endblock %}
|
||||
15
nmnlist/templates/pagination.html
Normal file
15
nmnlist/templates/pagination.html
Normal file
@@ -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">«</a>
|
||||
{% else %}
|
||||
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">«</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">»</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
16
nmnlist/templates/piwik.html
Normal file
16
nmnlist/templates/piwik.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% if PIWIK_URL and PIWIK_SITE_ID %}
|
||||
<script type="text/javascript">
|
||||
{% if PIWIK_SSL_URL %}
|
||||
var pkBaseURL = (("https:" == document.location.protocol) ? "https://{{ PIWIK_SSL_URL }}/" : "http://{{ PIWIK_URL }}/");
|
||||
{% else %}
|
||||
var pkBaseURL = (("https:" == document.location.protocol) ? "https://{{ PIWIK_URL }}/" : "http://{{ PIWIK_URL }}/");
|
||||
{% endif %}
|
||||
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
|
||||
</script><script type="text/javascript">
|
||||
try {
|
||||
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {{ PIWIK_SITE_ID }});
|
||||
piwikTracker.trackPageView();
|
||||
piwikTracker.enableLinkTracking();
|
||||
} catch( err ) {}
|
||||
</script><noscript><p><img src="http://{{ PIWIK_URL }}/piwik.php?idsite={{ PIWIK_SITE_ID }}" style="border:0" alt="" /></p></noscript>
|
||||
{% endif %}
|
||||
2
nmnlist/templates/tag.html
Normal file
2
nmnlist/templates/tag.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
|
||||
2
nmnlist/templates/taglist.html
Normal file
2
nmnlist/templates/taglist.html
Normal file
@@ -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">get the pdf</a></p>{% endif %}
|
||||
9
nmnlist/templates/tags.html
Normal file
9
nmnlist/templates/tags.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<ul>
|
||||
{% for tag, articles in tags %}
|
||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
6
nmnlist/templates/translations.html
Normal file
6
nmnlist/templates/translations.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% if article.translations %}
|
||||
Translations:
|
||||
{% for translation in article.translations %}
|
||||
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
3
nmnlist/templates/twitter.html
Normal file
3
nmnlist/templates/twitter.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{% if TWITTER_USERNAME %}
|
||||
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="{{TWITTER_USERNAME}}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user