mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed open graph and Twitter cards documentation
This commit is contained in:
parent
623a63101d
commit
6e47fe8a6e
@ -87,9 +87,9 @@ tags to the template:
|
|||||||
{% block extrahead %}
|
{% block extrahead %}
|
||||||
{% set title = config.site_name %}
|
{% set title = config.site_name %}
|
||||||
{% if page and page.meta and page.meta.title %}
|
{% if page and page.meta and page.meta.title %}
|
||||||
{% set title = config.site_name ~ " - " ~ page.meta.title %}
|
{% set title = title ~ " - " ~ page.meta.title %}
|
||||||
{% elif page and page.title and not page.is_homepage %}
|
{% elif page and page.title and not page.is_homepage %}
|
||||||
{% set title = config.site_name ~ " - " ~ page.title | striptags %}
|
{% set title = title ~ " - " ~ page.title | striptags %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:title" content="{{ title }}" />
|
<meta property="og:title" content="{{ title }}" />
|
||||||
@ -115,9 +115,9 @@ of your site:
|
|||||||
{% block extrahead %}
|
{% block extrahead %}
|
||||||
{% set title = config.site_name %}
|
{% set title = config.site_name %}
|
||||||
{% if page and page.meta and page.meta.title %}
|
{% if page and page.meta and page.meta.title %}
|
||||||
{% set title = config.site_name ~ " - " ~ page.meta.title %}
|
{% set title = title ~ " - " ~ page.meta.title %}
|
||||||
{% elif page and page.title and not page.is_homepage %}
|
{% elif page and page.title and not page.is_homepage %}
|
||||||
{% set title = config.site_name ~ " - " ~ page.title | striptags %}
|
{% set title = title ~ " - " ~ page.title | striptags %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
<meta name="twitter:site" content="<username>" />
|
<meta name="twitter:site" content="<username>" />
|
||||||
|
Loading…
Reference in New Issue
Block a user