Use metas to render page title
authorThierry Florac <thierry.florac@onf.fr>
Thu, 05 Jul 2018 12:32:47 +0200
changeset 72 cdcd0e026b79
parent 71 a49838c6239e
child 73 d29bba682119
Use metas to render page title
src/pyams_default_theme/templates/layout.pt
--- a/src/pyams_default_theme/templates/layout.pt	Thu Jul 05 12:00:56 2018 +0200
+++ b/src/pyams_default_theme/templates/layout.pt	Thu Jul 05 12:32:47 2018 +0200
@@ -1,14 +1,10 @@
 <!DOCTYPE html>
 <html lang="en" i18n:domain="pyams_default_theme"
-	  tal:define="config extension:configuration;
-				  anonymous request.principal.id == '__none__';"
+	  tal:define="config extension:configuration;"
 	  tal:attributes="lang request.locale_name">
 <head>
 	<tal:var replace="structure extension:metas" />
 
-	<title tal:attributes="data-ams-title-prefix config.get_title_prefix(request)"
-		   tal:content="config.title"></title>
-
 	<tal:if define="icon config.icon | nothing; url extension:absolute_url(icon);" condition="icon">
 		<!-- Favorite icon -->
 		<link rel="shortcut icon" tal:attributes="href url" type="image/x-icon">