summaryrefslogtreecommitdiff
path: root/project/templates/base_plain.xhtml
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2021-12-02 12:51:25 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2021-12-02 12:51:25 +1300
commitcbd62c2dfa9bd8d04480d67b557a6fc326e532ca (patch)
tree5c0f6ae3a6df610179f9222910f94430d9695211 /project/templates/base_plain.xhtml
parent3112ecee11aa7f560848834a8475b3fb0b52fd79 (diff)
Validator links no longer use referer, tag templates now use macros
Diffstat (limited to 'project/templates/base_plain.xhtml')
-rw-r--r--project/templates/base_plain.xhtml9
1 files changed, 5 insertions, 4 deletions
diff --git a/project/templates/base_plain.xhtml b/project/templates/base_plain.xhtml
index 454cc0e..b5e2da5 100644
--- a/project/templates/base_plain.xhtml
+++ b/project/templates/base_plain.xhtml
@@ -12,19 +12,20 @@
-{%- block footer %}
- <a href="http://validator.w3.org/check?uri=referer">
+{%- macro plain_footer(anchor) %}
+ {%- set linkto = general.baseurl ~ "/" ~ anchor %}
+ <a href="http://validator.w3.org/check?uri={{ linkto | e }}">
<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">
+ <a href="http://jigsaw.w3.org/css-validator/validator?uri={{ linkto | e }}">
<img src="/img/valid-css.png"
alt="Valid CSS"
height="31"
width="88" />
</a>
-{%- endblock -%}
+{%- endmacro -%}