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
|
# URL
|
||||||
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
|
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
|
||||||
url: https://curben.netlify.com
|
url: https://curben.netlify.com
|
||||||
root: ""
|
root: ''
|
||||||
permalink: :year/:month/:day/:title/
|
permalink: :year/:month/:day/:title/
|
||||||
permalink_defaults:
|
permalink_defaults:
|
||||||
|
|
||||||
|
@ -26,8 +26,9 @@ category_dir: categories
|
||||||
code_dir: downloads/code
|
code_dir: downloads/code
|
||||||
i18n_dir: :lang
|
i18n_dir: :lang
|
||||||
skip_render:
|
skip_render:
|
||||||
|
- 'google5149b8b3449442e3.html'
|
||||||
include:
|
include:
|
||||||
- _headers # Netlify header file
|
- '_headers' # Netlify header file
|
||||||
|
|
||||||
# Writing
|
# Writing
|
||||||
new_post_name: :title.md # File name of new posts
|
new_post_name: :title.md # File name of new posts
|
||||||
|
|
|
@ -5,10 +5,9 @@ const template = require('./template')
|
||||||
|
|
||||||
module.exports = function (locals) {
|
module.exports = function (locals) {
|
||||||
const config = this.config
|
const config = this.config
|
||||||
const skipRenderList = [
|
let skipRenderList = [
|
||||||
'*.js',
|
'*.js',
|
||||||
'*.css',
|
'*.css'
|
||||||
'google5149b8b3449442e3.html'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if (Array.isArray(config.skip_render)) {
|
if (Array.isArray(config.skip_render)) {
|
||||||
|
|
Loading…
Reference in New Issue