From 06bd821545a7e25af5a0c570a305855490ff20dc Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 17 Mar 2021 18:02:04 +0100 Subject: Add OpenGraph metadata --- Makefile | 4 ++-- build-member.sh | 6 ++++-- build.sh | 9 ++++++++- en/template.html | 10 +++++++++- template.html | 12 ++++++++++-- 5 files changed, 33 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index df90bc1..23e59c9 100644 --- a/Makefile +++ b/Makefile @@ -51,10 +51,10 @@ langdir = . $(OUTDIR)/en/%: langdir = en $(pages): $(OUTDIR)/%.html: %.html %.sh $$(langdir)/template.html - ./build.sh $< $*.sh $(langdir)/template.html $@ + ./build.sh $< $*.sh $(langdir)/template.html $(OUTDIR) $*.html $(members_pages): $(OUTDIR)/%.html: %.membre.in build-member.sh $$(langdir)/template.html - ./build-member.sh $< $(langdir)/template.html $@ + ./build-member.sh $< $(langdir)/template.html $(OUTDIR) $*.html $(OUTDIR)/quatuor.html: quatuor.md $(OUTDIR)/programmes.html: programs.in diff --git a/build-member.sh b/build-member.sh index 17d8e05..c980d1e 100755 --- a/build-member.sh +++ b/build-member.sh @@ -4,7 +4,9 @@ set -eu input=$1 template=$2 -output=$3 +outdir=$3 +uri=$4 +output="${outdir}/${uri}" firstname () { @@ -85,4 +87,4 @@ EOF ./build.sh <(generate-main < "${input}") \ <(generate-parameters < "${input}") \ "${template}" \ - "${output}" + "${outdir}" "${uri}" diff --git a/build.sh b/build.sh index 3586801..7ad228e 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,11 @@ set -eu input=$1 parameters=$2 template=$3 -output=$4 +outdir=$4 +uri=$5 +output="${outdir}/${uri}" + +domain=klg.uber.space cp ${template} ${output} @@ -30,6 +34,9 @@ iconcolor= sed -i s/'{TITLE}'/"${title}"/ ${output} +sed -i s,'{URI}',"${uri}", ${output} +sed -i s,'{DOMAIN}',"${domain}", ${output} + link_stylesheets='' for s in "${stylesheets[@]}" do diff --git a/en/template.html b/en/template.html index c43a45e..3f86915 100644 --- a/en/template.html +++ b/en/template.html @@ -3,9 +3,17 @@ - {TITLE} - Bellefeuille Quartet + {TITLE} — Bellefeuille Quartet + + + + + + + + {STYLESHEETS} diff --git a/template.html b/template.html index a173bf4..fcd5cd0 100644 --- a/template.html +++ b/template.html @@ -3,9 +3,17 @@ - {TITLE} - Quatuor Bellefeuille - + {TITLE} — Quatuor Bellefeuille + + + + + + + + + {STYLESHEETS} -- cgit v1.2.3