layout.tt: support a title with HTML in it

By default, title is escaped. To support links in titles, support
providing the title with HTML in it.
This commit is contained in:
Graham Christensen 2021-11-22 13:22:16 -05:00
parent 03323f6ef1
commit f1343b3a4c

View file

@ -81,7 +81,8 @@
[% IF !hideHeader %]
<div class="page-header">
[% IF c.user_exists && starUri; INCLUDE makeStar; " "; END; HTML.escape(title) %]
[% IF c.user_exists && starUri; INCLUDE makeStar; " "; END %]
[% IF titleHTML != ""; titleHTML; ELSE; HTML.escape(title); END %]
</div>
[% ELSE %]
[% IF first %]<br />[% first = 0; END; %]