Feat: structure du site principale ok!

This commit is contained in:
Bertrand Benjamin 2020-06-21 20:11:30 +02:00
parent 25e01d8bf2
commit 57aca4f189
2 changed files with 5 additions and 31 deletions

View File

@ -25,7 +25,7 @@ USE_GOOGLE_FONTS = False
# Pages, articles and static
PAGE_PATHS = ['pages']
#ARTICLE_PATHS = ['pages/Enseignement', 'Blog']
ARTICLE_PATHS = ['Enseignements']
ARTICLE_PATHS = ['blog']
STATIC_PATHS = ['./']
INDEX_SAVE_AS = 'blog_index.html'
@ -50,7 +50,9 @@ MENUITEMS = [
]
# Blogroll
LINKS = ()
LINKS = [
("2019-2020", "/2019-2020/")
]
# Social widget
SOCIAL = ()

View File

@ -17,10 +17,6 @@
<meta name="robots" content="{{ ROBOTS }}" />
{% endif %}
{% if USE_GOOGLE_FONTS != False %}
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
{% endif %}
{% if USE_LESS %}
<link rel="stylesheet/less" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.less">
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js" type="text/javascript"></script>
@ -83,6 +79,7 @@
{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}
<h2><a href="/blog_index.html">Blog</a></h2>
<h2>Années</h2>
<nav>
<ul class="list">
@ -91,31 +88,6 @@
{% endfor %}
</ul>
</nav>
<h2>Niveaux</h2>
<nav>
<ul class="list">
{% for category, articles in categories|sort %}
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
{% endfor %}
</ul>
</nav>
<h2><a href="{{ SITEURL }}/tags.html">
Thèmes
</a></h2>
<nav>
<ul class="tagcloud">
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}">
<a href="{{ SITEURL }}/{{ tag.0.url }}">
{{ tag.0 }}
{% if TAG_CLOUD_BADGE %}
<span class="badge">{{ tag.2 }}</span>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
</nav>
</div>
</aside>