mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added further open graph tags
This commit is contained in:
parent
a1bc6f99eb
commit
fdea0a8a04
@ -8,10 +8,14 @@
|
|||||||
{% set title = config.site_name ~ " - " ~ page.title | striptags %}
|
{% set title = config.site_name ~ " - " ~ page.title | striptags %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% set image = config.site_url ~ 'assets/images/material.png' %}
|
{% set image = config.site_url ~ 'assets/images/material.png' %}
|
||||||
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:title" content="{{ title }}">
|
<meta property="og:title" content="{{ title }}">
|
||||||
<meta property="og:description" content="{{ config.site_description }}">
|
<meta property="og:description" content="{{ config.site_description }}">
|
||||||
<meta property="og:url" content="{{ page.canonical_url }}">
|
<meta property="og:url" content="{{ page.canonical_url }}">
|
||||||
<meta property="og:image" content="{{ image }}">
|
<meta property="og:image" content="{{ image }}">
|
||||||
|
<meta property="og:image:type" content="image/png">
|
||||||
|
<meta property="og:image:width" content="600">
|
||||||
|
<meta property="og:image:height" content="314">
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta name="twitter:site" content="@squidfunk">
|
<meta name="twitter:site" content="@squidfunk">
|
||||||
<meta name="twitter:creator" content="@squidfunk">
|
<meta name="twitter:creator" content="@squidfunk">
|
||||||
|
@ -35,10 +35,14 @@
|
|||||||
{% set image = config.site_url ~ 'assets/images/material.png' %}
|
{% set image = config.site_url ~ 'assets/images/material.png' %}
|
||||||
|
|
||||||
<!-- Open graph meta tags -->
|
<!-- Open graph meta tags -->
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:title" content="{{ title }}" />
|
<meta property="og:title" content="{{ title }}" />
|
||||||
<meta property="og:description" content="{{ config.site_description }}" />
|
<meta property="og:description" content="{{ config.site_description }}" />
|
||||||
<meta property="og:url" content="{{ page.canonical_url }}" />
|
<meta property="og:url" content="{{ page.canonical_url }}" />
|
||||||
<meta property="og:image" content="{{ image }}" />
|
<meta property="og:image" content="{{ image }}" />
|
||||||
|
<meta property="og:image:type" content="image/png" />
|
||||||
|
<meta property="og:image:width" content="600" />
|
||||||
|
<meta property="og:image:height" content="314" />
|
||||||
|
|
||||||
<!-- Twitter meta tags -->
|
<!-- Twitter meta tags -->
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
Loading…
Reference in New Issue
Block a user