Add name to page title
This commit is contained in:
parent
33ddeee832
commit
dc25ba4336
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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 }}"
|
||||
---
|
||||
Loading…
Reference in a new issue