src/pyams_default_theme/templates/layout.pt
changeset 321 4d5930d8c4ba
parent 112 7521386577af
child 356 c00a39cd7f01
equal deleted inserted replaced
320:d8e63b05150e 321:4d5930d8c4ba
     1 <!DOCTYPE html>
     1 <!DOCTYPE html>
     2 <html lang="en" i18n:domain="pyams_default_theme"
     2 <html lang="en" i18n:domain="pyams_default_theme"
     3 	  tal:define="config tales:configuration;"
     3 	  tal:define="config tales:configuration;"
     4 	  tal:attributes="lang request.locale_name">
     4 	  tal:attributes="lang request.locale_name">
     5 <head prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article#">
     5 <head prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article#">
     6 	<tal:var replace="structure tales:metas" />
     6 	${structure:tales:metas}
     7 
     7 
     8 	<tal:if define="icon config.icon | nothing; url tales:absolute_url(icon);" condition="icon">
     8 	<tal:if define="icon config.icon | nothing;
       
     9 					url tales:absolute_url(icon);"
       
    10 			condition="icon">
     9 		<!-- Favorite icon -->
    11 		<!-- Favorite icon -->
    10 		<link rel="shortcut icon" tal:attributes="href url" type="image/x-icon">
    12 		<tal:var define="size icon.get_image_size()[0];
    11 		<link rel="icon" tal:attributes="href url" type="image/x-icon">
    13 						 timestamp tales:timestamp(icon)">
       
    14 			<link tal:condition="size > 144"
       
    15 				  rel="apple-touch-icon" sizes="180x180" href="${url}/++thumb++180x180?_=${timestamp}" type="${icon.content_type}" />
       
    16 			<link tal:condition="size > 114"
       
    17 				  rel="apple-touch-icon" sizes="144x144" href="${url}/++thumb++144x144?_=${timestamp}" type="${icon.content_type}" />
       
    18 			<link tal:condition="size > 72"
       
    19 				  rel="apple-touch-icon" sizes="114x114" href="${url}/++thumb++114x114?_=${timestamp}" type="${icon.content_type}" />
       
    20 			<link tal:condition="size > 32"
       
    21 				  rel="apple-touch-icon" sizes="72x72" href="${url}/++thumb++72x72?_=${timestamp}" type="${icon.content_type}" />
       
    22 			<link tal:condition="size > 16"
       
    23 				  rel="apple-touch-icon" sizes="32x32" href="${url}/++thumb++32x32?_=${timestamp}" type="${icon.content_type}" />
       
    24 			<link rel="apple-touch-icon" sizes="16x16" href="${url}/++thumb++16x16?_=${timestamp}" type="${icon.content_type}" />
       
    25 			<link tal:condition="size > 64"
       
    26 				  rel="icon" sizes="128x128" href="${url}/++thumb++128x128?_=${timestamp}" type="${icon.content_type}" />
       
    27 			<link tal:condition="size > 32"
       
    28 				  rel="icon" sizes="64x64" href="${url}/++thumb++64x64?_=${timestamp}" type="${icon.content_type}" />
       
    29 			<link tal:condition="size > 16"
       
    30 				  rel="icon" sizes="32x32" href="${url}/++thumb++32x32?_=${timestamp}" type="${icon.content_type}" />
       
    31 			<link rel="icon" sizes="16x16" href="${url}/++thumb++16x16?_=${timestamp}" type="${icon.content_type}" />
       
    32 			<link rel="shortcut icon" href="${url}" type="${icon.content_type}" />
       
    33 		</tal:var>
    12 	</tal:if>
    34 	</tal:if>
    13 
    35 
    14 	<link rel="canonical" tal:attributes="href tales:canonical_url(context)" />
    36 	<link rel="canonical" href="${tales:canonical_url(context)}" />
    15 
    37 
    16 	<tal:var replace="tales:resources" />
    38 	${tales:resources}
    17 
    39 
    18 	<!-- Javascript extensions -->
    40 	<!-- Javascript extensions -->
    19 	<tal:var content="structure provider:pyams.jsextensions" />
    41 	${structure:provider:pyams.jsextensions}
    20 	<!-- end javascript extensions -->
    42 	<!-- end javascript extensions -->
    21 
    43 
    22 </head>
    44 </head>
    23 <body class="no-margin no-padding">
    45 <body class="no-margin no-padding">
    24 
    46