aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2015-10-29 14:59:16 -0700
committerJustin Mayer <entroP@gmail.com>2015-10-29 14:59:16 -0700
commita005e851bca1e8a1ec88b2e94928ea04b44390c5 (patch)
treeafe36a223e1f14abd5b99d3e9b9b5edb1329b31b
parent350687589d6b021f69ce7bec289e5844884b9b17 (diff)
parent953e1ff736518986ce4e3905e8fa0147d97c8890 (diff)
downloadpelican-themes-a005e851bca1e8a1ec88b2e94928ea04b44390c5.tar.gz
Merge pull request #347 from maxlambertini/newfeature-branch
Add Disqus support to Brick theme
-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 %}
+