From 4a785a6cf1d7db9be1fafa0d187b1799e93ad97c Mon Sep 17 00:00:00 2001 From: curben Date: Thu, 30 May 2019 18:15:15 +0930 Subject: [PATCH] fix: exclude webmaster verification file from rendering fix(sitemap): skipRenderList shouldn't be a constant due to line 13-17 --- _config.yml | 5 +++-- themes/typing/scripts/sitemap/generator.js | 5 ++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index e3f94ae..23c2911 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/themes/typing/scripts/sitemap/generator.js b/themes/typing/scripts/sitemap/generator.js index c6e1432..0da6dee 100644 --- a/themes/typing/scripts/sitemap/generator.js +++ b/themes/typing/scripts/sitemap/generator.js @@ -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)) {