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:
parent
3d3c4a6ad4
commit
0a457585d9
|
@ -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;
|
||||||
|
|
|
@ -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.
|
|
@ -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",
|
||||||
),
|
),
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Reference in New Issue