From 8987ee1139f6c7f3caddaf923e2dcc937a44bc80 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 2 Mar 2021 00:12:31 +0100 Subject: Fix current page highlighting --- Makefile | 2 +- build-member.sh | 1 + contact.sh | 3 ++- quatuor.sh | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d6485f1..88cfa78 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ $(stylesheets): $(OUTDIR)/%: % | $(stylesheets_folders) $(pages): $(OUTDIR)/%.html: %.html %.sh template.html | $(OUTDIR) ./build.sh $< $*.sh $@ -$(members_pages): $(OUTDIR)/%.html: %.in template.html | $(OUTDIR) +$(members_pages): $(OUTDIR)/%.html: %.in build-member.sh template.html | $(OUTDIR) ./build-member.sh $< $@ $(OUTDIR)/quatuor.html: quatuor.md diff --git a/build-member.sh b/build-member.sh index 329be0e..ed74909 100755 --- a/build-member.sh +++ b/build-member.sh @@ -20,6 +20,7 @@ generate-parameters () title='${fullname}' stylesheets=(membre) transforms=("\$(transform-li-dropdown-current-a quatuor)" + "\$(transform-li-current-a quatuor)" "\$(transform-li-current-a $(firstname "${fullname}"))") EOF } diff --git a/contact.sh b/contact.sh index b1e34e3..6a7a40c 100644 --- a/contact.sh +++ b/contact.sh @@ -1,3 +1,4 @@ title=Contact stylesheets=(contact) -transforms=('s/class="contact"/class="contact current"/') +transforms=('s/class="contact"/class="contact current"/' # Desktop. + "$(transform-li-current-a contact)") # Mobile. diff --git a/quatuor.sh b/quatuor.sh index ca8919a..7bb0e3f 100644 --- a/quatuor.sh +++ b/quatuor.sh @@ -8,5 +8,6 @@ add-bio () title=Biographie stylesheets=quatuor -transforms=("$(transform-li-dropdown-current-a quatuor)") +transforms=("$(transform-li-dropdown-current-a quatuor)" # Desktop. + "$(transform-li-current-a quatuor)") # Mobile. postprocess=add-bio -- cgit v1.2.3