mirror of https://gitlab.com/curben/blog
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:
parent
69d7aabe63
commit
4a785a6cf1
|
@ -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
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue