Add support for the Internet Defense League code
diff --git a/README.md b/README.md
index e95bf6e..295bb3a 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # SVBHACK
 
-pelican-svbhack is a responsive theme for [Pelican](http://getpelican.com), it is my hack of a svbtle-like theme. It started as a fork of [pelican-svbtle](https://github.com/wting/pelican-svbtle) but then was almost completely rewritten.
+pelican-svbhack is a responsive theme for [Pelican](http://getpelican.com), it is my hack of a svbtle-like theme.
 
 ## DEMO
 
@@ -24,12 +24,24 @@
 
 ## PELICANCONF.PY
 
-Supports the most common global variables, patches are welcomed if you need better support. In addition to the standard ones, you can also set:
+Supports a number of common global variables but patches are welcomed if you need better support.
 
 - `GOOGLE_ANALYTICS`
-- `TAGLINE`
+
+set this to your UA-XYZ code
+
 - `USER_LOGO_URL`
 
+make it point to a page/face logo
+
+- `TAGLINE`
+
+some text rendered right below the logo
+
+- `INTERNET_DEFENSE_LEAGUE`
+
+set this to `True` if you want to enable the [Internet Defense League](http://internetdefenseleague.org) code
+
 When developing locally, you may want to set the following variable: `SITEURL = http://localhost:8000`
 
 ## MODIFICATIONS
@@ -39,8 +51,6 @@
 
 ## AUTHOR
 
-pelican-svbtle is authored by William Ting.
-
 pelican-svbhack is authored by Giulio Fidente.
 
 ## LICENSE
diff --git a/templates/base.html b/templates/base.html
index 79a6a3e..48f1542 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -28,7 +28,7 @@
     {% block title %}{{ SITENAME }}{% endblock %}
   </title>
 
-  {% include "analytics.html" %}
+  {% include "modules/analytics.html" %}
 </head>
 
 <body>
@@ -84,8 +84,9 @@
     </footer>
 
     <div id="ending_message">
-      <p>&copy Giulio Fidente. Built using <a href="http://getpelican.com" target="_blank">Pelican</a>. You can fork the theme on <a href="https://github.com/giulivo/pelican-svbhack" target="_blank">github</a>.</p>
+      <p>&copy Giulio Fidente. Built using <a href="http://getpelican.com" target="_blank">Pelican</a>. You can fork the theme on <a href="https://github.com/giulivo/pelican-svbhack" target="_blank">github</a>. {% if INTERNET_DEFENSE_LEAGUE %}Join the <a href="http://internetdefenseleague.org">Internet Defense League</a>{% endif %}.</p>
     </div>
   </main>
+  {% include "modules/idl.html" %}
 </body>
 </html>
diff --git a/templates/index.html b/templates/index.html
index b798063..635ef08 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -16,5 +16,5 @@
 {% endblock %}
 
 {% block footer %}
-{% include "pagination.html" %}
+{% include "modules/pagination.html" %}
 {% endblock %}
diff --git a/templates/analytics.html b/templates/modules/analytics.html
similarity index 100%
rename from templates/analytics.html
rename to templates/modules/analytics.html
diff --git a/templates/modules/idl.html b/templates/modules/idl.html
new file mode 100644
index 0000000..611cb42
--- /dev/null
+++ b/templates/modules/idl.html
@@ -0,0 +1,13 @@
+{% if INTERNET_DEFENSE_LEAGUE %}
+<script type="text/javascript">
+  window._idl = {};
+  _idl.variant = "banner";
+  (function() {
+    var idl = document.createElement('script');
+    idl.type = 'text/javascript';
+    idl.async = true;
+    idl.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'members.internetdefenseleague.org/include/?url=' + (_idl.url || '') + '&campaign=' + (_idl.campaign || '') + '&variant=' + (_idl.variant || 'banner');
+    document.getElementsByTagName('body')[0].appendChild(idl);
+  })();
+</script>
+{% endif %}
diff --git a/templates/pagination.html b/templates/modules/pagination.html
similarity index 100%
rename from templates/pagination.html
rename to templates/modules/pagination.html