Mercurial > hg > index.fcgi > www > www-1
comparison myrss/myrss_app.py @ 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 |
comparison
equal
deleted
inserted
replaced
12:3b8fc2caf179 | 13:7cf39f3fd427 |
---|---|
119 page_title = "myrss -- %s" % datetime_str | 119 page_title = "myrss -- %s" % datetime_str |
120 | 120 |
121 root = html.HTML("html") | 121 root = html.HTML("html") |
122 | 122 |
123 header = root.head | 123 header = root.head |
124 header.meta(name="viewport", content="width=device-width, initial-scale=1") | |
124 header.title(page_title) | 125 header.title(page_title) |
125 header.link(rel="stylesheet", type="text/css", href="index.css") | 126 header.link(rel="stylesheet", type="text/css", href="index.css") |
126 | 127 |
127 body = root.body | 128 body = root.body |
128 body.h1(page_title) | 129 body.h1(page_title) |
133 if feed is None: | 134 if feed is None: |
134 continue | 135 continue |
135 | 136 |
136 (title, link, items) = feed | 137 (title, link, items) = feed |
137 | 138 |
139 logging.debug("title: %s", title) | |
138 body.h2.a(_strip_html(title), href=link, klass="z%d" % (link_z % MAX_LINK_Z)) | 140 body.h2.a(_strip_html(title), href=link, klass="z%d" % (link_z % MAX_LINK_Z)) |
139 link_z += 1 | 141 link_z += 1 |
140 p = body.p | 142 p = body.p |
141 | 143 |
142 for (i, (it_title, it_link)) in enumerate(items): | 144 for (i, (it_title, it_link)) in enumerate(items): |