changeset 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 6f0a127077c4
children 0dfb76b13115
files themes/default/static_blog.html
diffstat 1 files changed, 23 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/themes/default/static_blog.html	Sat Jan 16 10:49:16 2016 +0100
+++ b/themes/default/static_blog.html	Fri Jan 22 20:22:30 2016 +0100
@@ -1,7 +1,7 @@
 {#
 Libervia: a Salut à Toi frontend
-Copyright (C) 2011, 2012, 2013, 2014, 2015 Jérôme Poisson <goffi@goffi.org>
-Copyright (C) 2013, 2014, 2015 Adrien Cossa <souliane@mailoo.org>
+Copyright (C) 2011 - 2016 Jérôme Poisson <goffi@goffi.org>
+Copyright (C) 2013 - 2016 Adrien Cossa <souliane@mailoo.org>
 
 
 This program is free software: you can redistribute it and/or modify
@@ -76,26 +76,30 @@
 {%- endmacro %}
 
 {% macro image(entry) -%}
-    <img src="{{entry.url}}" alt="{{entry.alt}}"/>
+    <img src="{{entry.url}}" alt="{{entry.alt}}" />
 {%- endmacro %}
 
+<!DOCTYPE html>
+
 <html>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-    <meta name="keywords" content="{{keywords}}">
-    <meta name="description" content="{{description}}">
-    <link rel="alternate" type="application/atom+xml" href="{{base_url}}/atom.xml"/>
-    <link rel='stylesheet' type="text/css" href='{{styles}}/blog.css'>
-    <link rel="icon" type="image/png" href="{{favicon}}">
+    <head profile="http://www.w3.org/2005/10/profile">
+        <meta charset="UTF-8" />
+        <meta name="keywords" content="{{keywords}}" />
+        <meta name="description" content="{{description}}" />
+        <link rel="alternate" type="application/atom+xml" href="{{base_url}}/atom.xml" />
+        <link rel='stylesheet' type="text/css" href='{{styles}}/blog.css' />
+        <link rel="icon" type="image/png" href="{{favicon}}" />
 
-    <head profile="http://www.w3.org/2005/10/profile">
         <title>{{title}}</title>
     </head>
 
     <body>
-        <div class="mblog_title"><a href="{{base_url}}">
-            {{ image(banner_img) }}
-            {{ title }}
-        </a></div>
+        <div class="mblog_title">
+            <a href="{{base_url}}">
+                {{ image(banner_img) }}
+                {{ title }}
+            </a>
+        </div>
 
         <div class="header">
             <div class="header_content">
@@ -116,14 +120,17 @@
                 {{ link(navlinks.older_message) }}
             </div>
         </div>
+
         <div class="powered">
-            Powered by <a href="http://salut-a-toi.org" target="#"><img src="/media/icons/apps/16/sat.png"> Salut à Toi</a>
+            Powered by <a href="http://salut-a-toi.org" target="#"><img src="/media/icons/apps/16/sat.png" /> Salut à Toi</a>
         </div>
+
         <div class="feed">
             Subscribe to this news feed
             <a href="{{base_url}}/atom.xml" target="#">
-                <img src="{{images}}/atom/Feed-icon.svg" alt="Atom feed">
+                <img src="{{images}}/atom/Feed-icon.svg" alt="Atom feed" />
             </a>
         </div>
+
     </body>
 </html>