diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2021-12-02 12:51:25 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2021-12-02 12:51:25 +1300 |
commit | cbd62c2dfa9bd8d04480d67b557a6fc326e532ca (patch) | |
tree | 5c0f6ae3a6df610179f9222910f94430d9695211 /project/templates/base_math.xhtml | |
parent | 3112ecee11aa7f560848834a8475b3fb0b52fd79 (diff) |
Validator links no longer use referer, tag templates now use macros
Diffstat (limited to 'project/templates/base_math.xhtml')
-rw-r--r-- | project/templates/base_math.xhtml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/project/templates/base_math.xhtml b/project/templates/base_math.xhtml index 834c116..145f679 100644 --- a/project/templates/base_math.xhtml +++ b/project/templates/base_math.xhtml @@ -12,25 +12,26 @@ -{%- block footer %} - <a href="http://validator.w3.org/check?uri=referer"> +{%- macro math_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://validator.w3.org/check?uri=referer"> + <a href="http://validator.w3.org/check?uri={{ linkto | e }}"> <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"> + <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 -%} |