summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-04-26 08:45:48 +0200
committerAlan Pearce2023-04-26 08:46:58 +0200
commita803508850bb890de5caabda9bbc1552666da6f2 (patch)
tree73d93958522e349576061293ab74883eea83feb1
parent699122737c3c933b7bafd8a2043e40c726b4e165 (diff)
downloadwebsite-a803508850bb890de5caabda9bbc1552666da6f2.tar.lz
website-a803508850bb890de5caabda9bbc1552666da6f2.tar.zst
website-a803508850bb890de5caabda9bbc1552666da6f2.zip
Remove trailing slashes on void elements
https://github.com/validator/validator/wiki/Markup-ยป-Void-elements#trailing-slashes-in-void-element-start-tags-do-not-mark-the-start-tags-as-self-closing
-rw-r--r--templates/base.html4
-rw-r--r--templates/favicon.html2
-rw-r--r--templates/seo_tags.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html
index f46b79f..70b7224 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -2,11 +2,11 @@
 <html lang="{{ lang | default(value="en-US" ) }}">
 <head>
   <meta charset="utf-8">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
   {% include "favicon.html" ignore missing -%}
   <title>{%- block title %}{{ config.title }}{%- endblock %}</title>
   {% include "seo_tags.html" ignore missing -%}
-  <meta name="referrer" content="no-referrer-when-downgrade" />
+  <meta name="referrer" content="no-referrer-when-downgrade">
   {%- if config.generate_feed %}
   {% block rss -%}
   <link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="{{ config.title }}" href="{{ get_url(path=config.feed_filename) | safe }}">
diff --git a/templates/favicon.html b/templates/favicon.html
index cfa2959..28b504d 100644
--- a/templates/favicon.html
+++ b/templates/favicon.html
@@ -1,3 +1,3 @@
 {% if config.extra.favicon %}
-  <link rel="shortcut icon" href="{{ config.extra.favicon }}" />
+  <link rel="shortcut icon" href="{{ config.extra.favicon }}">
 {%- endif -%}
diff --git a/templates/seo_tags.html b/templates/seo_tags.html
index 88c14e0..797569a 100644
--- a/templates/seo_tags.html
+++ b/templates/seo_tags.html
@@ -1 +1 @@
-<meta name="title" content="{% if page.title %}{{ page.title }}{% else %}{{ config.title }}{% endif %}" />
+<meta name="title" content="{% if page.title %}{{ page.title }}{% else %}{{ config.title }}{% endif %}">