alula 0.4.17 → 0.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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