diff options
author | Alan Pearce | 2023-04-26 08:45:48 +0200 |
---|---|---|
committer | Alan Pearce | 2023-04-26 08:46:58 +0200 |
commit | a803508850bb890de5caabda9bbc1552666da6f2 (patch) | |
tree | 73d93958522e349576061293ab74883eea83feb1 | |
parent | 699122737c3c933b7bafd8a2043e40c726b4e165 (diff) | |
download | zola-bearblog-a803508850bb890de5caabda9bbc1552666da6f2.tar.lz zola-bearblog-a803508850bb890de5caabda9bbc1552666da6f2.tar.zst zola-bearblog-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.html | 4 | ||||
-rw-r--r-- | templates/favicon.html | 2 | ||||
-rw-r--r-- | templates/seo_tags.html | 2 |
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 %}"> |