Introduced content blocks for flexible footer entries
Change-Id: I737e0b01cbcbd20fe10a920b9644662f3b1629f0
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index f5dd76e..8b920b7 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -6,7 +6,7 @@
use Mojo::Util qw/url_escape/;
# Minor version - may be patched from package.json
-our $VERSION = '0.26';
+our $VERSION = '0.27';
# TODO: The FAQ-Page has a contact form for new questions
# TODO: Embed query serialization
@@ -130,6 +130,7 @@
'KalamarUser', # Specific Helpers for Kalamar
'ClientIP', # Get client IP from X-Forwarded-For
'ClosedRedirect', # Redirect with OpenRedirect protection
+ 'TagHelpers::ContentBlock', # Flexible content blocks
'Piwik' # Integrate Piwik/Matomo Analytics
) {
$self->plugin($_);
@@ -170,6 +171,12 @@
);
};
+ # Set footer value
+ $self->content_block(footer => (
+ inline => '<%= doc_link_to "V ' . $Kalamar::VERSION . '", "korap", "kalamar" %>',
+ position => 100
+ ));
+
# Base query route
$r->get('/')->to('search#query')->name('index');