diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-03-02 00:12:31 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-03-02 00:12:31 +0100 |
| commit | 8987ee1139f6c7f3caddaf923e2dcc937a44bc80 (patch) | |
| tree | 8e554d24e61f5af10e54e3e5ba8f32e8a496aaef | |
| parent | 5651307ebd29280585e94191789f210314854caf (diff) | |
| download | quatuorbellefeuille.com-8987ee1139f6c7f3caddaf923e2dcc937a44bc80.tar.xz | |
Fix current page highlighting
| -rw-r--r-- | Makefile | 2 | ||||
| -rwxr-xr-x | build-member.sh | 1 | ||||
| -rw-r--r-- | contact.sh | 3 | ||||
| -rw-r--r-- | quatuor.sh | 3 |
4 files changed, 6 insertions, 3 deletions
@@ -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 } @@ -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. @@ -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 |
