mirror of https://gitlab.com/curben/blog
fix: remove index.html from url
This commit is contained in:
parent
8b5c25359e
commit
919af586ce
|
@ -45,7 +45,7 @@ function openGraphHelper (options = {}) {
|
|||
const keywords = page.keywords || (page.tags && page.tags.length ? page.tags : undefined) || config.keywords
|
||||
const title = page.title || theme.nickname
|
||||
const type = (this.is_post() ? 'article' : 'website')
|
||||
const url = this.url
|
||||
const url = this.url.replace(/index.html$/, '')
|
||||
const siteName = theme.nickname
|
||||
const twitterCard = options.twitter_card || 'summary'
|
||||
const published = page.date || false
|
||||
|
|
Loading…
Reference in New Issue