correct tags and names

This commit is contained in:
sspaeti 2024-02-20 19:16:17 +01:00
parent 8cb24ec0b3
commit 4777b3af91
1 changed files with 15 additions and 11 deletions

View File

@ -45,23 +45,27 @@
<!-- Open Graph Meta Tags for Social Media Exposure --> <!-- Open Graph Meta Tags for Social Media Exposure -->
{{#if is_frontmatter}} {{#if is_frontmatter}}
<meta property="og:title" content="{{ og_title }}"> <meta name="title" property="og:title" content="{{ og_title }}">
<meta property="og:description" content="{{ og_description }}"> <meta name="description" property="og:description" content="{{ og_description }}">
<meta property="og:image" content="{{this.frontmatter.featured_image_url}}">
<meta property="og:url" content="{{ og_image_url}}">
<meta name="twitter:title" content="{{ og_title }}"/> <meta name="twitter:title" content="{{ og_title }}"/>
<meta name="twitter:description" content="{{ og_description }}"/> <meta name="twitter:description" content="{{ og_description }}"/>
<meta name="twitter:image" content="{{ og_image_url }}"/> <!-- <meta property="og:url" content="{{ base_url}}"> -->
{{else}} {{else}}
<meta property="og:title" content="mdBook Documentation"> <meta name="title" property="og:title" content="mdBook Documentation">
<meta property="og:description" content="Create book from markdown files. Like Gitbook but implemented in Rust"> <meta name="description" property="og:description" content="Create book from markdown files. Like Gitbook but implemented in Rust">
<meta property="og:image" content="https://rust-lang.github.io/mdBook/favicon.png"> <!-- <meta property="og:url" content="https://www.dedp.online"> -->
<meta property="og:url" content="https://rust-lang.github.io/mdBook/">
<meta name="twitter:title" content="mdBook Documentation"/> <meta name="twitter:title" content="mdBook Documentation"/>
<meta name="twitter:image" content="https://rust-lang.github.io/mdBook/favicon.png"/>
<meta name="twitter:description" content="Create book from markdown files. Like Gitbook but implemented in Rust"/> <meta name="twitter:description" content="Create book from markdown files. Like Gitbook but implemented in Rust"/>
{{/if}} {{/if}}
<meta name="author" content="dBook"> {{#if og_image_url}}
<meta property="og:image" content="{{ og_image_url }}">
<meta name="twitter:image" content="{{ og_image_url }}"/>
{{else}}
<meta property="og:image" content="https://rust-lang.github.io/mdBook/favicon.png">
<meta name="twitter:image" content="https://rust-lang.github.io/mdBook/favicon.png"/>
{{/if}}
<meta name="author" content="mdBook">
<meta property="og:type" content="book"> <meta property="og:type" content="book">
<meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:creator" content="@rustlang"/> <meta name="twitter:creator" content="@rustlang"/>