diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-28 19:06:45 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-28 22:25:00 +0200 |
| commit | 63a248e3dd9fc6857098c75ffbd49f72cf362c13 (patch) | |
| tree | 40f67826a7d4f955136e8f8bc01121513139d8a5 /repo/www/Makefile | |
| parent | d0d869e06b30a1f8b7b539978caa0ed6123f9864 (diff) | |
| download | memory-leaks-63a248e3dd9fc6857098c75ffbd49f72cf362c13.tar.xz | |
Make sure titles are not redundant with breadcrumbs
The logic for the various titles on any given page is:
∃README
∃title block
<title> ⇒ title block
<header> <h1> ⇒ title block
TOC <h1> ⇒ "Index for {target}"
∄title block
<title> ⇒ "{target}" or "README"
<header> <h1> ⇒ ∅
TOC <h1> ⇒ "Index for {target}"
∄README
<title> ⇒ "Index for {target}"
<header> <h1> ⇒ "Index"
TOC <h1> ⇒ ∅
Diffstat (limited to 'repo/www/Makefile')
| -rw-r--r-- | repo/www/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/repo/www/Makefile b/repo/www/Makefile index 1f32115..6c41b45 100644 --- a/repo/www/Makefile +++ b/repo/www/Makefile @@ -53,6 +53,9 @@ site: $(pages) $(indices) $(stylesheets) $(stylesheets) # directories (e.g. folders that only contain subfolders). html_folders = $(call dirnames,$(pages) $(indices)) +top_index = $(OUT_DIR)/index.html +subindices = $(filter-out $(top_index),$(indices)) + $(html_folders) $(stylesheets_dir) $(cache): mkdir -p $@ @@ -67,9 +70,6 @@ $(pages): $(OUT_DIR)/%.html: $(foreach s,$(stylesheets_src),--stylesheet style/$(s)) \ --template=$(html_template) $< $@ -top_index = $(OUT_DIR)/index.html -subindices = $(filter-out $(top_index),$(indices)) - $(top_index): index_options = $(subindices): index_options = --site-title="$$(cat $(title))" |
