Compare commits

...

2 Commits

Author SHA1 Message Date
Joachim Desroches e576922ba2
Make rendered HTML compliant.
Missing lang and alt tags.
2021-02-22 17:33:03 +01:00
Joachim Desroches dda9b335c5
Nyllify the Makefile more. 2021-02-22 17:32:49 +01:00
2 changed files with 8 additions and 9 deletions

View File

@ -1,10 +1,9 @@
# Stuff for make to work make magic.
.DEFAULT: all
.SUFFIXES: .html
.PHONY: all
.PHONY: all clean deploy
.EXPORT_ALL_VARIABLES:
BASE_TITLE = Global Initiative
TITLE = Global Initiative | XML Sharing
XML_FILE = data/$(shell ls -I activities.xml data/ | sort -r | head -n 1)
XML_ARTEFACT = data/activities.xml
PAGES = index.html
@ -19,9 +18,9 @@ deploy: $(PAGES) $(BLOBS)
./deploy.sh $^
$(XML_ARTEFACT):
cat "$(XML_FILE)" > $(XML_ARTEFACT)
cp '$(XML_FILE)' '$(XML_ARTEFACT)'
index.html: $(XML_ARTEFACT)
TITLE="Global Initiative | XML Sharing" ./index.html.sh > $@
./index.html.sh > $@
$(PAGES): index.html.sh assets

View File

@ -2,7 +2,7 @@
cat << EOF
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${TITLE:?}</title>
@ -12,14 +12,14 @@ cat << EOF
</head>
<body>
<header>
<img src="assets/global-initiative-logo.png" id="header-logo" />
<img src="assets/global-initiative-logo.png" alt="Global Initiative logo" id="header-logo" />
</header>
<main>
<div class="file-box">
<div class="container">
<div class="row">
<div class="col-2 align-vertically logo-container">
<img src="assets/xml-logo.svg" />
<img src="assets/xml-logo.svg" alt="XML logo" />
</div>
<div class="col-8">
<h1>$(basename "${XML_ARTEFACT:?}")</h1>
@ -39,7 +39,7 @@ cat << EOF
<div class="container">
<div class="row">
<div class="col">
<img src="assets/global-initiative-logo.png" id="footer-logo" />
<img src="assets/global-initiative-logo.png" alt="Global Initiative logo" id="footer-logo" />
</div>
<div class="col" id="legal">
<p>