Skip to content

Commit

Permalink
Adds support for meta keywords (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexicalunit authored Aug 8, 2020
1 parent ed31f79 commit 8c0156c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Unreleased version

- Adds support for site level keywords page meta header. (#691)
- Adds support for custom meta-theme site color. (#692)
- Add support for `site-css` config parameter to provide site-level CSS files. (#695)
- Add support for `description` YAML parameter to provide a more detailed meta description (#690)
Expand Down
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ link-tags: true
# Excerpt Word Length - Truncates the excerpt to the specified number of words on the index page
excerpt_length: 50

# Sets the search engine keywords for pages on your site
#keywords: "my,list,of,keywords"

# --- Colours / background image --- #

# Personalize the colors in your website. Colour values can be any valid CSS colour
Expand Down
4 changes: 4 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<meta name="theme-color" content="{{ site.custom-site-color }}">
{% endif %}

{% if site.keywords %}
<meta name="keywords" content="{{ site.keywords }}">
{% endif %}

<link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}">

{% include gtag.html %}
Expand Down

0 comments on commit 8c0156c

Please sign in to comment.