diff --git a/view/Page.py b/view/Page.py index aab1dbc..14259ca 100644 --- a/view/Page.py +++ b/view/Page.py @@ -15,16 +15,16 @@ class Page( Html ): self, Head( Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/style.css" ), - Script( type = u"text/javascript", src = u"https://ssl.google-analytics.com/urchin.js" ) or None, Meta( content = u"text/html; charset=UTF-8", http_equiv = u"content-type" ), - [ child for child in children if type( child ) in head_types ], + Script( type = u"text/javascript", src = u"https://ssl.google-analytics.com/urchin.js" ) or None, + [ child for child in children if isinstance( child, head_types ) ], Title( title and u"%s: %s" % ( app_name, title ) or app_name ), """""", """""", ), Body( Div( - *[ child for child in children if type( child ) not in head_types ], + *[ child for child in children if not isinstance( child, head_types ) ], **attrs ), ), diff --git a/view/Product_page.py b/view/Product_page.py index 405e9e6..4f4fde0 100644 --- a/view/Product_page.py +++ b/view/Product_page.py @@ -1,6 +1,6 @@ from Page import Page from Header import Header -from Tags import Link, Div, A, Span +from Tags import Link, Meta, Div, A, Span class Product_page( Page ): @@ -10,6 +10,8 @@ class Product_page( Page ): None, # use the default title Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/header.css" ), Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/product.css" ), + Meta( name = u"description", content = u"Luminotes is a WYSIWYG personal wiki notebook for organizing your notes and ideas." ), + Meta( name = u"keywords", content = u"note taking, personal wiki, wysiwyg wiki, easy wiki, simple wiki, wiki notebook" ), Header( user, first_notebook, login_url, logout_url, note_title ),