Skip to content

Commit

Permalink
fix cases of invalid HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
johan12345 committed Jan 28, 2024
1 parent 4388a12 commit 74d3c18
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 0 additions & 2 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
</div>

<!-- Footer -->
<footer id="footer" class="wrapper style4">
<div class="inner">
Expand Down
12 changes: 6 additions & 6 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<title>{% t site_title %}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/assets/css/main.css" />
<noscript><link rel="stylesheet" href="/assets/css/noscript.css" /></noscript>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/assets/css/main.css">
<noscript><link rel="stylesheet" href="/assets/css/noscript.css"></noscript>

{% if page.layout == 'default' %}
<meta name="description" content="{% t description %}">
Expand All @@ -19,9 +19,9 @@
{% for lang in site.languages %}
{%- if site.lang != lang -%}
{%- if lang == "en" -%}
<link rel="alternate" hreflang="{{ lang }}" href="{{ site.url | append: site.baseurl_root | append: page.url }}"/>
<link rel="alternate" hreflang="{{ lang }}" href="{{ site.url | append: site.baseurl_root | append: page.url }}">
{%- else -%}
<link rel="alternate" hreflang="{{ lang }}" href="{{ site.url | append: site.baseurl_root | append: '/' | append: lang | append: page.url }}"/>
<link rel="alternate" hreflang="{{ lang }}" href="{{ site.url | append: site.baseurl_root | append: '/' | append: lang | append: page.url }}">
{%- endif -%}
{%- endif -%}
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion _includes/responsive-image-right.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{%- assign largest = resized | sort: 'width' | last -%}
{%- capture srcset -%}
{%- for i in resized -%}
/{{ i.path }} {{ i.width }}w,
/{{ i.path }} {{ i.width }}w{% unless forloop.last %},{% endunless -%}
{%- endfor -%}
{%- endcapture -%}
<span class="image right" style="width: 30%">
Expand Down
2 changes: 1 addition & 1 deletion _includes/responsive-image-section-background.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{%- assign largest = resized | sort: 'width' | last -%}
{%- capture srcset -%}
{%- for i in resized -%}
/{{ i.path }} {{ i.width }}w,
/{{ i.path }} {{ i.width }}w{% unless forloop.last %},{% endunless -%}
{%- endfor -%}
{%- endcapture -%}
<img class="background" src="/{{ largest.path }}" alt="{{ alt }}" srcset="{{ srcset | strip_newlines }}" loading="lazy">
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- Wrapper -->
<div id="wrapper">
{{ content }}
{% include footer.html %}
</div>
{% include footer.html %}
</body>
</html>

0 comments on commit 74d3c18

Please sign in to comment.