diff options
author | Jonas Smedegaard <dr@jones.dk> | 2022-03-26 18:09:34 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2022-03-26 18:09:34 +0100 |
commit | 249aa9af5b3497aaeb37e453e703aa83000cbd61 (patch) | |
tree | 0f2ab2fab96e6fc10d32ed25fc8a852c306626fd | |
parent | 7e629173f7a01ba591e9f774426badc358f99056 (diff) |
modernize to use tags nav and footer (not div with classes topbar and footer)
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | nav.md (renamed from topbar.md) | 0 | ||||
-rw-r--r-- | style.scss | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -markdown-snippets := topbar.md footer.md +markdown-snippets := nav.md footer.md hypertext-snippets = $(markdown-snippets:%.md=%.html) markdown := $(filter-out $(markdown-snippets),$(wildcard *.md */*.md */*/*.md)) hypertext = $(subst index/index,index,$(markdown:%.md=%/index.html)) @@ -16,7 +16,7 @@ update: .git $(hypertext-snippets): %.html: %.md Makefile pandoc -f markdown -t html -o $@ $< - sed -i -e '1i <div class=\"$*\">' -e '$$ a </div>' $@ + sed -i -e '1i <$*>' -e '$$ a </$*>' $@ $(vectorimage-graph): %.svg: %.dot Makefile dot -Tsvg -o$@ $< @@ -25,14 +25,14 @@ $(vectorimage-graph): %.svg: %.dot Makefile $(eval title = $(shell head --lines=1 $< \ | grep --perl-regexp --only-matching '^\#\s*\K(\S+(\s\S+)*)+')) $(if $(filter-out ./,$(dir $@)),mkdir -p $(dir $@)) - pandoc -f markdown -t html -s \ + pandoc -f markdown -t html5 -s \ --metadata lang=da \ $(if $(title),\ $(if $(filter-out $(sitetitle),$(title)),$(strip \ --metadata pagetitle='$(sitetitle) -- $(title)'),$(strip \ --metadata pagetitle='$(title)'))) \ -c $(shell realpath --relative-to=$(dir $@) style.css) \ - -B topbar.html \ + -B nav.html \ -A footer.html \ -o $@ $< @@ -23,14 +23,14 @@ a { @include hover-link; } -.topbar { +nav { @media print { display: none !important; } @include inline-list; } -.footer { +footer { margin-left: -1em; margin-right: -1em; background-color: lightgrey; |