aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-07-01 18:36:58 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-07-01 18:36:58 +0200
commit76d11a2aa8fccff1bc9b661adc379ddbf9607cdd (patch)
tree74a6e1e21ae8b7514f9563d367321f1af04ffeb2
parentBreadcrumb on module index. (diff)
downloadmuppet-strings-76d11a2aa8fccff1bc9b661adc379ddbf9607cdd.tar.gz
muppet-strings-76d11a2aa8fccff1bc9b661adc379ddbf9607cdd.tar.xz
Better title on module index.
-rw-r--r--muppet/output.py1
-rw-r--r--templates/module_index.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/muppet/output.py b/muppet/output.py
index 20ffd43..e4069ab 100644
--- a/muppet/output.py
+++ b/muppet/output.py
@@ -256,6 +256,7 @@ def setup_module_index(*,
with open(os.path.join(base, 'index.html'), 'w') as f:
f.write(template.render(module_name=module.name,
+ module_author=module.metadata['author'],
breadcrumbs=crumbs,
content=content,
path_base=path_base,
diff --git a/templates/module_index.html b/templates/module_index.html
index f638e8c..e8a74db 100644
--- a/templates/module_index.html
+++ b/templates/module_index.html
@@ -8,7 +8,7 @@ Parameters:
#}
{% extends "base.html" %}
{% block content %}
-<h1>{{ module_name }}</h1>
+<h1>{{ module_author }} / {{ module_name.title() }}</h1>
<ul>
{% for name, path in doc_files %}