alula 0.4.17 → 0.4.18
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/alula/site.rb +3 -0
- data/lib/alula/version.rb +1 -1
- metadata +1 -1
data/lib/alula/site.rb
CHANGED
@@ -132,6 +132,9 @@ module Alula
|
|
132
132
|
Alula::Plugin.addon(:head, "<meta name=\"generator\" content=\"Alula #{Alula::VERSION::STRING}\">")
|
133
133
|
Alula::Plugin.addon(:head, ->(context){"<link rel=\"icon\" type=\"image/png\" href=\"#{context.asset_url('favicon.png')}\">"})
|
134
134
|
|
135
|
+
# Set up footer addons (disclaimer, copyright)
|
136
|
+
Alula::Plugin.addon(:footer, ->(context){ "<p class=\"disclaimer\">#{context.site.config.disclaimer(context.locale)}</p>" }) if self.config.disclaimer
|
137
|
+
Alula::Plugin.addon(:footer, ->(context){ "<p class=\"copyright\">#{context.site.config.copyright(context.locale)}</p>" }) if self.config.copyright
|
135
138
|
end
|
136
139
|
|
137
140
|
# Compiles a site to static website
|
data/lib/alula/version.rb
CHANGED