fix: exclude webmaster verification file from rendering

fix(sitemap): skipRenderList shouldn't be a constant due to line 13-17
This commit is contained in:
curben 2019-05-30 18:15:15 +09:30
parent 69d7aabe63
commit 4a785a6cf1
2 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ timezone:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://curben.netlify.com
root: ""
root: ''
permalink: :year/:month/:day/:title/
permalink_defaults:
@ -26,8 +26,9 @@ category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
- 'google5149b8b3449442e3.html'
include:
- _headers # Netlify header file
- '_headers' # Netlify header file
# Writing
new_post_name: :title.md # File name of new posts

View File

@ -5,10 +5,9 @@ const template = require('./template')
module.exports = function (locals) {
const config = this.config
const skipRenderList = [
let skipRenderList = [
'*.js',
'*.css',
'google5149b8b3449442e3.html'
'*.css'
]
if (Array.isArray(config.skip_render)) {