1.1 --- a/moinformat/themes/html.py Mon Feb 25 21:34:41 2019 +0100
1.2 +++ b/moinformat/themes/html.py Thu Feb 28 21:24:35 2019 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Common HTML theme functionality.
1.6
1.7 -Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2018, 2019 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -71,7 +71,7 @@
1.13 "encoding" : self.output.encoding,
1.14 "root" : self.linker.get_top_level() or ".",
1.15 "text" : text,
1.16 - "title" : self.metadata.get("pagename"),
1.17 + "title" : self.metadata.get("title") or self.metadata.get("pagename"),
1.18 }
1.19 subs["links"] = self.get_links(subs)
1.20 return template % subs