aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Lissner <mike@free.law>2017-09-05 12:41:43 -0700
committerGitHub <noreply@github.com>2017-09-05 12:41:43 -0700
commit70bbbb7411ffac55daf26295cbba55fd3fa4101c (patch)
treeb4d82be2be8d90995020433b9417d91195e79ee0
parentefb323d63db6facd23c544bed7daff2732c67350 (diff)
downloadpelican-themes-70bbbb7411ffac55daf26295cbba55fd3fa4101c.tar.gz
Adds DNT meta so that Twitter doesn't track us
As explained on this page, this meta tag prevents Twitter from using your webpage to track people: https://dev.twitter.com/web/overview/privacy#what-privacy-options-do-website-publishers-have Generally speaking, this is the kind of tracking that nobody expects. Nobody thinks that by going to *my* website, which shows some tweets, that Twitter will be tracking them. Let's turn that off by default. Hopefully this isn't controversial.
-rw-r--r--pelican-bootstrap3/templates/includes/twitter_cards.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/twitter_cards.html b/pelican-bootstrap3/templates/includes/twitter_cards.html
index 3145915..036721f 100644
--- a/pelican-bootstrap3/templates/includes/twitter_cards.html
+++ b/pelican-bootstrap3/templates/includes/twitter_cards.html
@@ -1,6 +1,7 @@
{% if TWITTER_CARDS and USE_OPEN_GRAPH %}
{# Do not include duplicates tag with og ones. #}
{# Twitter is able to infer them from og. #}
+ <meta name="twitter:dnt" content="on">
<meta name="twitter:card" content="summary">
{% if TWITTER_USERNAME %}
<meta name="twitter:site" content="@{{ TWITTER_USERNAME }}">