From 2bd75660adc901de22b138ddc4bc609da52df03f Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Sat, 14 Nov 2020 18:12:58 +0100 Subject: [PATCH] Information about Content security policy headers. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 8f1118e..da14e47 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Sass is processed with Hugo pipes. To make using npm optional I have added the s * [Dates](#dates) * [Podcast](#podcast) * [Shortcodes](#shortcodes) +* [Content security policy headers](#Content-security-policy-headers) * [Choose between using jQuery or Umbrella JS](#choose-between-using-jquery-or-umbrella-js) * [Use Gulp to lint Sass and JavaScript](#use-gulp-to-lint-sass-and-javascript) * [Getting help](#getting-help) @@ -484,6 +485,10 @@ The **content** that should be wrapped. Some more content. ``` +## Content security policy headers + +Includes tracking code for Matomo or Google in a way that supports Content security policy headers. Read more in my blog post [Content security policy headers when using Matomo or Google analytics](https://xdeb.org/post/2020/01/14/content-security-policy-headers-when-using-matomo-or-google-analytics/). + ## Choose between using jQuery or Umbrella JS [Umbrella JS](https://umbrellajs.com/) (a tiny jQuery replacement) is always added and it's used for all theme JavaScript. To add jQuery, set the related parameter to true in the configuration file or in the front matter of specific pages. No problem having both libraries loaded on the same page.