summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2021-11-27 03:54:23 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2021-11-27 03:54:23 +1300
commit3112ecee11aa7f560848834a8475b3fb0b52fd79 (patch)
treea8c6aa00d58e1e657ffc903fefba2a146d949ea8
parentd640c7bd637fa07150bbdaba17bcdcc8d24c676b (diff)
Added XHTML, MathML, CSS validated images in footer
-rw-r--r--project/assets/css/default.css14
-rw-r--r--project/assets/img/valid-css.pngbin0 -> 1428 bytes
-rw-r--r--project/assets/img/valid-mathml20.pngbin0 -> 1984 bytes
-rw-r--r--project/assets/img/valid-xhtml11.pngbin0 -> 1842 bytes
-rw-r--r--project/templates/base.xhtml4
-rw-r--r--project/templates/base_math.xhtml23
-rw-r--r--project/templates/base_plain.xhtml17
7 files changed, 58 insertions, 0 deletions
diff --git a/project/assets/css/default.css b/project/assets/css/default.css
index 5655a27..287f03b 100644
--- a/project/assets/css/default.css
+++ b/project/assets/css/default.css
@@ -145,3 +145,17 @@ div.nav ul li {
}
+
+
+/* Evenly spaced footer images. */
+
+div.footer {
+ display: flex;
+ justify-content: center;
+}
+
+div.footer a {
+ margin: 1em 1em 1em 1em;
+}
+
+
diff --git a/project/assets/img/valid-css.png b/project/assets/img/valid-css.png
new file mode 100644
index 0000000..e65a388
--- /dev/null
+++ b/project/assets/img/valid-css.png
Binary files differ
diff --git a/project/assets/img/valid-mathml20.png b/project/assets/img/valid-mathml20.png
new file mode 100644
index 0000000..f177679
--- /dev/null
+++ b/project/assets/img/valid-mathml20.png
Binary files differ
diff --git a/project/assets/img/valid-xhtml11.png b/project/assets/img/valid-xhtml11.png
new file mode 100644
index 0000000..1529ac9
--- /dev/null
+++ b/project/assets/img/valid-xhtml11.png
Binary files differ
diff --git a/project/templates/base.xhtml b/project/templates/base.xhtml
index 4258f12..596ff97 100644
--- a/project/templates/base.xhtml
+++ b/project/templates/base.xhtml
@@ -27,6 +27,10 @@
{% block content -%}
{%- endblock %}
</div>
+ <div class="footer">
+{%- block footer -%}
+{%- endblock %}
+ </div>
<hr />
</div>
</body>
diff --git a/project/templates/base_math.xhtml b/project/templates/base_math.xhtml
index fb6f429..834c116 100644
--- a/project/templates/base_math.xhtml
+++ b/project/templates/base_math.xhtml
@@ -11,3 +11,26 @@
{%- endblock -%}
+
+{%- block footer %}
+ <a href="http://validator.w3.org/check?uri=referer">
+ <img src="/img/valid-xhtml11.png"
+ alt="Valid XHTML 1.1"
+ height="31"
+ width="88" />
+ </a>
+ <a href="http://validator.w3.org/check?uri=referer">
+ <img src="/img/valid-mathml20.png"
+ alt="Valid MathML 2.0"
+ height="31"
+ width="88" />
+ </a>
+ <a href="http://jigsaw.w3.org/css-validator/check/referer">
+ <img src="/img/valid-css.png"
+ alt="Valid CSS"
+ height="31"
+ width="88" />
+ </a>
+{%- endblock -%}
+
+
diff --git a/project/templates/base_plain.xhtml b/project/templates/base_plain.xhtml
index 0f26e40..454cc0e 100644
--- a/project/templates/base_plain.xhtml
+++ b/project/templates/base_plain.xhtml
@@ -11,3 +11,20 @@
{%- endblock -%}
+
+{%- block footer %}
+ <a href="http://validator.w3.org/check?uri=referer">
+ <img src="/img/valid-xhtml11.png"
+ alt="Valid XHTML 1.1"
+ height="31"
+ width="88" />
+ </a>
+ <a href="http://jigsaw.w3.org/css-validator/check/referer">
+ <img src="/img/valid-css.png"
+ alt="Valid CSS"
+ height="31"
+ width="88" />
+ </a>
+{%- endblock -%}
+
+