1

Fix some HTML format bugs

This commit is contained in:
Evan Pratten 2023-07-08 12:23:02 -04:00
parent 460c37ad0b
commit f07a1ca837
4 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ compile_sass = true
build_search_index = true
generate_feed = true
feed_filename = "rss.xml"
minify_html = false
minify_html = true
[markdown]
highlight_code = true

View File

@ -18,13 +18,13 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/jpg" href="{{config.extra.profile_photo}}" />
<link rel="shortcut icon" type="image/jpg" href="{{config.extra.profile_photo | safe}}" />
{% include "components/metadata/advertise-rss.html" %}
{% include "components/metadata/opengraph.html" %}
{# Redirect support #}
{% if redirect_target != "" %}
<meta http-equiv="refresh" content="0; url={{redirect_target}}" />
<meta http-equiv="refresh" content="0; url={{redirect_target | safe}}" />
{% endif %}
{# Page title #}

View File

@ -1,5 +1,5 @@
{% if current_url %}
<link rel="canonical" href="{{current_url}}" />
<link rel="canonical" href="{{current_url | safe}}" />
{% endif %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{get_url(path=config.feed_filename, trailing_slash=false)}}">
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{get_url(path=config.feed_filename, trailing_slash=false) | safe}}">

View File

@ -5,7 +5,7 @@
{# Page image #}
<meta name="og:image"
content="{% block opengraph_image_url %}{{config.extra.profile_photo}}{% endblock opengraph_image_url %}" />
content="{% block opengraph_image_url %}{{config.extra.profile_photo | safe}}{% endblock opengraph_image_url %}" />
{# Page description #}
<meta property="og:description" content="{{description}}" />