mirror of https://gitlab.com/curben/blog
feat(open_graph): add article:author
This commit is contained in:
parent
b545b38c1e
commit
1b6841e9ef
|
@ -32,7 +32,8 @@ function openGraphHelper () {
|
||||||
const { config, page, theme } = this
|
const { config, page, theme } = this
|
||||||
const { content } = page
|
const { content } = page
|
||||||
let images = page.photos || []
|
let images = page.photos || []
|
||||||
let description = page.excerpt || theme.description || false
|
const description = page.excerpt || theme.description || false
|
||||||
|
const author = config.author
|
||||||
const keywords = page.tags || false
|
const keywords = page.tags || false
|
||||||
const title = page.title || theme.nickname
|
const title = page.title || theme.nickname
|
||||||
const type = (this.is_post() ? 'article' : 'website')
|
const type = (this.is_post() ? 'article' : 'website')
|
||||||
|
@ -70,6 +71,8 @@ function openGraphHelper () {
|
||||||
result += meta('description', description)
|
result += meta('description', description)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result += og('article:author', author)
|
||||||
|
|
||||||
if (keywords) {
|
if (keywords) {
|
||||||
keywords.forEach(tag => {
|
keywords.forEach(tag => {
|
||||||
result += og('article:tag', tag.name)
|
result += og('article:tag', tag.name)
|
||||||
|
|
Loading…
Reference in New Issue