aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/sidebar/show_source.html
diff options
context:
space:
mode:
authorChris Ramsay <chris@ramsay-family.net>2017-09-10 16:23:53 +0100
committerChris Ramsay <chris@ramsay-family.net>2017-09-10 16:23:53 +0100
commitbd8ef84d31882b2bc113df3ba4dcc57da3f37a26 (patch)
tree10cceba91697918a0181b36daabeb7a99f1d26f4 /pelican-bootstrap3/templates/includes/sidebar/show_source.html
parent69ecf3d1df63f079aafbae2e512db70bc35bca37 (diff)
downloadpelican-themes-bd8ef84d31882b2bc113df3ba4dcc57da3f37a26.tar.gz
Show source support added in pelican-bootstrap3
Diffstat (limited to 'pelican-bootstrap3/templates/includes/sidebar/show_source.html')
-rw-r--r--pelican-bootstrap3/templates/includes/sidebar/show_source.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/sidebar/show_source.html b/pelican-bootstrap3/templates/includes/sidebar/show_source.html
new file mode 100644
index 0000000..4316129
--- /dev/null
+++ b/pelican-bootstrap3/templates/includes/sidebar/show_source.html
@@ -0,0 +1,19 @@
+{% if SHOW_SOURCE_ON_SIDEBAR %}
+ {% if (article and article.show_source_url) or (page and page.show_source_url) %}
+
+<!-- Show source -->
+<li class="list-group-item"><h4><i class="fa fa-tags fa-file-text"></i><span class="icon-label">This Page</span></h4>
+ <ul class="list-group">
+ <li class="list-group-item">
+ {% if article %}
+ <a href="{{ SITEURL }}/{{ article.show_source_url }}">Show source</a>
+ {% elif page %}
+ <a href="{{ SITEURL }}/{{ page.show_source_url }}">Show source</a>
+ {% endif %}
+ </li>
+ </ul>
+</li>
+<!-- End Show source -->
+
+ {% endif %}
+{% endif %}