aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/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/show_source.html
parent69ecf3d1df63f079aafbae2e512db70bc35bca37 (diff)
downloadpelican-themes-bd8ef84d31882b2bc113df3ba4dcc57da3f37a26.tar.gz
Show source support added in pelican-bootstrap3
Diffstat (limited to 'pelican-bootstrap3/templates/includes/show_source.html')
-rw-r--r--pelican-bootstrap3/templates/includes/show_source.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/show_source.html b/pelican-bootstrap3/templates/includes/show_source.html
new file mode 100644
index 0000000..f6a4f3c
--- /dev/null
+++ b/pelican-bootstrap3/templates/includes/show_source.html
@@ -0,0 +1,10 @@
+{% if SHOW_SOURCE_IN_SECTION %}
+ {% if article and article.show_source_url %}
+ <section class="well" id="show-source">
+ <h4>This Page</h4>
+ <ul>
+ <a href="{{ SITEURL }}/{{ article.show_source_url }}">Show source</a>
+ </ul>
+ </section>
+ {% endif %}
+{% endif %}