fix: remove index.html from url

This commit is contained in:
curben 2019-08-09 22:44:39 +09:30
parent 8b5c25359e
commit 919af586ce
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 1 additions and 1 deletions

View File

@ -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