summaryrefslogtreecommitdiff
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
parent621aee16e78e30443ffc7ed5b8fbc14315606447 (diff)
downloadgpsd-ff8fa913ff5f8d9d37299ee1e6a8b6b5a11cd8fb.tar.gz
Add some SEO to the hardware page.
-rw-r--r--gpscap.py6
-rw-r--r--www/hardware-head.html.in2
2 files changed, 4 insertions, 4 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")
diff --git a/www/hardware-head.html.in b/www/hardware-head.html.in
index b82511a2..3b597383 100644
--- a/www/hardware-head.html.in
+++ b/www/hardware-head.html.in
@@ -6,7 +6,7 @@
<meta name="Author" content="Eric Raymond">
<meta name="Description" content="Hardware known to work with GPSD.">
<meta name="Keywords" content="GPS, gpsd, hardware">
- <meta name="Revised" content="9 April 2015">
+ <meta name="Revised" content="12 April 2015">
<meta name="robots" content="index,follow">
<title>Compatible GPSes</title>
<link rel="stylesheet" href="main.css" type="text/css">