meta description: use site description if page one is not provided

This commit is contained in:
Dean Attali 2020-08-08 18:32:36 -04:00 committed by GitHub
parent 3579b04705
commit 67848364f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@
<meta name="description" content="{{ page.description }}">
{% elsif page.subtitle %}
<meta name="description" content="{{ page.subtitle }}">
{% elsif site.description %}
<meta name="description" content="{{ site.description }}">
{% endif %}
{% if site.mobile-theme-col %}