Browse Source

Move SITE_LICENSE to _defaults

Talha Mansoor 11 years ago
parent
commit
c478f5d078
2 changed files with 8 additions and 0 deletions
  1. 7 0
      templates/_includes/_defaults.html
  2. 1 0
      templates/_includes/footer.html

+ 7 - 0
templates/_includes/_defaults.html

@@ -76,3 +76,10 @@ serves as the default image for posts whose social_media_image is not set. #}
 {% set SOCIAL_MEDIA_IMAGE = SOCIAL_MEDIA_IMAGE %}
 {% endif %}
 
+{# License of your site that appears in the footer of every page #}
+{% if not SITE_LICENSE %}
+{% set SITE_LICENSE = '' %}
+{% else %}
+{% set SITE_LICENSE = SITE_LICENSE %}
+{% endif %}
+

+ 1 - 0
templates/_includes/footer.html

@@ -4,6 +4,7 @@
         {% if SITESUBTITLE %}
         <li class="elegant-subtitle"><span class="site-name">{{ SITENAME }}</span> - {{ SITESUBTITLE }}</li>
         {% endif %}
+        {% from '_includes/_defaults.html' import SITE_LICENSE with context %}
         {% if SITE_LICENSE %}
         <li class="elegant-license">{{ SITE_LICENSE }}</li>
         {% endif %}