summaryrefslogtreecommitdiff
path: root/repo/www/generate-index.py
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-08-28 22:21:11 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-08-28 22:25:25 +0200
commitb6cb7d009364ab63e09fe6febc15330edae0644a (patch)
tree301ecd32568bf0ed16c52d818bf448c10817c940 /repo/www/generate-index.py
parent63a248e3dd9fc6857098c75ffbd49f72cf362c13 (diff)
downloadmemory-leaks-b6cb7d009364ab63e09fe6febc15330edae0644a.tar.xz
Move site title after page title
Plenty of websites do this; on GNU/Linux most applications do this; I guess the goal is to make the most specific information go first, so that tabs remain identifiable as they become narrower.
Diffstat (limited to 'repo/www/generate-index.py')
-rwxr-xr-xrepo/www/generate-index.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/repo/www/generate-index.py b/repo/www/generate-index.py
index 3bce69d..16d1874 100755
--- a/repo/www/generate-index.py
+++ b/repo/www/generate-index.py
@@ -100,6 +100,8 @@ def main(arguments):
variables = {'crumbs': generate_crumbs(Path(target)/'index')}
metadata = {}
+ if arguments.site_title is not None:
+ metadata['sitetitle'] = arguments.site_title
if readme is not None:
repo_top = Repo(search_parent_directories=True).working_dir
@@ -118,7 +120,7 @@ def main(arguments):
pandoc(
readme_path, arguments.output,
arguments.template, arguments.filters, stylesheets,
- site_title=arguments.site_title, include_after=(toc.name,),
+ include_after=(toc.name,),
variables=variables, metadata=metadata
)
return
@@ -134,7 +136,7 @@ def main(arguments):
pandoc(
dummy_readme.name, arguments.output,
arguments.template, arguments.filters, stylesheets,
- site_title=arguments.site_title, include_after=(toc.name,),
+ include_after=(toc.name,),
variables=variables, metadata=metadata
)