LP#1507845 SEO home.tt2 template repair
authorBill Erickson <berickxx@gmail.com>
Wed, 2 Mar 2016 15:47:29 +0000 (10:47 -0500)
committerKathy Lussier <klussier@masslnc.org>
Wed, 2 Mar 2016 17:07:04 +0000 (12:07 -0500)
Ensure all TT code lives within the [% ... %] blocks.  This fixes an
issue where TT code "ctx.metalinks.push('');" was appearing in the
catalog as bare text.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/opac/home.tt2

index 77b1d51..8f120e6 100644 (file)
@@ -1,8 +1,8 @@
 [%- PROCESS "opac/parts/header.tt2";
     WRAPPER "opac/parts/base.tt2";
     INCLUDE "opac/parts/topnav.tt2";
-    ctx.page_title = l("Home") %]
     ctx.metalinks.push('<link rel="canonical" href="' _ mkurl('', {}, 1) _ '" />');
+    ctx.page_title = l("Home") %]
     <h2 class="sr-only">[% l('Catalog Home') %]</h2>
     [% INCLUDE "opac/parts/searchbar.tt2" %]
     <div id="content-wrapper">