changeset 97:9bd400576469

myrss: fix meta viewport scale for mobile optimization, and add extra debug logging line
author paulo
date Mon, 09 Jul 2018 00:50:35 -0600
parents 259a484f691b
children e2817e789895
files myrss/myrss_app.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/myrss/myrss_app.py	Sun Jul 08 23:31:13 2018 -0700
     1.2 +++ b/myrss/myrss_app.py	Mon Jul 09 00:50:35 2018 -0600
     1.3 @@ -121,6 +121,7 @@
     1.4  	root = html.HTML("html")
     1.5  
     1.6  	header = root.head
     1.7 +	header.meta(name="viewport", content="width=device-width, initial-scale=1")
     1.8  	header.title(page_title)
     1.9  	header.link(rel="stylesheet", type="text/css", href="index.css")
    1.10  
    1.11 @@ -135,6 +136,7 @@
    1.12  
    1.13  		(title, link, items) = feed
    1.14  
    1.15 +		logging.debug("title: %s", title)
    1.16  		body.h2.a(_strip_html(title), href=link, klass="z%d" % (link_z % MAX_LINK_Z))
    1.17  		link_z += 1
    1.18  		p = body.p