summaryrefslogtreecommitdiff
path: root/gpscap.py
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-04-13 14:39:04 -0700
committerGary E. Miller <gem@rellim.com>2015-04-13 14:39:04 -0700
commitff8fa913ff5f8d9d37299ee1e6a8b6b5a11cd8fb (patch)
tree160b32bfa1ca65b9fb417bb630745917c3276192 /gpscap.py
parent621aee16e78e30443ffc7ed5b8fbc14315606447 (diff)
downloadgpsd-ff8fa913ff5f8d9d37299ee1e6a8b6b5a11cd8fb.tar.gz
Add some SEO to the hardware page.
Diffstat (limited to 'gpscap.py')
-rw-r--r--gpscap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpscap.py b/gpscap.py
index 9bb06309..40a03004 100644
--- a/gpscap.py
+++ b/gpscap.py
@@ -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 + "&nbsp;<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("@", "&#x40;").replace("<", "&lt;").replace(">", "&gt;")
- 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")