aboutsummaryrefslogtreecommitdiffstats
path: root/bricks
diff options
context:
space:
mode:
authorMax Lambertini <m.lambertini@gmail.com>2015-10-28 14:45:48 +0100
committerMax Lambertini <m.lambertini@gmail.com>2015-10-28 14:45:48 +0100
commit953e1ff736518986ce4e3905e8fa0147d97c8890 (patch)
tree4ae917e6b6850b4df6ff89322be92d42c03d8e33 /bricks
parentef41efa4a8babbf55f2eccef07523b2d8e95b7b7 (diff)
downloadpelican-themes-953e1ff736518986ce4e3905e8fa0147d97c8890.zip
pelican-themes-953e1ff736518986ce4e3905e8fa0147d97c8890.tar.gz
pelican-themes-953e1ff736518986ce4e3905e8fa0147d97c8890.tar.bz2
Committing Discus Stuff
Diffstat (limited to 'bricks')
-rw-r--r--bricks/templates/article.html2
-rw-r--r--bricks/templates/article_discus.html19
-rw-r--r--bricks/templates/base.html9
-rw-r--r--bricks/templates/trademark.html10
4 files changed, 32 insertions, 8 deletions
diff --git a/bricks/templates/article.html b/bricks/templates/article.html
index 85f4fcc..8699f10 100644
--- a/bricks/templates/article.html
+++ b/bricks/templates/article.html
@@ -41,5 +41,7 @@
{% endfor %}
-->
</footer>
+ <!-- disqus {{ DISQUS_SITENAME }} -->
+ {% include 'article_discus.html' %}
</div>
{% endblock %}
diff --git a/bricks/templates/article_discus.html b/bricks/templates/article_discus.html
new file mode 100644
index 0000000..9df6f36
--- /dev/null
+++ b/bricks/templates/article_discus.html
@@ -0,0 +1,19 @@
+ {% if DISQUS_SITENAME %}
+ <hr>
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
+ var disqus_shortname = "{{ DISQUS_SITENAME }}"; // required: replace example with your forum shortname
+ var disqus_identifier = "{{ article.title|string|replace('&nbsp;',' ')|replace(' ', '-' )|striptags|lower|e }}";
+ var disqus_url = "{{ SITEURL }}/{{ article.url }}";
+ var disqus_title = "{{ article.title|replace('&nbsp;',' ')|striptags|e }}";
+ /* * * DON'T EDIT BELOW THIS LINE * * */
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+ <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+ <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
+ {% endif %}
diff --git a/bricks/templates/base.html b/bricks/templates/base.html
index fdd15cb..b10700a 100644
--- a/bricks/templates/base.html
+++ b/bricks/templates/base.html
@@ -102,14 +102,7 @@
</row>
{% endblock %}
</div>
- <div class="row">
- <div class="small-12 column">
- <p style="font-size: 0.8em; text-align:center;">
- LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations
- are trademarks of the LEGO Group of Companies. ©2015.
- </p>
- </div>
- </div>
+ {% include 'trademark.html' %}
</div>
</body>
</html>
diff --git a/bricks/templates/trademark.html b/bricks/templates/trademark.html
new file mode 100644
index 0000000..5122b5d
--- /dev/null
+++ b/bricks/templates/trademark.html
@@ -0,0 +1,10 @@
+ {% if TRADEMARK_TEXT %}
+ <div class="row">
+ <div class="small-12 column">
+ <p style="font-size: 0.8em; margin-top:1em; text-align:center;">
+ {{ TRADEMARK_TEXT }}
+ </p>
+ </div>
+ </div>
+ {% endif %}
+