plugin
upstream
Templates in the website are disabled now. Editing them will not have any effect on the live website.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
$def with (page) $ title = page.title or page.key $if title.startswith("i18n::") and title.count(':') == 3: $ namespace = title.split(':')[2] $ key = title.split(':')[3] $ title = i18n.get(namespace, key) $var title: $title $if '<!--suppress-title-->' not in page.body: <div id="header"> <div style="float:left;padding-left:10px;padding-right:15px;"></div> <span class="pretitle"></span> <div id="title">$title</div> </div> $ text = format(page.body) $if utf8('<!--islist-->') in utf8(text): $:text $else: <div class="contenttext"> $:text </div> $:macros.SeeLanguage() |