diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-07-01 18:36:58 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-07-01 18:36:58 +0200 |
commit | 76d11a2aa8fccff1bc9b661adc379ddbf9607cdd (patch) | |
tree | 74a6e1e21ae8b7514f9563d367321f1af04ffeb2 | |
parent | Breadcrumb on module index. (diff) | |
download | muppet-strings-76d11a2aa8fccff1bc9b661adc379ddbf9607cdd.tar.gz muppet-strings-76d11a2aa8fccff1bc9b661adc379ddbf9607cdd.tar.xz |
Better title on module index.
-rw-r--r-- | muppet/output.py | 1 | ||||
-rw-r--r-- | templates/module_index.html | 2 |
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 %} |