Adds page configuration for description (#690)

This commit is contained in:
Amy Troschinetz 2020-08-07 18:03:44 -07:00 committed by GitHub
parent 6e2442157f
commit 3021233850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -150,6 +150,7 @@ nav-short | By default, the navigation bar gets shorter after scrolling down t
gh-repo   | If you want to show GitHub buttons at the top of a post, this sets the GitHub repo name (eg. `daattali/beautiful-jekyll`). You must also use the `gh-badge` parameter to specify what buttons to show.
gh-badge | Select which GitHub buttons to display. Available options are: [star, watch, fork, follow]. You must also use the `gh-repo` parameter to specify the GitHub repo.
layout | What type of page this is (default is `post` for blog posts and `page` for other pages). See _Page types_ section below for more information.
description | A longer description of page or blog post that is used for your meta description content.
## Advanced parameters

View File

@ -8,7 +8,9 @@
<meta name="author" content="{{ site.author }}">
{% endif %}
{% if page.subtitle %}
{% if page.description %}
<meta name="description" content="{{ page.description }}">
{% elsif page.subtitle %}
<meta name="description" content="{{ page.subtitle }}">
{% endif %}