From f2cc7ba2603ffe78852104228bc9ecedf512c068 Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Sun, 14 Jul 2013 00:55:29 -0400 Subject: [PATCH] Move utility templates to prefix '_', add footer utility templates. Utility templates moved to have '_' prefix similar to how sass files are. Aditional templates for article and page footer contents now used to load comments etc. --- templates/_article_footer.html | 14 ++++++++++++++ templates/{disqus.html => _disqus.html} | 3 +-- templates/_google_analytics.html | 12 ++++++++++++ templates/{gosquared.html => _gosquared.html} | 2 +- templates/_page_footer.html | 14 ++++++++++++++ templates/_site_social.html | 5 +++++ templates/google_analytics.html | 14 -------------- templates/site_social.html | 6 ------ 8 files changed, 47 insertions(+), 23 deletions(-) create mode 100644 templates/_article_footer.html rename templates/{disqus.html => _disqus.html} (92%) create mode 100644 templates/_google_analytics.html rename templates/{gosquared.html => _gosquared.html} (89%) create mode 100644 templates/_page_footer.html create mode 100644 templates/_site_social.html delete mode 100644 templates/google_analytics.html delete mode 100644 templates/site_social.html diff --git a/templates/_article_footer.html b/templates/_article_footer.html new file mode 100644 index 0000000..4f42c91 --- /dev/null +++ b/templates/_article_footer.html @@ -0,0 +1,14 @@ +{# Items to include at the bottom of a single article #} +{# PDF links #} +{% if PDF_PROCESSOR %} + PDF +{% endif %} +{# Copyright notice and link #} +{% if COPYRIGHTS and (COPYRIGHT_ARTICLE or article.copyright) %} + {{ COPYRIGHTS[article.copyright|default(DEFAULT_COPYRIGHT)][0] }} +{% endif %} +{# Comments #} +{% if ( article.comments == True or ( article.comments is not defined and COMMENTS_ARTICLE == True ) ) and DISQUS_SN %} + {% include '_disqus.html' %} +{% endif %} + diff --git a/templates/disqus.html b/templates/_disqus.html similarity index 92% rename from templates/disqus.html rename to templates/_disqus.html index c4a7670..20b44b0 100644 --- a/templates/disqus.html +++ b/templates/_disqus.html @@ -2,7 +2,6 @@
+ + diff --git a/templates/gosquared.html b/templates/_gosquared.html similarity index 89% rename from templates/gosquared.html rename to templates/_gosquared.html index ec46bdb..47e5909 100644 --- a/templates/gosquared.html +++ b/templates/_gosquared.html @@ -1,7 +1,7 @@