mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed open graph image URL
This commit is contained in:
parent
5be665825e
commit
a1bc6f99eb
@ -7,7 +7,7 @@
|
||||
{% if page and page.title and not page.is_homepage %}
|
||||
{% set title = config.site_name ~ " - " ~ page.title | striptags %}
|
||||
{% endif %}
|
||||
{% set image = 'assets/images/material.png' | url %}
|
||||
{% set image = config.site_url ~ 'assets/images/material.png' %}
|
||||
<meta property="og:title" content="{{ title }}">
|
||||
<meta property="og:description" content="{{ config.site_description }}">
|
||||
<meta property="og:url" content="{{ page.canonical_url }}">
|
||||
|
@ -22,7 +22,8 @@
|
||||
site_name: Material for MkDocs
|
||||
site_description: A Material Design theme for MkDocs
|
||||
site_author: Martin Donath
|
||||
site_url: https://squidfunk.github.io/mkdocs-material/
|
||||
site_url: https://deploy-preview-1486--mkdocs-material-preview.netlify.com/
|
||||
#site_url: https://squidfunk.github.io/mkdocs-material/
|
||||
|
||||
# Repository
|
||||
repo_name: squidfunk/mkdocs-material
|
||||
|
@ -31,8 +31,8 @@
|
||||
{% set title = config.site_name ~ " - " ~ page.title | striptags %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Determine image -->
|
||||
{% set image = 'assets/images/material.png' | url %}
|
||||
<!-- The image needs to have an absolute URL -->
|
||||
{% set image = config.site_url ~ 'assets/images/material.png' %}
|
||||
|
||||
<!-- Open graph meta tags -->
|
||||
<meta property="og:title" content="{{ title }}" />
|
||||
|
Loading…
Reference in New Issue
Block a user