avoid escaping theme includes

This commit is contained in:
Mike McLean 2024-09-26 22:23:32 -04:00
parent 05155bf9cf
commit c948a85ad4
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@
#set $localfooterpath=$util.themePath("extra-footer.html", local=True)
#if os.path.exists($localfooterpath)
#if $literalFooter
#set $localfooter="".join(open($localfooterpath, 'rt', encoding='utf-8').readlines())
#set $localfooter=$util.SafeValue("".join(open($localfooterpath, 'rt', encoding='utf-8').readlines()))
$localfooter
#else
#include $localfooterpath
@ -20,7 +20,7 @@ $localfooter
</div>
#set $localbottompath=$util.themePath("extra-bottom.html", local=True)
#if os.path.exists($localbottompath)
#set $localbottom="".join(open($localbottompath, 'rt', encoding='utf-8').readlines())
#set $localbottom=$util.SafeValue("".join(open($localbottompath, 'rt', encoding='utf-8').readlines()))
$localbottom
#end if
</body>

View file

@ -29,7 +29,7 @@
<img src="$util.themePath('images/koji.png')" alt="Koji Logo" id="kojiLogo"/>
#set $localnavpath=$util.themePath("extra-nav.html", local=True)
#if os.path.exists($localnavpath)
#set $localnav="".join(open($localnavpath, 'rt', encoding='utf-8').readlines())
#set $localnav=$util.SafeValue("".join(open($localnavpath, 'rt', encoding='utf-8').readlines()))
$localnav
#end if
<form action="search" id="headerSearch">