diff --git a/_config.yml b/_config.yml index 2254584..588a28d 100644 --- a/_config.yml +++ b/_config.yml @@ -26,6 +26,8 @@ category_dir: categories code_dir: downloads/code i18n_dir: :lang skip_render: +include: + - _headers # Writing new_post_name: :title.md # File name of new posts diff --git a/netlify.toml b/netlify.toml index 14bdc8c..1d663ab 100644 --- a/netlify.toml +++ b/netlify.toml @@ -10,16 +10,16 @@ X-Content-Type-Options = "nosniff" [[headers]] - for = "*.html" + for = "/*.html" [headers.value] Content-Encoding = "gzip, br" [[headers]] - for = "*.css" + for = "/*.css" [headers.value] Content-Encoding = "gzip, br" [[headers]] - for = "*.js" + for = "/*.js" [headers.value] Content-Encoding = "gzip, br" diff --git a/source/_headers b/source/_headers new file mode 100644 index 0000000..11059a8 --- /dev/null +++ b/source/_headers @@ -0,0 +1,13 @@ +/* + X-Frame-Options: DENY + X-XSS-Protection: 1; mode=block + X-Content-Type-Options: nosniff + +/*.html + Content-Encoding: gzip, br + +/*.css" + Content-Encoding: gzip, br + +/*.js" + Content-Encoding: gzip, br