From 91cfffc0b9f2584ce47d292b62d93bd5f411389a Mon Sep 17 00:00:00 2001 From: scalastic Date: Tue, 28 Jan 2025 15:35:38 +0100 Subject: [PATCH] chore(metadata): Refactor metadata --- _config.yml | 4 +++- _data/en/i18n.yml | 7 ++++++- _data/fr/i18n.yml | 7 ++++++- _includes/head.html | 12 ++++++++---- _includes/jsonld_home.html | 13 ++++++++----- _layouts/main.html | 2 +- _sass/parts/_home-page.scss | 1 + assets/img/site-scalastic.jpg | Bin 498945 -> 294920 bytes 8 files changed, 33 insertions(+), 13 deletions(-) diff --git a/_config.yml b/_config.yml index 75180b3ff..cfcd5c047 100755 --- a/_config.yml +++ b/_config.yml @@ -1,4 +1,4 @@ -title: 'Scalastic 👨🏻‍💻' +title: 'Scalastic' permalink: ':title/' url: https://scalastic.io #url: http://localhost:4000 @@ -24,6 +24,8 @@ social: - https://www.linkedin.com/in/jean-jerome-levy - https://github.com/jeanjerome - https://github.com/scalastic + - https://mastodon.social/@jeanjeromelevy + - https://bsky.app/profile/scalastic.bluesky.scalastic.io search: true diff --git a/_data/en/i18n.yml b/_data/en/i18n.yml index 59f33c446..dde664915 100644 --- a/_data/en/i18n.yml +++ b/_data/en/i18n.yml @@ -10,10 +10,15 @@ contact-me: "More" transl-version: "🇫🇷 version française" transl-flag: "france.png" copyrigth: "Jean-Jerome Levy for Scalastic unless otherwise specified" -site-description: "I am an independent DevOps 🚀 and Cloud ☁️ consultant" related-article: "You may also like..." page404-home: "Return to a safe place!" page404-chance: "Take your chance?" +page-title-homepage: "Articles on DevOps and Cloud - Freelance Consultant Jean-Jerome Levy" +page-list-title: "Page :num - Articles on DevOps and Cloud - Freelance Consultant Jean-Jerome Levy" +page-list-description: "Explore articles on DevOps and Cloud on page :num. Access useful and inspiring content written by Jean-Jerome Levy, freelance expert." +page-next-with-num: "Go to page :num of articles" +page-next: "Go to the next page of articles" +page-previous: "Go back to the previous page of articles" article-previous: "Previous Article" article-next: "Next Article" article-comments: "Comments" diff --git a/_data/fr/i18n.yml b/_data/fr/i18n.yml index 8c25db248..d90e9694c 100644 --- a/_data/fr/i18n.yml +++ b/_data/fr/i18n.yml @@ -10,10 +10,15 @@ contact-me: " De plus" transl-version: "🇬🇧 🇺🇸 english version" transl-flag: "uk.png" copyrigth: "Jean-Jérôme Lévy pour Scalastic sauf indication contraire" -site-description: "Je suis consultant freelance en DevOps 🚀 et Cloud ☁️" related-article: "Vous aimerez peut-être aussi..." page404-home: "Retournez en lieu sûr !" page404-chance: "Tentez votre chance ?" +page-title-homepage: "Articles sur le DevOps et le Cloud - Consultant freelance Jean-Jerome Levy" +page-list-title: "Page :num - Articles sur le DevOps et le Cloud - Consultant freelance Jean-Jerome Levy" +page-list-description: "Explorez les articles sur le DevOps et le Cloud en page :num. Accédez à des contenus utiles et inspirants rédigés par Jean-Jerome Levy, expert freelance." +page-next-with-num: "Allez à la page :num des articles" +page-next: "Allez à la page suivante des articles" +page-previous: "Retournez à la page précédentes des articles" article-previous: "Article Précédent" article-next: "Article Suivant" article-comments: "Commentaires" diff --git a/_includes/head.html b/_includes/head.html index 0dab6a577..93b98fe0c 100755 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,7 +4,11 @@ {%- elsif page.title -%} {{ page.title }} {%- else -%} - {{ site.data.i18n.site-description }} + {%- if paginator.page == 1 -%} + {{ site.data.i18n.page-title-homepage }} + {%- else -%} + {{ site.data.i18n.page-list-title | replace: ':num', paginator.page }} + {%- endif -%} {%- endif -%} {%- endcapture -%} @@ -14,7 +18,7 @@ {%- elsif page.description -%} {{ page.description }} {%- else -%} - {{ site.data.i18n.site-description }} + {{ site.data.i18n.page-list-description | replace: ':num', paginator.page }} {%- endif -%} {%- endcapture -%} @@ -49,7 +53,7 @@ - {{ pageTitle | append: ' | ' | append: site.title }} + {{ pageTitle }} @@ -59,7 +63,7 @@ - + diff --git a/_includes/jsonld_home.html b/_includes/jsonld_home.html index 8c737703e..e0759b958 100644 --- a/_includes/jsonld_home.html +++ b/_includes/jsonld_home.html @@ -3,8 +3,8 @@ "@context": "http://schema.org", "@type": "WebSite", "url": "{{ site.url }}{{ site.baseurl }}{% if site.active_lang != site.default_lang %}/{{ site.active_lang }}{% endif %}/", - "headline": "{{ site.title }}", - "about": "{{ site.data.i18n.company-desc }}", + "headline": "{{ site.data.i18n.page-list-title | replace: ':num', paginator.page }}", + "about": "{{ site.data.i18n.page-list-description | replace: ':num', paginator.page }}", "image": [ "{{ site.url }}{{ site.baseurl }}{{ site.image }}" ], @@ -23,7 +23,7 @@ "https://www.linkedin.com/in/jean-jerome-levy", "https://github.com/jeanjerome", "https://github.com/scalastic", - "https://hub.docker.com/u/jeanjerome" + "https://mastodon.social/@jeanjeromelevy" ] }, "editor": { @@ -34,7 +34,7 @@ "https://www.linkedin.com/in/jean-jerome-levy", "https://github.com/jeanjerome", "https://github.com/scalastic", - "https://hub.docker.com/u/jeanjerome" + "https://mastodon.social/@jeanjeromelevy" ] }, "inLanguage": "{% if site.active_lang == site.default_lang %}fr-FR{% else %}en-US{% endif %}", @@ -46,7 +46,10 @@ "name": "Scalastic", "description": "{{ site.data.i18n.company-desc }}", "url": "{{ site.url }}", - "sameAs": [ "https://github.com/scalastic" ], + "sameAs": [ + "https://github.com/scalastic", + "https://bsky.app/profile/scalastic.bluesky.scalastic.io" + ], "logo": { "@type": "ImageObject", "url": "{{ site.url }}{{ site.baseurl }}{{ site.logo }}" diff --git a/_layouts/main.html b/_layouts/main.html index 2a67899fc..f43071ce6 100644 --- a/_layouts/main.html +++ b/_layouts/main.html @@ -56,7 +56,7 @@