comparison libervia_server/blog.py @ 375:41a386a27002

server and browser sides: add in the static blog the link to the Atom feed + set encoding of libervia.html
author souliane <souliane@mailoo.org>
date Mon, 24 Feb 2014 22:30:01 +0100
parents d7870ab9d1ff
children 893451e35686
comparison
equal deleted inserted replaced
374:f22a4bf9a67e 375:41a386a27002
78 user = sanitizeHtml(profile).encode('utf-8') 78 user = sanitizeHtml(profile).encode('utf-8')
79 request.write(""" 79 request.write("""
80 <html> 80 <html>
81 <head> 81 <head>
82 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 82 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
83 <link rel="alternate" type="application/atom+xml" href="%(user)s/atom.xml"/>
83 <link rel="stylesheet" type="text/css" href="../css/blog.css" /> 84 <link rel="stylesheet" type="text/css" href="../css/blog.css" />
84 <title>%(user)s's microblog</title> 85 <title>%(user)s's microblog</title>
85 </head> 86 </head>
86 <body> 87 <body>
87 <div class='mblog_title'>%(user)s</div> 88 <div class='mblog_title'>%(user)s</div>