]> git.notmuchmail.org Git - notmuch/commitdiff
nmbug-status: Adjust headers to start with h1
authorW. Trevor King <wking@tremily.us>
Wed, 30 Dec 2015 21:04:12 +0000 (13:04 -0800)
committerDavid Bremner <david@tethera.net>
Wed, 13 Jan 2016 14:28:38 +0000 (10:28 -0400)
We've been leading off with h2s since 3e5fb88f (contrib/nmbug: add
nmbug-status script, 2012-07-07), but the semantically-correct headers
are:

  <h1>{title}</h1>
  ...
  <h2>Views</h2>
  ...
  <h3>View 1</h3>
  ...
  <h3>View 2</h3>
  ...

We can always add additional CSS if the default h1 formatting is too
intense.

devel/nmbug/nmbug-status

index 22e3b5b5e65350a5c75de7c2ef2f4e79b9519272..b4ded4991a29b89cbb3a89614771b4334524c40b 100755 (executable)
@@ -367,10 +367,10 @@ header_template = config['meta'].get('header', '''<!DOCTYPE html>
   </style>
 </head>
 <body>
-<h2>{title}</h2>
+<h1>{title}</h1>
 {blurb}
 </p>
-<h3>Views</h3>
+<h2>Views</h2>
 ''')
 
 footer_template = config['meta'].get('footer', '''