Skip to content

Commit

Permalink
fix: website title
Browse files Browse the repository at this point in the history
  • Loading branch information
mlcdf committed Jun 8, 2022
1 parent 833ffc6 commit 84ab34f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
BIND = "127.0.0.1"

AUTHOR = "Maxime"
SITENAME = "www.mlcdf.fr"
SITENAME = "Maxime Le Conte des Floris"
SITEURL = f"http://{BIND}:{PORT}"

DESCRIPTION = "Bienvenue sur la page personnelle de Maxime Le Conte des Floris. Le jour, il est artisan logiciel et ingénieur DevOps. La nuit, c'est un photographe en herbe et mordu de cinéma."
Expand Down
2 changes: 1 addition & 1 deletion theme/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "layout.html" %}

{% block title %} {{SITENAME}} — Artisan logiciel {% endblock %}
{% block title %}Blog — {{SITENAME}}{% endblock %}

{% block content %}
<h1>Billets</h1>
Expand Down
10 changes: 5 additions & 5 deletions theme/templates/page.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "layout.html" %}

{% block title %}
{% if page.title != "Accueil" %}
{% block title -%}
{%- if page.title != "Accueil" -%}
{{page.title}} — {{ SITENAME }}
{% else %}
{%- else -%}
{{ SITENAME }}
{% endif %}
{% endblock %}
{%- endif %}
{%- endblock %}

{% block metadata %}
<meta name="description" content="{% if page .description %}{{ page .description }}{% else %}{{ DESCRIPTION }}{% endif %}">
Expand Down

0 comments on commit 84ab34f

Please sign in to comment.