Fix compliance of generated HTML.
Also tab-align generated source code for readability. Removed an extra div.
This commit is contained in:
parent
a807c58b41
commit
8d323b4ef3
1 changed files with 15 additions and 16 deletions
|
@ -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>e-Durable Tooling</title>
|
||||
|
@ -12,7 +12,7 @@ cat << EOF
|
|||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<img id="header-logo" src="assets/edurable-logo.png" />
|
||||
<img id="header-logo" alt="e-Durable logo" src="assets/edurable-logo.png" />
|
||||
|
||||
<p>
|
||||
Convenience webpage to quickly access e-Durable services. Sources on <a
|
||||
|
@ -24,23 +24,22 @@ cat << EOF
|
|||
EOF
|
||||
|
||||
for entry in services/*; do
|
||||
cat <<- EOF
|
||||
<div class="row">
|
||||
<div class="col-3 horizontal-align-center vertical-align-center">
|
||||
<img src="$entry/logo.png" class="service-logo" />
|
||||
</div>
|
||||
<div class="col-3 vertical-align-center">
|
||||
<a href="$(cat "$entry/url")">$(basename "$entry")</a>
|
||||
</div>
|
||||
<div class="col-6 vertical-align-center">
|
||||
$(cat "$entry/description")
|
||||
</div>
|
||||
</div>
|
||||
EOF
|
||||
cat << EOF
|
||||
<div class="row">
|
||||
<div class="col-3 horizontal-align-center vertical-align-center">
|
||||
<img src="$entry/logo.png" alt="$entry logo" class="service-logo" />
|
||||
</div>
|
||||
<div class="col-3 vertical-align-center">
|
||||
<a href="$(cat "$entry/url")">$(basename "$entry")</a>
|
||||
</div>
|
||||
<div class="col-6 vertical-align-center">
|
||||
$(cat "$entry/description")
|
||||
</div>
|
||||
</div>
|
||||
EOF
|
||||
done
|
||||
|
||||
cat << EOF
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue