mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added support for meta keywords (#2029)
* Update mkdocs.yml * Update base.html
This commit is contained in:
parent
ab5aa84cbb
commit
6608f3a439
@ -22,6 +22,7 @@
|
|||||||
site_name: Material for MkDocs
|
site_name: Material for MkDocs
|
||||||
site_url: https://squidfunk.github.io/mkdocs-material/
|
site_url: https://squidfunk.github.io/mkdocs-material/
|
||||||
site_author: Martin Donath
|
site_author: Martin Donath
|
||||||
|
site_keywords: Material,MkDocs
|
||||||
site_description: >-
|
site_description: >-
|
||||||
Create a branded static site from a set of Markdown files to host the
|
Create a branded static site from a set of Markdown files to host the
|
||||||
documentation of your Open Source or commercial project – customizable,
|
documentation of your Open Source or commercial project – customizable,
|
||||||
|
@ -31,6 +31,13 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||||
|
|
||||||
|
<!-- Page keywords -->
|
||||||
|
{% if page and page.meta and page.meta.keywords %}
|
||||||
|
<meta name="keywords" content="{{ page.meta.keywords }}" />
|
||||||
|
{% elif config.site_keywords %}
|
||||||
|
<meta name="keywords" content="{{ config.site_keywords }}" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Page description -->
|
<!-- Page description -->
|
||||||
{% if page and page.meta and page.meta.description %}
|
{% if page and page.meta and page.meta.description %}
|
||||||
<meta name="description" content="{{ page.meta.description }}" />
|
<meta name="description" content="{{ page.meta.description }}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user