Site kitoy.me
This commit is contained in:
60
templates/index.html
Normal file
60
templates/index.html
Normal file
@@ -0,0 +1,60 @@
|
||||
{% import "post_macros.html" as post_macros %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ config.default_language }}">
|
||||
<head>
|
||||
{% include "partials/head.html" %}
|
||||
|
||||
{% block title -%}
|
||||
<title> {{ config.title }} </title>
|
||||
{%- endblock title %}
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="title">
|
||||
<h1 style="text-align:center;"> {{ config.title }} </h1>
|
||||
</div>
|
||||
|
||||
{% include "partials/menu.html" %}
|
||||
<div class="articles">
|
||||
{% block content -%}
|
||||
{% for page in paginator.pages %}
|
||||
{{ post_macros::title(page=page) }}
|
||||
<div class="slug">
|
||||
<p>{{ post_macros::polish(content=page.description) }} </p>
|
||||
<p class="readmore"> <a style="margin-right:2rem;" href="{{ page.permalink }}"> Lire la suite... </a></p>
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
<nav class="pagination center">
|
||||
<div class="pagination center">
|
||||
<div class="c-pagination">
|
||||
{% if paginator.previous -%}
|
||||
<a href="{{ paginator.previous }}">Plus récent</a>
|
||||
{%- endif %}
|
||||
</div>
|
||||
<div class="pagination_older">
|
||||
{% if paginator.next -%}
|
||||
<a href="{{ paginator.next }}">Plus vieux</a>
|
||||
{%- endif %}
|
||||
</div>
|
||||
|
||||
<span>Page {{ paginator.current_index }} sur {{ paginator.number_pagers }}</span>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{%- endblock content %}
|
||||
|
||||
</div>
|
||||
|
||||
<footer><span class="copyleft">©</span> kitoy.me <br/> Site généré avec <a href="https://getzola.org/"> Zola </a> </footer>
|
||||
|
||||
{% block js -%}
|
||||
<script src="{{ get_url(path="js/menu.js") }}" ></script>
|
||||
{%- endblock js %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user