From 3021233850dffef77e24d38029d5616ec9e2966e Mon Sep 17 00:00:00 2001 From: Amy Troschinetz Date: Fri, 7 Aug 2020 18:03:44 -0700 Subject: [PATCH] Adds page configuration for description (#690) --- README.md | 1 + _includes/head.html | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c9709d3..4d16045 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/_includes/head.html b/_includes/head.html index 6e31b6f..2695f6a 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -3,12 +3,14 @@ {% if page.use-site-title %}{{ site.title }} {{ site.title-separator | default: '-' }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %} - + {% if site.author %} {% endif %} - - {% if page.subtitle %} + + {% if page.description %} + + {% elsif page.subtitle %} {% endif %}