Ajout de la page contact
This commit is contained in:
@@ -8,33 +8,4 @@
|
||||
|
||||
{{ post_macros::polish(content=page.content) }}
|
||||
|
||||
<table class="contact center">
|
||||
<tr>
|
||||
<th> Service </th>
|
||||
<th> Compte </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Mail </td>
|
||||
<td> <a class="obfuscate" href="mailto:{{ config.extra.mail }}">
|
||||
{{ config.extra.mail }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> XMPP </td>
|
||||
<td class="obfuscate"> {{ config.extra.xmpp }} </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> Mastodon </td>
|
||||
<td><a href="{{ config.extra.mastodon }}"> {{ config.extra.mastodon }} </a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> gitlab </td>
|
||||
<td> <a href="{{ config.extra.git }}"> </a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{%- endblock content %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% import "post_macros.html" as post_macros %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="{{ config.default_language }}">
|
||||
<head>
|
||||
{% include "partials/head.html" %}
|
||||
@@ -9,51 +9,37 @@
|
||||
<title> {{ config.title }} </title>
|
||||
{%- endblock title %}
|
||||
|
||||
{% if config.generate_rss %}
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml", trailing_slash=false) }}">
|
||||
{% endif %}
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="title">
|
||||
<h1 style="text-align:center;"> {{ config.title }} </h1>
|
||||
<h1 style="text-align:center;"> {{ config.title }}
|
||||
<a href="/rss.xml" class="icons">
|
||||
<img src="/img/rss.svg" alt="rss" class="icon">
|
||||
</a>
|
||||
<a href="/git/" class="icons">
|
||||
<img src="/img/code.svg" alt="rss" class="icon">
|
||||
</a>
|
||||
|
||||
</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>
|
||||
{% block content %}
|
||||
{{ post_macros::polish(content=section.content) }}
|
||||
|
||||
{% 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>
|
||||
{% 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>
|
||||
<script src="/js/menu.js"></script>
|
||||
{%- endblock js %}
|
||||
</body>
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<link rel="stylesheet" href="/base.css" type="text/css">
|
||||
<title> {{ config.title }} </title>
|
||||
|
||||
|
||||
@@ -5,25 +5,26 @@
|
||||
</div>
|
||||
|
||||
<div class="menu" id="menu">
|
||||
<a href="{{ config.base_url}}">
|
||||
<img src="/img/Blog-icon.svg" alt="Le blog" />
|
||||
<p> Le blog </p>
|
||||
</a>
|
||||
|
||||
<a href="{{ config.extra.music }}">
|
||||
<img src="/img/music.svg" alt="Le blog" />
|
||||
<p> Azul </p>
|
||||
<a href="{{ config.base_url}}">
|
||||
<img src="/img/home.svg" alt="Accueil" />
|
||||
<p> Accueil </p>
|
||||
</a>
|
||||
|
||||
<a href="{{ config.base_url }}/rss.xml">
|
||||
<img src="/img/resese.svg" alt="Suivez le blog par RSS" />
|
||||
<p> RSS </p>
|
||||
<a href="{{ config.extra.music }}">
|
||||
<img src="/img/music.svg" alt="Mon groupe de musique" />
|
||||
<p> Azul </p>
|
||||
</a>
|
||||
|
||||
<a href="{{ config.base_url }}/contact/">
|
||||
<img src="/img/mail.svg" alt="Contact" />
|
||||
<p> Me contacter </p>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<a href="{{ config.base_url }}/contact/">
|
||||
<img src="/img/mail.svg" alt="Contact" />
|
||||
<p> Contact </p>
|
||||
</a>
|
||||
|
||||
<a href="{{ config.base_url }}/blog">
|
||||
<img src="/img/Blog-icon.svg" alt="Suivez le blog" />
|
||||
<p> Le blog </p>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
32
templates/section.html
Normal file
32
templates/section.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{% extends "index.html" %}
|
||||
{% import "post_macros.html" as post_macros %}
|
||||
|
||||
{% 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 %}
|
||||
28
templates/shortcodes/services.html
Normal file
28
templates/shortcodes/services.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{% set data = load_data(path="social.toml") -%}
|
||||
|
||||
<table class="contact center">
|
||||
<tr>
|
||||
<th> Service </th>
|
||||
<th> Compte </th>
|
||||
</tr>
|
||||
|
||||
|
||||
{% for service in data.services %}
|
||||
{% if service.obfuscate %}
|
||||
<tr>
|
||||
<td> {{ service.name }} </td>
|
||||
<td class="obfuscate"> {{ service.address }} </td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td> {{ service.name }} </td>
|
||||
<td> <a href="mailto:{{ service.address }}">
|
||||
{{ service.address }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
</table>
|
||||
Reference in New Issue
Block a user