Browse Source

adds theme

main
buttle 1 year ago
parent
commit
ff3429eae0
  1. 22
      LICENSE
  2. 20
      README.md
  3. BIN
      screenshot-article.png
  4. BIN
      screenshot-mobile.png
  5. BIN
      screenshot-web.png
  6. 64
      static/css/pygments.css
  7. 281
      static/css/style.css
  8. BIN
      static/images/icons/fediverse.png
  9. BIN
      static/images/icons/github.png
  10. BIN
      static/images/icons/gitlab.png
  11. BIN
      static/images/icons/mail-s.png
  12. BIN
      static/images/icons/rss.png
  13. 23
      templates/archives.html
  14. 48
      templates/article.html
  15. 17
      templates/author.html
  16. 158
      templates/base.html
  17. 21
      templates/categories.html
  18. 17
      templates/category.html
  19. 42
      templates/index.html
  20. 13
      templates/page.html
  21. 16
      templates/pagination.html
  22. 11
      templates/tag.html
  23. 21
      templates/tags.html
  24. 6
      templates/translations.html

22
LICENSE

@ -1,9 +1,21 @@
MIT License
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Copyright (c) 2016 Parbhat Puri
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

20
README.md

@ -1,3 +1,19 @@
# pelican-red
# Pelican-Red
A theme for the Pelican blog software. See demo at http://blog.liberaforms.org
A theme for the Pelican blog software.
Responsive theme for [Pelican](http://blog.getpelican.com/) Static Site Generator, Powered by [Python](https://www.python.org/) Programming language.
## Shameless copy of Pelican-Blue
https://github.com/Parbhat/pelican-blue.git
## Demo
You can see the theme in action at http://blog.liberaforms.org
## Install
Pretty much the same as Pelican-Blue
Clone it here https://forja.laloka.org/buttle/pelican-red

BIN
screenshot-article.png

After

Width: 1358  |  Height: 602  |  Size: 134 KiB

BIN
screenshot-mobile.png

After

Width: 396  |  Height: 544  |  Size: 97 KiB

BIN
screenshot-web.png

After

Width: 1366  |  Height: 636  |  Size: 82 KiB

64
static/css/pygments.css

@ -0,0 +1,64 @@
.highlight .hll { background-color: #49483e }
.highlight { background: #272822; color: #f8f8f2 }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */

281
static/css/style.css

@ -0,0 +1,281 @@
html {
font-family: 'Open Sans', 'helvetica', sans-serif;
background: white;
font-size: 14px;
}
/* Titles */
h1 { text-transform: uppercase }
h1, h2 {
font-weight: normal;
margin-top: 10px;
margin-bottom: 10px;
}
.title
{
font-size: 2.5em;
text-align: center;
margin-bottom: 50px;
text-transform: none;
color: #1DAEDF;
line-height: 1;
font-weight: 600;
}
.latest
{-
padding: 10px 10px;
border-bottom: 1px solid #eee;
}
.post_detail
{
font-size: 2em;
line-height: 1em;
}
.entry-content
{
margin-top: 50px;
margin-bottom: 50px;
text-align: justify;
color: #333;
}
article section .about
{
font-size: 18px;
color: #444;
text-align: justify;
}
article section .blog-post
{
font-size: 16px;
}
/* Body */
body {margin: 0}
body > article, footer {
line-height: 1.6em;
display: block;
max-width: 700px;
margin: 40px auto auto 355px;
padding: 20px 80px 10px;
}
article ol.posts
{
padding-left: 0;
}
/* Articles */
p.post_entry {
}
article > header {
list-style-type: none;
padding: 0px 10px;
box-shadow: 0 0 0 2px #1DAEDF;
-moz-border-radius: 5px 0;
-webkit-border-radius: 5px 0;
border-radius: 5px 5px;
}
.article_left > h1 {
font-size: 20px;
}
.article_right {
background-color: white;
}
.post_list {
list-style-type: none;
padding: 10px 10px;
-moz-border-radius: 5px 0;
-webkit-border-radius: 5px 0;
border-radius: 5px 5px;
}
/* Links */;
a { color:#1DAEDF; text-decoration:none; }
a:visited { color:#1DAEDF; text-decoration:none; }
a:link { color:#1DAEDF; text-decoration:none; }
a:active { color:#1DAEDF; text-decoration:none; }
a:hover { text-decoration: underline; }
/* Code */
.highlight pre {
font-size: 14px;
overflow: auto;
padding: 8px;
}
/* Sidebar */
aside {
font-size: 14px;
width: 220px; height: 100%;
position: fixed;
top: 0; left: 0;
padding: 30px;
/* background-color: #2980b9; */
background-color: #d63d3b;
color: white;
/*box-shadow: 0 0 3px black;*/
text-align: center;
/*padding-top: 8%;*/
padding-top: 2em;
background-size: cover;
}
aside > .nav {
border-top: 1px solid white;
}
aside > ul {
list-style-type: none;
padding: 0px 10px;
margin-top: 0px;
}
aside a {
color: white !important;
}
aside > h2 {
text-transform: uppercase;
font-size: 14px;
margin-top: 1em;
margin-bottom: 5px;
}
aside > hr {
border: 1px dotted white;
margin-bottom: 1em;
}
#avatar {
width: 80px;
display: block;
margin: 0;
/*
border-radius: 50%;
box-shadow: 0px 0px 5px 3px #1DAEDF;
-webkit-transition: 200ms;
-moz-transition: 200ms;
-ms-transition: 200ms;
-o-transition: 200ms;
transition: 200ms;
*/
}
/*
#avatar:hover {
box-shadow: 0px 0px 5px 3px white;
}
*/
.social
{
display: inline-block;
margin-top: 40px;
}
.social img {
width: 30px;
}
.nav
{
display: block;
margin-left: -30px;
margin-right: -30px;
margin-top: 25px;
}
.nav > ul > li
{
font-size: 15px;
}
.nav a
{
color: #fff;
text-decoration: none;
transition: all .3s ease-in-out;
}
.nav a:hover
{
background-color: #328cc7;
}
.list-bare
{
list-style: none;
padding: 0;
margin: 0;
}
.nav__link
{
display: block;
padding: 0.77273rem 0;
border-bottom: 1px solid #328cc7;
}
.blog_roll_link
{
display: block;
padding: 0.33147rem 0;
border-bottom: 3px solid #328cc7;
}
/*--------Responsive------------*/
@media (max-width: 800px) {
aside {
left: 0;
max-width: none;
position: relative;
top: 0;
width: 100%;
padding: 0;
padding-top: 1px;
}
aside > h1 {
margin-bottom: 0;
}
aside > .social {
margin-top: 0;
}
.nav
{
margin-left: 0;
margin-right: 0;
margin-top: 20px;
}
body > article {
margin: 0 auto;
padding-top: 0px;
padding: 1em;
}
footer
{
padding: 1em;
margin-left: 1em;
margin-top: 0;
}
#avatar {
height: 50px;
width: 50px;
margin: 10px auto;
margin-top: 0;
margin-bottom: 0;
}
}
img {
max-width: 100%;
}

BIN
static/images/icons/fediverse.png

After

Width: 40  |  Height: 40  |  Size: 8.6 KiB

BIN
static/images/icons/github.png

After

Width: 32  |  Height: 32  |  Size: 576 B

BIN
static/images/icons/gitlab.png

After

Width: 32  |  Height: 30  |  Size: 1.4 KiB

BIN
static/images/icons/mail-s.png

After

Width: 32  |  Height: 32  |  Size: 1.1 KiB

BIN
static/images/icons/rss.png

After

Width: 32  |  Height: 32  |  Size: 623 B

23
templates/archives.html

@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
<meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
<meta name="twitter:url" content="{{ SITEURL }}/archives.html">
<meta name="twitter:title" content="{{ SITENAME }} ~ Archives">
<meta name="twitter:description" content="{{ SITENAME }} ~ Archives du site">
<!-- Facebook Meta Data -->
<meta property="og:title" content="{{ SITENAME }} ~ Archives"/>
<meta property="og:description" content="{{ SITENAME }} ~ Archives"/>
<meta property="og:image" content="{{ AVATAR }}"/>
{% endblock head %}
{% block content %}
<h1>Archives</h1>
<dl>
{% for article in dates %}
<dt>{{ article.locale_date }}</dt>
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
{% endblock %}

48
templates/article.html

@ -0,0 +1,48 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
<meta property="og:title" content="{{ SITENAME }} ~ {{ article.title|striptags }}"/>
<meta property="og:description" content="{{ article.summary|striptags|escape }}"/>
<meta property="og:image" content=""/>
{% endblock head %}
{% block title %}{{ article.title|striptags }}{% endblock %}
{% block content %}
<section id="content">
<article>
<h2 class="post_title post_detail">
<a href="{{ SITEURL }}/{{ article.url }}"
rel="bookmark"
title="Permalink to {{ article.title|striptags }}">
{{ article.title }}
</a>
</h2>
<div class="entry-content blog-post">
{{ article.content }}
</div>
<div class="post_list">
<span>By </span>
<a href="{{ SITEURL }}/{{ article.author.url }}">@{{ article.author }}</a>
<span> in </span>
<span class="post_category">
<a href="{{ SITEURL }}/{{ article.category.url }}"
rel="bookmark"
title="Permalink to {{ article.category|striptags }}">
[ {{ article.category }} ]
</a>
</span>
<span class="post_date">{{ article.locale_date }}</span>
{% if article.tags %}
<div>
<span>Tags : </span>
{% for tag in article.tags %}
<span>
<a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}, </a>
</span>
{% endfor %}
</div>
{% endif %}
</div>
</article>
</section>
{% endblock %}

17
templates/author.html

@ -0,0 +1,17 @@
{% extends "index.html" %}
{% block head %}
{{ super() }}
<meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
<meta name="twitter:url" content="{{ SITEURL }}/{{ author.url }}">
<meta name="twitter:title" content="{{ SITENAME }} ~ {{ author }}">
<meta name="twitter:description" content="Articles de {{ author }}">
<!-- Facebook Meta Data -->
<meta property="og:title" content="{{ SITENAME }} ~ {{ author }}"/>
<meta property="og:description" content="Articles de {{ author }}"/>
<meta property="og:image" content="{{ AVATAR }}"/>
{% endblock head %}
{% block title %}{{ SITENAME }} - {{ author }}{% endblock %}
{% block heading %}
<h2 class="latest">Author: {{ author }}</h2>
{% endblock %}

158
templates/base.html

@ -0,0 +1,158 @@
<!doctype html>
<html lang="{{ DEFAULT_LANG }}" itemscope itemtype="http://schema.org/Person">
<head>
{% block head %}
<meta charset="utf-8">
<!-- Site Meta Data -->
<title>{% block title %} {{ SITENAME }} | {{ SIDEBAR_DIGEST }} {% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ AUTHOR_DESCRIPTION }}">
<meta name="author" content="{{ AUTHOR }}">
<link rel="shortcut icon" href="{{ FAVICON }}">
<!-- schema.org -->
<meta itemprop="name" content="{{ SITENAME }}">
<meta itemprop="image" content="{{ AVATAR }}">
<meta itemprop="description" content="{{ AUTHOR_DESCRIPTION }}">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>
<!-- Style Meta Data -->
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css" type="text/css"/>
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" type="text/css"/>
<!-- Feed Meta Data -->
{% if FEED_ALL_ATOM %}
<link href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate"
title="{{ SITENAME }} ATOM Feed"/>
{% endif %}
{% if FEED_ALL_RSS %}
<link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate"
title="{{ SITENAME }} RSS Feed"/>
{% endif %}
{% endblock %}
</head>
<body>
<!-- Sidebar -->
<aside>
<h1>{{ SITENAME }}</h1>
{% if SIDEBAR_DIGEST %}
<p>{{ SIDEBAR_DIGEST }}</p>
{% endif %}
<br>
<center>
<a href="{{ SITEURL }}">
<img id="avatar" src="{{ AVATAR }}">
</a>
</center>
<nav class="nav">
<ul class="list-bare">
{% for title, link in MENUITEMS %}
<li><a class="nav__link" href="{{ link }}">{{ title }}</a></li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU and pages %}{% for p in pages %}
<li><a class="nav__link" href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}{% endif %}
</ul>
</nav>
{% if DISPLAY_CATEGORIES_ON_MENU and categories %}
<ul class="navbar">
{% for cat, articles in categories if cat == 'Releases' %}
<h2>
<a href="{{ SITEURL }}/{{ cat.url }}"
{% if cat == category %} class="active"{% endif %}>
{{ cat }}
</a>
</h2>
{% if cat == 'Releases' %}
{% for article in articles if loop.index < 6 %}
<li>
<a href="{{ SITEURL }}/{{ article.url }}"
rel="bookmark"
title="Permalink to {{ article.title|striptags }}">
{{ article.title|striptags }}
</a>
</li>
{% endfor %}
{% if articles|length > 5 %}
<li>
<a href="{{ SITEURL }}/{{ cat.url }}">
More ..
</a>
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% if categories|length > 1 %}
<hr />
<ul class="navbar">
{% for cat, articles in categories if cat != 'Releases' %}
<h2>
<a href="{{ SITEURL }}/{{ cat.url }}"
{% if cat == category %} class="active"{% endif %}>
{{ cat }}
</a>
</h2>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% if LINKS %}
<hr />
<ul class="navbar">
{% for name, link in LINKS %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
</ul>
{% endif %}
<p class="social">
{% if SOCIAL %}
{% for name, link in SOCIAL %}
<a href="{{ link }}"
target="_blank"><img src="{{ SITEURL }}/theme/images/icons/{{ name|lower }}.png"></a>
{% endfor %}
{% endif %}
{% if FEED_ALL_ATOM %}
<a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}"
rel="alternate"><img src="{{ SITEURL }}/theme/images/icons/rss.png"></a>
{% endif %}
{% if FEED_ALL_RSS %}
<a href="{{ SITEURL }}/{{ FEED_ALL_RSS }}"
rel="alternate"><img src="{{ SITEURL }}/theme/images/icons/rss.png"></a>
{% endif %}
</p>
</aside>
<!-- Content -->
<article>
{% block content %}
{% endblock %}
</article>
<!-- Footer -->
{% if DISPLAY_FOOTER or DISPLAY_FOOTER is not defined %}
<footer>
<p>
Blog powered by <a href="http://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>.
<a>Hacked</a>
original theme <a href="https://github.com/parbhat/pelican-blue">Pelican-Blue</a>
by <a href="https://parbhatpuri.com/">@parbhat</a>.
</p>
</footer>
{% endif %}
</body>
</html>

