Compare commits
2 Commits
28d5cf8f6c
...
e576922ba2
Author | SHA1 | Date |
---|---|---|
Joachim Desroches | e576922ba2 | |
Joachim Desroches | dda9b335c5 |
9
Makefile
9
Makefile
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue