Skip to content

Commit 3021233

Browse files
authored
Adds page configuration for description (daattali#690)
1 parent 6e24421 commit 3021233

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ nav-short | By default, the navigation bar gets shorter after scrolling down t
150150
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.
151151
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.
152152
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.
153+
description | A longer description of page or blog post that is used for your meta description content.
153154

154155
## Advanced parameters
155156

_includes/head.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
44

55
<title>{% if page.use-site-title %}{{ site.title }} {{ site.title-separator | default: '-' }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
6-
6+
77
{% if site.author %}
88
<meta name="author" content="{{ site.author }}">
99
{% endif %}
10-
11-
{% if page.subtitle %}
10+
11+
{% if page.description %}
12+
<meta name="description" content="{{ page.description }}">
13+
{% elsif page.subtitle %}
1214
<meta name="description" content="{{ page.subtitle }}">
1315
{% endif %}
1416

0 commit comments

Comments
 (0)