Commits (2)
......@@ -25,10 +25,8 @@
URL: https://www.vlent.nl/
Standards: HTML5, CSS3, Atom 1.0
Language: English
Services: Disqus comments
Icon font: IcoMoon - Essential Pack
Tools: Acrylamid, Sass, Compass
IDE: Emacs
IDE: Visual Studio Code
$( document ).ready(function() {
var disqus_public_key = $('#disqus_thread').data('pub-key');
var disqus_shortname = $('#disqus_thread').data('shortname');
var disqus_url = window.location.href;
var disqus_identifier = window.location.pathname;
var thread_identifier = "ident:" + disqus_identifier;
type: 'GET',
url: 'https://disqus.com/api/3.0/threads/set.jsonp',
data: { api_key: disqus_public_key, forum: disqus_shortname, thread: thread_identifier },
cache: false,
dataType: 'jsonp',
success: function(result) {
if (result.response.length === 1) {
btnText = 'Show comments (' + result.response[0].posts + ')';
$('.show-comments').on('click', function() {
$.getScript('//' + disqus_shortname + '.disqus.com/embed.js');
This diff is collapsed.
......@@ -19,8 +19,6 @@ EMAIL = '[email protected]'
FILTERS = ['markdown+headerid+delins+def_list', 'typography', 'h1']
DATE_FORMAT = '%Y-%m-%d %H:%M'
DISQUS_KEY = '2YTzu4nyYHHawjrkEMP8Vi8SL5wMH7p6AR77ad6pdMc59tODvp7eIC705ZvhR6rh'
SUMMARIZE_LINK = '<span>&#8230; <a href="%s" class="continue">Continue reading</a></span>'
......@@ -71,8 +71,7 @@ If you want to get in touch with me, you can use (in random order):
* <a rel="me" href="https://twitter.com/mvlent">Twitter</a>
* <a rel="me" href="https://nl.linkedin.com/in/markvanlent">LinkedIn</a>
Or you can send an email to "mark" at this domain name.
* <a href="mailto:[email protected]">Email</a>
## PGP
title: Removing the comments from this website
date: 2020-02-11
tags: [blog]
I've taken the step to removed the comments from my website. In this
article I'll give some stats and offer a bit of an explanation.
Let's start with some fun facts.
The first comment was placed on the article "[IOError: [Errno 28] No space left
on device](/weblog/2009/05/27/ioerror-errno-28-no-space-left-on-device/)" Over
the last 10 years a total of 457 comment have been placed. (At least, that is
the number according to [Disqus](https://disqus.com/). I may have thrown away
some spam in the past.) Of these, only 210 are actually published---all the
others are spam.
A total of 45 articles got commented on. The top three most commented articles:
- [Locked myself out of root account on EC2 Ubuntu instance](/weblog/2010/09/06/locked-myself-out-root-account-ec2-ubuntu-instance/) (26 comments)
- [Merge a separate Git repository into an existing one](/weblog/2013/11/02/merge-a-separate-git-repository-into-an-existing-one/) (24 comments)
- [IntegrityError: duplicate key value violates unique constraint](/weblog/2011/05/06/integrityerror-duplicate-key-value-violates-unique-constraint/) (17 comments)
To each and everyone that placed a comment here: **thank you!**
So why remove the comments then? The main reason is that the option to comment
here adds bloat. Just to show the Disqus form your browser has to make 17
requests and download about 286 KB of data.
_To be fair: if I write an article which uses all the fonts and their variants I
define on this site, about 220Kb of data is transferred. So that is also an area
where I can improve. But that is something for another day._
So from now on, I you want to send me feedback on an article, you will have to
[contact me](/about/#contact) via e.g. [Twitter](https://twitter.com/mvlent) or
<a href="mailto:[email protected]">email</a>.
......@@ -19,7 +19,7 @@ server {
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Referrer-Policy strict-origin-when-cross-origin always;
add_header Content-Security-Policy "default-src 'self'; script-src 'self' disqus.com/api/3.0/threads/set.jsonp a.disquscdn.com/embed.js vlent.disqus.com; style-src 'self' a.disquscdn.com; img-src 'self' referrer.disqus.com/juggler/stat.gif a.disquscdn.com/next/embed/assets/img/; frame-src disqus.com a.disquscdn.com; child-src disqus.com a.disquscdn.com; object-src 'none'; upgrade-insecure-requests; reflected-xss block; frame-ancestors 'none';" always;
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; frame-src 'none'; child-src 'none'; object-src 'none'; upgrade-insecure-requests; reflected-xss block; frame-ancestors 'none';" always;
add_header Feature-Policy "accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; payment 'none'; usb 'none'" always;
server_tokens off;
......@@ -155,7 +155,7 @@ server {
# Other redirects
rewrite /weblog/2009/05/27/ioerror-errno-28-no-space/ https://$host/weblog/2009/05/27/ioerror-errno-28-no-space-left-on-device/ permanent;
rewrite /weblog/2012/10/12/sprinting-for-newcomers-sjoerd-van-elferen/ https://$host/weblog/2012/10/12/sprinting-for-newcomers/ permanent;
rewrite /contact https://$host/about\#contact permanent;
rewrite /contact/ https://$host/about\#contact permanent;
rewrite /contact https://$host/about\#contact redirect;
rewrite /contact/ https://$host/about\#contact redirect;
......@@ -23,9 +23,6 @@
content: ""
page-break-before: always
white-space: pre-wrap
......@@ -235,14 +235,6 @@ li blockquote
.archive main
// Comments
color: $link-color
background-color: $background-color
border: 2px solid $link-color
speak: none
fill: $link-color
......@@ -47,8 +47,7 @@
The articles are licensed under a
<a rel="license" href="https://creativecommons.org/licenses/by/4.0/">
Creative Commons Attribution 4.0 International
License</a>. The comments are copyrighted by their
respective commenters.
<small class="disclaimer">
This is a personal weblog. The opinions expressed here
......@@ -36,18 +36,6 @@
{{ entry.content }}
{%- if env.type == 'entry' %}
{% if conf.disqus_shortname and not entry.draft %}
<div class="comments">
<button class="show-comments">Show comments</button>
<div id="disqus_thread" data-pub-key="{{ conf.disqus_key }}" data-shortname="{{ conf.disqus_shortname }}"></div>
<script src="/js/jquery-1.11.1.min.js"></script>
<script src="/js/comments.js"></script>
<p>Please enable JavaScript to view the <a href="{{ env.protocol }}://disqus.com/?ref_noscript">comments powered by Disqus.</a></p>
{% endif -%} {# show comments? #}
<aside role="complementary">
<svg xmlns="http://www.w3.org/2000/svg" class="hidden">
<symbol id="feed" viewBox="0 0 32 32">