Add name to page title

This commit is contained in:
TheThomaas 2024-02-11 21:25:20 +01:00
parent 33ddeee832
commit dc25ba4336
3 changed files with 6 additions and 3 deletions

View file

@ -1,7 +1,10 @@
{
"name": "Thomas",
"firstName": "Thomas",
"name": "Amstutz",
"mail": "thomas@amstutz.it",
"phone": "",
"occupation": "Développeur web",
"location": "Delémont, JU",
"about": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio doloribus, iure eum nostrum error tempora facilis ea.",
"skills": [
"HTML",

View file

@ -1,4 +1,4 @@
{% assign pageTitle = title | append: ' - ' | append: site.title %}
{% assign pageTitle = author.firstName | append: ' ' | append: author.name | append: ' - ' | append: author.occupation | append: ' à ' | append: author.location %}
{% if site.title == title %}
{% assign pageTitle = title %}

View file

@ -4,5 +4,5 @@ order: 0
template: 'hero'
eleventyComputed:
description: "{{ author.about }}"
displayedTitle: "Moi c'est {{ author.name }}<br>Et je suis développeur web"
displayedTitle: "Moi c'est {{ author.firstName }}<br>Et je suis {{ author.occupation }}"
---