diff options
author | Gary E. Miller <gem@rellim.com> | 2015-04-13 14:39:04 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-04-13 14:39:04 -0700 |
commit | ff8fa913ff5f8d9d37299ee1e6a8b6b5a11cd8fb (patch) | |
tree | 160b32bfa1ca65b9fb417bb630745917c3276192 /gpscap.py | |
parent | 621aee16e78e30443ffc7ed5b8fbc14315606447 (diff) | |
download | gpsd-ff8fa913ff5f8d9d37299ee1e6a8b6b5a11cd8fb.tar.gz |
Add some SEO to the hardware page.
Diffstat (limited to 'gpscap.py')
-rw-r--r-- | gpscap.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -94,13 +94,13 @@ class GPSDictionary(ConfigParser.RawConfigParser): elif self.get(dev, "packaging") == "hansdfree": rowcolor = "#008B8B" - ofp.write("<tr style='background-color:%s'>\n" % rowcolor) + ofp.write("<tr itemscope itemtype='http://schema.org/Product' style='background-color:%s'>\n" % rowcolor) namefield = dev if self.has_option(dev, "techdoc"): namefield = "<a href='%s'>%s</a>" % (self.get(dev, "techdoc"), dev) if self.has_option(dev, "discontinued") and self.getboolean(dev, "discontinued"): namefield = namefield + " <img title='Device discontinued' src='discontinued.png' alt='Discontinued icon'>" - ofp.write("<td>%s</td>\n" % namefield) + ofp.write("<td itemprop='name'>%s</td>\n" % namefield) ofp.write("<td>%s</td>\n" % self.get(dev, "packaging")) engine = self.get(dev, "engine") if self.has_option(engine, "techdoc"): @@ -156,7 +156,7 @@ class GPSDictionary(ConfigParser.RawConfigParser): notes = "" if self.has_option(dev, "submitter"): notes += " Reported by %s." % self.get(dev, "submitter").replace("@", "@").replace("<", "<").replace(">", ">") - ofp.write("<td>%s</td>\n" % notes) + ofp.write("<td itemscope itemtype='http://schema.org/description'>%s</td>\n" % notes) ofp.write("</tr>\n") ofp.write("</table>\n") |