diff options
author | Chris Ramsay <chris@ramsay-family.net> | 2017-09-10 16:23:53 +0100 |
---|---|---|
committer | Chris Ramsay <chris@ramsay-family.net> | 2017-09-10 16:23:53 +0100 |
commit | bd8ef84d31882b2bc113df3ba4dcc57da3f37a26 (patch) | |
tree | 10cceba91697918a0181b36daabeb7a99f1d26f4 /pelican-bootstrap3/templates/includes/show_source.html | |
parent | 69ecf3d1df63f079aafbae2e512db70bc35bca37 (diff) | |
download | pelican-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.html | 10 |
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 %} |