unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "W. Trevor King" <wking@tremily.us>
To: notmuch@notmuchmail.org
Cc: David Bremner <david@tethera.net>,
	Tomi Ollila <tomi.ollila@iki.fi>, Jani Nikula <jani@nikula.org>,
	Carl Worth <cworth@cworth.org>,
	"W. Trevor King" <wking@tremily.us>
Subject: [PATCH 1/2] nmbug-status: Adjust headers to start with h1
Date: Wed, 30 Dec 2015 13:04:12 -0800	[thread overview]
Message-ID: <4691cbb60322873d2a068ed991cde940d090492a.1451509249.git.wking@tremily.us> (raw)
In-Reply-To: <cover.1451509249.git.wking@tremily.us>
In-Reply-To: <cover.1451509249.git.wking@tremily.us>

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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
index b36b6ad..8fd736c 100755
--- a/devel/nmbug/nmbug-status
+++ b/devel/nmbug/nmbug-status
@@ -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', '''
-- 
2.1.0.60.g85f0837

  reply	other threads:[~2015-12-30 21:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30 21:04 [PATCH 0/2] nmbug-status: h1 title and unbalanced <p> fixups to default templates W. Trevor King
2015-12-30 21:04 ` W. Trevor King [this message]
2016-01-07 13:20   ` [PATCH 1/2] nmbug-status: Adjust headers to start with h1 David Bremner
2016-01-07 13:51     ` [PATCH] nmbug-status: Style headers with smaller fonts W. Trevor King
2016-01-07 21:58       ` Tomi Ollila
2015-12-30 21:04 ` [PATCH 2/2] nmbug-status: Fix unbalanced <p> tags in default header/footer W. Trevor King
2016-01-13 14:36   ` David Bremner
2015-12-31 13:46 ` [PATCH 0/2] nmbug-status: h1 title and unbalanced <p> fixups to default templates Tomi Ollila
2015-12-31 16:43   ` W. Trevor King
2016-01-01 11:30     ` Tomi Ollila
2016-01-01 17:43       ` W. Trevor King
2016-01-01 19:33         ` Tomi Ollila

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4691cbb60322873d2a068ed991cde940d090492a.1451509249.git.wking@tremily.us \
    --to=wking@tremily.us \
    --cc=cworth@cworth.org \
    --cc=david@tethera.net \
    --cc=jani@nikula.org \
    --cc=notmuch@notmuchmail.org \
    --cc=tomi.ollila@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).