head.hbs 89 lignes · 3880 octets
{{!-- Bloc <head> additionnel injecté par mdBook.

      Couvre :
      - URL canonique (une par page, par langue)
      - Alternates hreflang (les 6 langues supportées)
      - OpenGraph + Twitter cards
      - JSON-LD schema.org (TechArticle dans un SoftwareApplication)

      Le domaine public est codé en dur ici. Pour changer (ex : staging),
      éditer SITE_BASE_URL ou scripter un `sed` dans seo-postbuild.sh.
--}}

{{!-- Base publique du site et langue courante --}}
{{#if path}}
<link rel="canonical" href="https://demo.gitrust.eu/docs/{{ path }}">
{{else}}
<link rel="canonical" href="https://demo.gitrust.eu/docs/">
{{/if}}

{{!-- Alternates hreflang pour les 6 langues. demo.gitrust.eu/docs/{lang}/ --}}
<link rel="alternate" hreflang="fr" href="https://demo.gitrust.eu/docs/fr/{{ path }}">
<link rel="alternate" hreflang="en" href="https://demo.gitrust.eu/docs/en/{{ path }}">
<link rel="alternate" hreflang="de" href="https://demo.gitrust.eu/docs/de/{{ path }}">
<link rel="alternate" hreflang="es" href="https://demo.gitrust.eu/docs/es/{{ path }}">
<link rel="alternate" hreflang="pt" href="https://demo.gitrust.eu/docs/pt/{{ path }}">
<link rel="alternate" hreflang="it" href="https://demo.gitrust.eu/docs/it/{{ path }}">
<link rel="alternate" hreflang="x-default" href="https://demo.gitrust.eu/docs/fr/{{ path }}">

{{!-- OpenGraph --}}
<meta property="og:type" content="article">
<meta property="og:site_name" content="Documentation gitrust">
<meta property="og:title" content="{{ chapter_title }}">
<meta property="og:description" content="{{ description }}">
<meta property="og:url" content="https://demo.gitrust.eu/docs/{{ path }}">
<meta property="og:image" content="https://gitrust.eu/images/logo.png">
<meta property="og:locale" content="fr_FR">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:locale:alternate" content="de_DE">
<meta property="og:locale:alternate" content="es_ES">
<meta property="og:locale:alternate" content="pt_PT">
<meta property="og:locale:alternate" content="it_IT">

{{!-- Twitter Cards --}}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ chapter_title }}">
<meta name="twitter:description" content="{{ description }}">
<meta name="twitter:image" content="https://gitrust.eu/images/logo.png">

{{!-- Robots : indexer et suivre, snippets longs autorisés, image preview large --}}
<meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1">

{{!-- JSON-LD : TechArticle qui fait partie d'un WebSite et décrit un SoftwareApplication --}}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://gitrust.eu/#organization",
      "name": "Gitrust",
      "url": "https://gitrust.eu/",
      "logo": "https://gitrust.eu/images/logo.png"
    },
    {
      "@type": "WebSite",
      "@id": "https://demo.gitrust.eu/docs/#website",
      "url": "https://demo.gitrust.eu/docs/",
      "name": "Documentation gitrust",
      "inLanguage": "fr",
      "publisher": { "@id": "https://gitrust.eu/#organization" },
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://demo.gitrust.eu/docs/?q={search_term_string}",
        "query-input": "required name=search_term_string"
      }
    },
    {
      "@type": "TechArticle",
      "headline": "{{ chapter_title }}",
      "description": "{{ description }}",
      "url": "https://demo.gitrust.eu/docs/{{ path }}",
      "inLanguage": "fr",
      "isPartOf": { "@id": "https://demo.gitrust.eu/docs/#website" },
      "about": { "@type": "SoftwareApplication", "name": "Gitrust", "applicationCategory": "DeveloperApplication", "operatingSystem": "Linux" },
      "publisher": { "@id": "https://gitrust.eu/#organization" }
    }
  ]
}
</script>