Skip to content

Commit

Permalink
✨ Feature(keywords): add page keywords meta option
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #213
  • Loading branch information
Molunerfinn committed Jan 29, 2020
1 parent f78b7e8 commit 21c34fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions layout/includes/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- var pageDescription = page.description || page.title || config.description || ''
- var pageKeywords = (config.keywords || []).join(',')
- if (page.tags && page.tags.data) pageKeywords = page.tags.data.map(function(tag) {return tag.name;}).join(',')
- if (page.keywords) pageKeywords = page.keywords.join(',')
- var pageAuthor = config.email ? config.author + ',' + config.email : config.author
- var pageCopyright = config.copyright || config.author

Expand Down
1 change: 1 addition & 0 deletions layout/includes/slide/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- var pageDescription = page.description || page.title || config.description || ''
- var pageKeywords = (config.keywords || []).join(',')
- if (page.tags && page.tags.data) pageKeywords = page.tags.data.map(function(tag) {return tag.name;}).join(',')
- if (page.keywords) pageKeywords = page.keywords.join(',')
- var pageAuthor = config.author + ',' + config.email
- var pageCopyright = config.copyright || config.author

Expand Down

0 comments on commit 21c34fd

Please sign in to comment.