comparison themes/default/static_blog.html @ 853:fe43cf3ed7d8

server (blog/template): fixed template: - added missing DOCTYPE - moved <meta> and <link> elements badly locate outside of <header> - closed elements to be valid XHTML
author Goffi <goffi@goffi.org>
date Fri, 22 Jan 2016 20:22:30 +0100
parents c64c039bb403
children de17f7313cbe
comparison
equal deleted inserted replaced
852:6f0a127077c4 853:fe43cf3ed7d8
1 {# 1 {#
2 Libervia: a Salut à Toi frontend 2 Libervia: a Salut à Toi frontend
3 Copyright (C) 2011, 2012, 2013, 2014, 2015 Jérôme Poisson <goffi@goffi.org> 3 Copyright (C) 2011 - 2016 Jérôme Poisson <goffi@goffi.org>
4 Copyright (C) 2013, 2014, 2015 Adrien Cossa <souliane@mailoo.org> 4 Copyright (C) 2013 - 2016 Adrien Cossa <souliane@mailoo.org>
5 5
6 6
7 This program is free software: you can redistribute it and/or modify 7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU Affero General Public License as published by 8 it under the terms of the GNU Affero General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or 9 the Free Software Foundation, either version 3 of the License, or
74 {% macro link(entry) -%} 74 {% macro link(entry) -%}
75 <a href="{{entry.url}}" class="{{entry.style}}">{{entry.text}}</a> 75 <a href="{{entry.url}}" class="{{entry.style}}">{{entry.text}}</a>
76 {%- endmacro %} 76 {%- endmacro %}
77 77
78 {% macro image(entry) -%} 78 {% macro image(entry) -%}
79 <img src="{{entry.url}}" alt="{{entry.alt}}"/> 79 <img src="{{entry.url}}" alt="{{entry.alt}}" />
80 {%- endmacro %} 80 {%- endmacro %}
81 81
82 <!DOCTYPE html>
83
82 <html> 84 <html>
83 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 85 <head profile="http://www.w3.org/2005/10/profile">
84 <meta name="keywords" content="{{keywords}}"> 86 <meta charset="UTF-8" />
85 <meta name="description" content="{{description}}"> 87 <meta name="keywords" content="{{keywords}}" />
86 <link rel="alternate" type="application/atom+xml" href="{{base_url}}/atom.xml"/> 88 <meta name="description" content="{{description}}" />
87 <link rel='stylesheet' type="text/css" href='{{styles}}/blog.css'> 89 <link rel="alternate" type="application/atom+xml" href="{{base_url}}/atom.xml" />
88 <link rel="icon" type="image/png" href="{{favicon}}"> 90 <link rel='stylesheet' type="text/css" href='{{styles}}/blog.css' />
91 <link rel="icon" type="image/png" href="{{favicon}}" />
89 92
90 <head profile="http://www.w3.org/2005/10/profile">
91 <title>{{title}}</title> 93 <title>{{title}}</title>
92 </head> 94 </head>
93 95
94 <body> 96 <body>
95 <div class="mblog_title"><a href="{{base_url}}"> 97 <div class="mblog_title">
96 {{ image(banner_img) }} 98 <a href="{{base_url}}">
97 {{ title }} 99 {{ image(banner_img) }}
98 </a></div> 100 {{ title }}
101 </a>
102 </div>
99 103
100 <div class="header"> 104 <div class="header">
101 <div class="header_content"> 105 <div class="header_content">
102 {{ link(navlinks.later_message) }} 106 {{ link(navlinks.later_message) }}
103 {{ link(navlinks.later_messages) }} 107 {{ link(navlinks.later_messages) }}
114 {{ link(navlinks.later_message) }} 118 {{ link(navlinks.later_message) }}
115 {{ link(navlinks.older_messages) }} 119 {{ link(navlinks.older_messages) }}
116 {{ link(navlinks.older_message) }} 120 {{ link(navlinks.older_message) }}
117 </div> 121 </div>
118 </div> 122 </div>
123
119 <div class="powered"> 124 <div class="powered">
120 Powered by <a href="http://salut-a-toi.org" target="#"><img src="/media/icons/apps/16/sat.png"> Salut à Toi</a> 125 Powered by <a href="http://salut-a-toi.org" target="#"><img src="/media/icons/apps/16/sat.png" /> Salut à Toi</a>
121 </div> 126 </div>
127
122 <div class="feed"> 128 <div class="feed">
123 Subscribe to this news feed 129 Subscribe to this news feed
124 <a href="{{base_url}}/atom.xml" target="#"> 130 <a href="{{base_url}}/atom.xml" target="#">
125 <img src="{{images}}/atom/Feed-icon.svg" alt="Atom feed"> 131 <img src="{{images}}/atom/Feed-icon.svg" alt="Atom feed" />
126 </a> 132 </a>
127 </div> 133 </div>
134
128 </body> 135 </body>
129 </html> 136 </html>