Browse Source

Modification et traduction du theme après mise à jour de Pelican en 4.5.4

pull/4/head
LecygneNoir 3 years ago
parent
commit
587ecc7660
5 changed files with 23 additions and 24 deletions
  1. +7
    -7
      theme/templates/archives.html
  2. +0
    -1
      theme/templates/article.html
  3. +7
    -7
      theme/templates/categories.html
  4. +1
    -1
      theme/templates/index.html
  5. +8
    -8
      theme/templates/tags.html

+ 7
- 7
theme/templates/archives.html View File

@ -1,21 +1,21 @@
{% extends 'base.html' %}
{% block title %}
All Posts · {{ super() }}
Archives · {{ super() }}
{% endblock title %}
{% block head_description %}
Full archives of {{ SITENAME|striptags|e }} blog.
Archives du {{ SITENAME|striptags|e }}.
{% endblock head_description %}
{% block meta_tags_in_head %}
{{ super() }}
{% from '_includes/_defaults.html' import FEATURED_IMAGE, ARCHIVES_URL with context %}
<meta property="og:title" content="All Posts · {{ SITENAME|striptags|e }}"/>
<meta name="twitter:title" content="All Posts · {{ SITENAME|striptags|e }}">
<meta property="og:title" content="Archives · {{ SITENAME|striptags|e }}"/>
<meta name="twitter:title" content="Archives · {{ SITENAME|striptags|e }}">
<meta property="og:url" content="{{ SITEURL }}/{{ ARCHIVES_URL }}" />
<meta property="og:description" content="Full archives of {{ SITENAME|striptags|e }} blog" />
<meta name="twitter:description" content="Full archives of {{ SITENAME|striptags|e }} blog">
<meta property="og:description" content="Archives du {{ SITENAME|striptags|e }}" />
<meta name="twitter:description" content="Archives du {{ SITENAME|striptags|e }}">
<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
<meta property="og:article:author" content="{{ AUTHOR }}" />
{% if FEATURED_IMAGE %}
@ -28,7 +28,7 @@ Full archives of {{ SITENAME|striptags|e }} blog.
{% from '_includes/_defaults.html' import ARCHIVES_URL with context %}
<div class="row-fluid">
<header class="page-header span10 offset2">
<h1><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">All Posts</a></h1>
<h1><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Archives</a></h1>
</header>
</div>
<div class="row-fluid">

+ 0
- 1
theme/templates/article.html View File

@ -49,7 +49,6 @@
{% if article.toc %}
<div class="span2 table-of-content">
<nav>
<h4>Contents</h4>
{{ article.toc }}
</nav>
</div>

+ 7
- 7
theme/templates/categories.html View File

@ -1,21 +1,21 @@
{% extends 'base.html' %}
{% block title %}
All Categories · {{ super() }}
Catégories · {{ super() }}
{% endblock title %}
{% block head_description %}
All categories of the {{ SITENAME|striptags|e }} blog.
Catégories of the {{ SITENAME|striptags|e }} blog.
{% endblock head_description %}
{% block meta_tags_in_head %}
{{ super() }}
{% from '_includes/_defaults.html' import FEATURED_IMAGE, CATEGORIES_URL with context %}
<meta property="og:title" content="All Categories · {{ SITENAME|striptags|e }}"/>
<meta name="twitter:title" content="All Categories · {{ SITENAME|striptags|e }}">
<meta property="og:title" content="Catégories · {{ SITENAME|striptags|e }}"/>
<meta name="twitter:title" content="Catégories · {{ SITENAME|striptags|e }}">
<meta property="og:url" content="{{ SITEURL }}/{{ CATEGORIES_URL }}" />
<meta property="og:description" content="All categories of the {{ SITENAME|striptags|e }} blog" />
<meta name="twitter:description" content="All categories of the {{ SITENAME|striptags|e }} blog">
<meta property="og:description" content="Catégories du {{ SITENAME|striptags|e }}" />
<meta name="twitter:description" content="Catégories du {{ SITENAME|striptags|e }}">
<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
<meta property="og:article:author" content="{{ AUTHOR }}" />
{% if FEATURED_IMAGE %}
@ -33,7 +33,7 @@ All categories of the {{ SITENAME|striptags|e }} blog.
{% from '_includes/_defaults.html' import CATEGORIES_URL with context %}
<div class="row-fluid">
<header class="page-header span10 offset2">
<h1><a href="{{ SITEURL }}/{{ CATEGORIES_URL }}">All Categories</a></h1>
<h1><a href="{{ SITEURL }}/{{ CATEGORIES_URL }}">Catégories</a></h1>
</header>
</div>

+ 1
- 1
theme/templates/index.html View File

@ -92,7 +92,7 @@
<div class="row-fluid">
<div class="{{ css_class }}">
<header>
<h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/{{ ARCHIVES_URL }}">all posts</a></h1>
<h1 id="recent-posts">Articles récents <a id="allposts" href="{{ SITEURL }}/{{ ARCHIVES_URL }}">tous les articles</a></h1>
</header>
<div class="recent-posts">
{% for article in articles %}

+ 8
- 8
theme/templates/tags.html View File

@ -1,21 +1,21 @@
{% extends 'base.html' %}
{% block title %}
All Tags · {{ super() }}
Tous les tags · {{ super() }}
{% endblock title %}
{% block head_description %}
All tags used in the {{ SITENAME|striptags|e }} blog.
Tous les tags du {{ SITENAME|striptags|e }}
{% endblock head_description %}
{% block meta_tags_in_head %}
{{ super() }}
<meta property="og:title" content="All Tags · {{ SITENAME|striptags|e }}"/>
<meta name="twitter:title" content="All Tags · {{ SITENAME|striptags|e }}">
<meta property="og:title" content="Tous les tags · {{ SITENAME|striptags|e }}"/>
<meta name="twitter:title" content="Tous les tags · {{ SITENAME|striptags|e }}">
{% from '_includes/_defaults.html' import FEATURED_IMAGE, TAGS_URL with context %}
<meta property="og:url" content="{{ SITEURL }}/{{ TAGS_URL }}" />
<meta property="og:description" content="All tags used in the {{ SITENAME|striptags|e }} blog" />
<meta name="twitter:description" content="All tags used in the {{ SITENAME|striptags|e }} blog">
<meta property="og:description" content="Tous les tags du {{ SITENAME|striptags|e }}" />
<meta name="twitter:description" content="Tous les tags du {{ SITENAME|striptags|e }}">
<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
<meta property="og:article:author" content="{{ AUTHOR }}" />
{% if FEATURED_IMAGE %}
@ -33,13 +33,13 @@ All tags used in the {{ SITENAME|striptags|e }} blog.
{% from '_includes/_defaults.html' import TAGS_URL with context %}
<div class="row-fluid">
<header class="page-header span10 offset2">
<h1><a href="{{ SITEURL }}/{{ TAGS_URL }}">All Tags</a></h1>
<h1><a href="{{ SITEURL }}/{{ TAGS_URL }}">Tous les tags</a></h1>
</header>
</div>
<div class="row-fluid">
<div class="span8 offset2">
<form class="form-search">
<input type="text" class="input-medium search-query filterinput" placeholder="Find a tag">
<input type="text" class="input-medium search-query filterinput" placeholder="Trouver un tag">
</form>
<ul class="list-of-tags">
{% for tag, articles in tags|sort %}

Loading…
Cancel
Save