New layout
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
{% block content_title %}{{ SITENAME }} — Archives{% endblock %}
|
||||
|
||||
{%- block content %}
|
||||
<section id="page-content">
|
||||
<section class="content">
|
||||
<h1>Archives</h1>
|
||||
<dl>
|
||||
{% for article in articles %}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{% block title %}{{ article.title }} — {{ super() }}{% endblock %}
|
||||
|
||||
{%- block content %}
|
||||
<article class="post" id="page-content">
|
||||
<article class="post content">
|
||||
<header class="post-header">
|
||||
<time datetime="{{ article.date.isoformat() }}" pubdate="pubdate">
|
||||
{{ article.locale_date }}
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
{% block headers %}
|
||||
<meta charset="utf-8" />
|
||||
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/skeleton.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/main.css" />
|
||||
<link rel="shortcut icon" type="text/css" href="{{ SITEURL }}/favicon.ico" />
|
||||
<link rel="alternate" type="application/atom+xml"
|
||||
title="{{ SITENAME }} — Flux Atom"
|
||||
@@ -42,47 +43,23 @@
|
||||
{% endblock headers %}
|
||||
</head>
|
||||
<body>
|
||||
<!--[if lt IE 7]>
|
||||
<div style="font-size: small; background-color: black; color: white; position: fixed; bottom: 0; left: 0; right: 0;border-bottom: 1px solid gray; padding: 2px 5px;"
|
||||
id="outdated">Il est recommandé d'utiliser un navigateur Web
|
||||
moderne, comme <a href="http://www.mozilla.com/firefox/">Mozilla
|
||||
Firefox</a> ou <a href="http://www.google.com/chrome/">Google
|
||||
Chrome</a> pour voir ce site
|
||||
<div class="page">
|
||||
<header class="head">
|
||||
<h1>
|
||||
<a href="{{ SITEURL }}/index.html">{{ SITENAME }}</a>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<div class="main">
|
||||
{% include "includes/sidebar.html" %}
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
</div>
|
||||
|
||||
<footer class="foot">
|
||||
<p> {{ FOOTER_TEXT or 'Powered by <a href="http://pelican.readthedocs.org">Pelican</a>' }}</p>
|
||||
{% if GITHUB_URL %}<p><a id="github-link" href="{{ GITHUB_URL}}">Fork me on Github</a></p>{% endif %}
|
||||
</footer>
|
||||
</div>
|
||||
<![endif]-->
|
||||
<header id="page-header">
|
||||
<h1>
|
||||
<a href="{{ SITEURL }}/index.html">{{ SITENAME }}</a>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<nav id="page-menu">
|
||||
<ul>
|
||||
<li><a href="{{ SITEURL }}/index.html">Accueil</a></li>
|
||||
{% for title, link in MENUITEMS %}
|
||||
<li><a href="{{ link|format(SITEURL) }}">{{ title }}</a></li>
|
||||
{% endfor %}
|
||||
{% if DISPLAY_PAGES_ON_MENU %}
|
||||
<li><a href="{{ SITEURL }}/categories.html">Catégories</a></li>
|
||||
{% for p in PAGES %}
|
||||
<li {% if p == page %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url|e }}">{{ p.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% for cat, null in categories %}
|
||||
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url|e }}">{{ cat }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<li><a href="{{ SITEURL }}/archives.html">Archives</a></li>
|
||||
<li><a href="{{ SITEURL }}/tags.html">Mots-clés</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
|
||||
<footer id="page-footer">
|
||||
<p> {{ FOOTER_TEXT or 'Powered by <a href="http://pelican.readthedocs.org">Pelican</a>' }}</p>
|
||||
{% if GITHUB_URL %}<p><a id="github-link" href="{{ GITHUB_URL}}">Fork me on Github</a></p>{% endif %}
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{% block title %}{{ super() }} — Catégories{% endblock title %}
|
||||
|
||||
{%- block content %}
|
||||
<section id="page-content">
|
||||
<section class="content">
|
||||
<h1>Catégories</h1>
|
||||
<ul id="category-list">
|
||||
{% for category, n in categories %}
|
||||
|
||||
46
dev-random/templates/includes/sidebar.html
Normal file
46
dev-random/templates/includes/sidebar.html
Normal file
@@ -0,0 +1,46 @@
|
||||
<aside class="sidebar">
|
||||
<nav class="widget">
|
||||
<h3>Site</h3>
|
||||
<ul>
|
||||
<li><a href="{{ SITEURL }}">Accueil</a></li>
|
||||
<li><a href="{{ SITEURL }}/archives.html">Archives</a></li>
|
||||
<li><a href="{{ SITEURL }}/tags.html">Mots-clés</a></li>
|
||||
{% if MENUITEMS %}
|
||||
{% for name, uri in MENUITEMS %}
|
||||
<li><a href="{{ uri|format(SITEURL)|e}}">{{ name }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if DISPLAY_PAGES_ON_MENU %}
|
||||
{% for p in PAGES %}
|
||||
<li><a href="{{ SITEURL}}/{{ p.url|e }}"{% if p == page %} class="active"{% endif %}>{{ p.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
{% if categories %}
|
||||
<nav class="widget">
|
||||
<h3>Catégories</h3>
|
||||
<ul>
|
||||
{% for cat, null in categories %}
|
||||
<li><a href="{{ SITEURL }}/{{ cat.url|e }}">{{ cat }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
|
||||
{% if SOCIAL %}
|
||||
<nav class="widget">
|
||||
<h3>Social</h3>
|
||||
<ul>
|
||||
{% for url, name in SOCIAL %}
|
||||
<li><a href="{{ url|e }}">{{ name }}</a></li>
|
||||
{% endfor %}
|
||||
<li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate">Flux Atom</a></li>
|
||||
{% if FEED_RSS %}
|
||||
<li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">Flux RSS</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
</aside>
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{%- block content %}
|
||||
<section id="page-content">
|
||||
<section class="content">
|
||||
<h1 id="page-title">{% block index_title %}Tous les articles{% endblock index_title %}</h1>
|
||||
|
||||
{% for article in articles_page.object_list %}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{% block title %}{{ super() }} — {{ page.url }}{% endblock title %}
|
||||
|
||||
{%- block content %}
|
||||
<section id="page-content">
|
||||
<section class="content">
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ page.content }}
|
||||
</section>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{% block title %}{{ super() }} — Mots-clés{% endblock title %}
|
||||
|
||||
{%- block content %}
|
||||
<section id="page-content">
|
||||
<section class="content">
|
||||
<h1>Mots-clés</h1>
|
||||
<ul id="tagslist">
|
||||
{% for tag in tag_cloud %}
|
||||
|
||||
Reference in New Issue
Block a user