witten
/
luminotes
Archived
1
0
Fork 0

Expanded the page displayed when Javascript is disabled so search engines actually get something useful.

Made the page <title> contain "personal wiki notebook".
This commit is contained in:
Dan Helfman 2007-08-01 20:46:26 +00:00
parent 3d3c4a6ad4
commit 0a457585d9
4 changed files with 24 additions and 5 deletions

View File

@ -12,6 +12,22 @@ a:hover {
color: #ff6600; color: #ff6600;
} }
noscript {
text-align: left;
}
noscript h3 {
margin-bottom: 0.5em;
}
ul li {
margin-top: 0.5em;
}
ol li {
margin-top: 0.5em;
}
#center_and_toolbar_area { #center_and_toolbar_area {
margin: 0 auto; margin: 0 auto;
text-align: center; text-align: center;

View File

@ -0,0 +1,4 @@
<h3>Luminotes requires Javascript</h3>
So if you'd like to check out this site any further, please enable Javascript
in your web browser, and then reload this page. Sorry for the inconvenience.

View File

@ -47,11 +47,9 @@ class Main_page( Page ):
id = u"notes", id = u"notes",
), ),
Noscript( Noscript(
u""" Div( file( u"static/html/about.html" ).read() ),
Luminotes is a personal wiki notebook for organizing your notes and ideas. It also Div( file( u"static/html/features.html" ).read().replace( u"href=", u"disabled=" ) ),
happens to require Javascript. So if you'd like to check out this site, please enable Div( file( u"static/html/no javascript.html" ).read() ),
Javascript in your web browser. Sorry for the inconvenience.
""",
), ),
id = u"center_area", id = u"center_area",
), ),

View File

@ -5,6 +5,7 @@ class Page( Html ):
def __init__( self, title, *children, **attrs ): def __init__( self, title, *children, **attrs ):
head_types = ( Link, Script, Meta ) # node types to move to the Head section head_types = ( Link, Script, Meta ) # node types to move to the Head section
app_name = u"Luminotes" app_name = u"Luminotes"
if not title: title = u"personal wiki notebook"
if "id" not in attrs: if "id" not in attrs:
attrs[ "id" ] = u"content" attrs[ "id" ] = u"content"