21
templates/categories.html

@ -0,0 +1,21 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
<meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
<meta name="twitter:url" content="{{ SITEURL }}/categories.html">
<meta name="twitter:title" content="{{ SITENAME }} ~ Catégories">
<meta name="twitter:description" content="{{ SITENAME }} ~ Catégories du site">
<!-- Facebook Meta Data -->
<meta property="og:title" content="{{ SITENAME }} ~ Catégories"/>
<meta property="og:description" content="{{ SITENAME }} ~ Catégories"/>
<meta property="og:image" content="{{ AVATAR }}"/>
{% endblock head %}
{% block content %}
<h2>Categories</h2>
<ul class="category_folder">
{% for category, articles in categories %}
<li><a href="{{ category.url }}">{{ category }}</a></li>
{% endfor %}
</ul>
{% endblock %}

17
templates/category.html

@ -0,0 +1,17 @@
{% extends "index.html" %}
{% block head %}
{{ super() }}
<meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
<meta name="twitter:url" content="{{ SITEURL }}/{{ category.url }}">
<meta name="twitter:title" content="{{ SITENAME }} ~ {{ category }}">
<meta name="twitter:description" content="Articles de {{ category }}">
<!-- Facebook Meta Data -->
<meta property="og:title" content="{{ SITENAME }} ~ {{ category }}"/>
<meta property="og:description" content="Articles de {{ category }}"/>
<meta property="og:image" content="{{ AVATAR }}"/>
{% endblock head %}
{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
{% block heading %}
<h2 class="latest">Category: {{ category }}</h2>
{% endblock %}

42
templates/index.html

@ -0,0 +1,42 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
<meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
<meta name="twitter:url" content="{{ SITEURL }}">
<meta name="twitter:title" content="{{ SITENAME }}">
<meta name="twitter:description" content="{{ SIDEBAR_DIGEST }}">
<!-- Facebook Meta Data -->
<meta property="og:title" content="{{ SITENAME }}"/>
<meta property="og:description" content="{{ SIDEBAR_DIGEST }}"/>
<meta property="og:image" content=""/>
{% endblock head %}
{% block content_title %}{% endblock %}
{% block content %}
{% if articles %}
<ol class="posts">
{% block heading %}<h2 class="latest">Latest Posts</h2>{% endblock %}
{% for article in (articles_page.object_list if articles_page else articles) %}
<li class="post_list"><p class="post_entry">
<h2 class="post_title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
</h2>
{% if DISPLAY_SUMMARY and article.summary|length > 0 %}
<p>{{ article.summary }}</p>
{% endif %}
<a href="{{ SITEURL }}/{{ article.author.url }}">@{{ article.author }}</a>
<span> in </span>
<span class="post_category"><a href="{{ SITEURL }}/{{ article.category.url }}" rel="bookmark"
title="Permalink to {{ article.category|striptags }}">[ {{ article.category }} ]</a></span>
<span class="post_date">{{ article.locale_date }}</span>
</li>
{% endfor %}
</ol>
{% endif %}
{% if articles_page and articles_paginator.num_pages > 1 %}
{% include 'pagination.html' %}
{% endif %}
{% endblock content %}

13
templates/page.html

@ -0,0 +1,13 @@
{% extends "base.html" %}
{% block title %}{{ page.title }}{% endblock %}
{% block content %}
<section id="content" class="body">
{% if PDF_PROCESSOR %}
<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">
get the pdf
</a>
{% endif %}
{{ page.content }}
</section>
{% endblock %}

16
templates/pagination.html

@ -0,0 +1,16 @@
{% 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 %}
{{ 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 %}

11
templates/tag.html

@ -0,0 +1,11 @@
{% extends "index.html" %}
{% block head %}
{{ super() }}
<meta property="og:title" content="{{ SITENAME }} ~ {{ tag }}"/>
<meta property="og:description" content="Articles de {{ tag }}"/>
<meta property="og:image" content="{{ AVATAR }}"/>
{% endblock head %}
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
{% block heading %}
<h2 class="latest">Tag: {{ tag }}</h2>
{% endblock %}

21
templates/tags.html

@ -0,0 +1,21 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
<meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
<meta name="twitter:url" content="{{ SITEURL }}/tags.html">
<meta name="twitter:title" content="{{ SITENAME }} ~ Tags">
<meta name="twitter:description" content="{{ SITENAME }} ~ Tags du site">
<!-- Facebook Meta Data -->
<meta property="og:title" content="{{ SITENAME }} ~ Tags"/>
<meta property="og:description" content="{{ SITENAME }} ~ Tags"/>
<meta property="og:image" content="{{ AVATAR }}"/>
{% endblock head %}
{% block content %}
<h2>Tags</h2>
<ul>
{% for tag, articles in tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
{% endblock %}

6
templates/translations.html

@ -0,0 +1,6 @@
{% if article.translations %}
<span class="label">Languages</span>
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}"><i class="icon-edit"></i>{{ translation.lang }}</a>
{% endfor %}
{% endif %}
Loading…
Cancel
Save