commit 8987ee1139f6c7f3caddaf923e2dcc937a44bc80
parent 5651307ebd29280585e94191789f210314854caf
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date: Tue, 2 Mar 2021 00:12:31 +0100
Fix current page highlighting
Diffstat:
4 files changed, 6 insertions(+), 3 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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