Update site for w3c standards

This commit is contained in:
Gregory Soutade 2022-09-18 17:22:57 +02:00
parent 0d5d5ce535
commit 2bd6f8ae21
6 changed files with 14 additions and 10 deletions

View File

@ -157,10 +157,10 @@ class Index(DynastieGenerator):
create_link = (title_elem.getAttribute('link') == '1')
post = self.cur_post_obj
if create_link == True:
node = self.createElement(dom, 'title')
node = self.createElement(dom, 'title', _type='h2')
node.appendChild(self.createLinkElem(dom, post.getPath(), post.title))
else:
node = self.createElement(dom, 'title', post.title)
node = self.createElement(dom, 'title', post.title, _type='h2')
root.replaceChild(node, title_elem)

View File

@ -11,7 +11,7 @@
<link href="/rss.xml" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
<link href="/atom.xml" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
<link href="/css/blog.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="/js/blog.js"> </script>
<script src="/js/blog.js"> </script>
<dyn:block name="head"/>
</head>
<body>
@ -19,7 +19,7 @@
<header>
<a href="/"><img id="logo" alt="Logo Tux" src="/images/tux_final2.png"/></a>
<div id="header">
<h2 id="title"><a href="/">Blog de Grégory Soutadé</a></h2>
<span id="title"><a href="/">Blog de Grégory Soutadé</a></span>
</div>
</header>
<dyn:block name="content"/>

View File

@ -13,14 +13,14 @@
<link href="/rss.xml" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
<link href="/atom.xml" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
<link href="/css/blog.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="/js/blog.js"> </script>
<script src="/js/blog.js"> </script>
</head>
<body onLoad="javascript:init();">
<div class="content" id="content">
<header>
<a href="/"><img id="logo" alt="Logo Tux" src="/images/tux_final2.png"/></a>
<div id="header">
<h2 id="title"><a href="/">Blog de Grégory Soutadé</a></h2>
<span id="title"><a href="/">Blog de Grégory Soutadé</a></span>
</div>
</header>
<dyn:block name="content"/>

View File

@ -1,3 +1,4 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
@ -10,7 +11,7 @@
<link href="/rss.xml" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
<link href="/atom.xml" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
<link href="/css/blog.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="/js/base64.js"></script>
<script src="/js/base64.js"></script>
<script language="javascript" type="text/javascript" >
<!--
function decryptBase64()
@ -31,7 +32,7 @@
<header>
<a href="/"><img id="logo" alt="Logo Tux" src="/images/tux_final2.png"/></a>
<div id="header">
<h2 id="title"><a href="/">Blog de Grégory Soutadé</a></h2>
<span id="title"><a href="/">Blog de Grégory Soutadé</a></span>
</div>
</header>
<div class="about">

View File

@ -29,6 +29,7 @@ body
padding-top:2em;
padding-bottom:3em;
background-color:white;
font-size: 1.5em;
}
#recents_title
@ -51,6 +52,7 @@ div.content
border-style:solid;
border-color:black;
border-width:3px;
z-index:1;
}
/* Menu */
@ -67,6 +69,7 @@ div.menu
position:absolute;
top:20em;
right:2%;
z-index:0;
}
.menu_main
@ -166,7 +169,7 @@ div.post div.post_header
color: #3c3e2d;
}
div.post_header div.title, div.post_header div.title > a
div.post_header h2.title, div.post_header h2.title > a
{
display:block;
text-decoration:none;

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import sys