fix(*): corrects a number of html validation issues

This commit is contained in:
Cory Dransfeldt 2025-05-07 19:22:03 -07:00
parent 4cefdee788
commit a614abb09b
No known key found for this signature in database
14 changed files with 30 additions and 28 deletions

10
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "3.6.3", "version": "3.6.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "3.6.3", "version": "3.6.4",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"html-minifier-terser": "7.2.0", "html-minifier-terser": "7.2.0",
@ -1943,9 +1943,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.5.150", "version": "1.5.151",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.150.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.151.tgz",
"integrity": "sha512-rOOkP2ZUMx1yL4fCxXQKDHQ8ZXwisb2OycOQVKHgvB3ZI4CvehOd4y2tfnnLDieJ3Zs1RL1Dlp3cMkyIn7nnXA==", "integrity": "sha512-Rl6uugut2l9sLojjS4H4SAr3A4IgACMLgpuEMPYCVcKydzfyPrn5absNRju38IhQOf/NwjJY8OGWjlteqYeBCA==",
"dev": true, "dev": true,
"license": "ISC" "license": "ISC"
}, },

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "3.6.3", "version": "3.6.4",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"engines": { "engines": {

View file

@ -1,4 +1,4 @@
<script type="module" src="/assets/scripts/components/now-playing.js?v={% appVersion %}" defer></script> <script type="module" src="/assets/scripts/components/now-playing.js?v={% appVersion %}"></script>
<p class="{{ section }}"> <p class="{{ section }}">
<mark>Now playing</mark>&nbsp; <mark>Now playing</mark>&nbsp;
<now-playing> <now-playing>

View file

@ -13,7 +13,6 @@
{{ item.content_date | date:"%B %e, %Y" }} {{ item.content_date | date:"%B %e, %Y" }}
</time> </time>
• {{ item.label }} • {{ item.label }}
<span class="client-side">
{%- if item.notes -%} {%- if item.notes -%}
{% assign notes = item.notes | markdown %} {% assign notes = item.notes | markdown %}
{% render "blocks/dialog.liquid", {% render "blocks/dialog.liquid",
@ -24,7 +23,6 @@
id:item.id id:item.id
%} %}
{%- endif -%} {%- endif -%}
</span>
</aside> </aside>
<h3> <h3>
{%- if item.type == "concerts" -%} {%- if item.type == "concerts" -%}

View file

@ -22,7 +22,7 @@
<span class="subheader">{{ item.chart.subtext }}</span> <span class="subheader">{{ item.chart.subtext }}</span>
</div> </div>
</div> </div>
<time datetime="item.chart.played_at"> <time datetime="{{ item.chart.played_at }}">
{{ item.chart.played_at | date:"%B %-d, %-I:%M%p", "America/Los_Angeles" }} {{ item.chart.played_at | date:"%B %-d, %-I:%M%p", "America/Los_Angeles" }}
</time> </time>
</div> </div>

View file

@ -10,3 +10,4 @@
<link rel="alternate" href="{{ globals.url }}/feeds/links.xml" title="Links • {{ globals.site_name }}" type="application/rss+xml" /> <link rel="alternate" href="{{ globals.url }}/feeds/links.xml" title="Links • {{ globals.site_name }}" type="application/rss+xml" />
<link rel="alternate" href="{{ globals.url }}/feeds/movies.xml" title="Movies • {{ globals.site_name }}" type="application/rss+xml" /> <link rel="alternate" href="{{ globals.url }}/feeds/movies.xml" title="Movies • {{ globals.site_name }}" type="application/rss+xml" />
<link rel="alternate" href="{{ globals.url }}/feeds/books.xml" title="Books • {{ globals.site_name }}" type="application/rss+xml" /> <link rel="alternate" href="{{ globals.url }}/feeds/books.xml" title="Books • {{ globals.site_name }}" type="application/rss+xml" />
<link rel="blogroll" type="text/xml" href="/blogroll.opml">

View file

@ -1,7 +1,7 @@
{%- assign pageCount = pagination.pages.size | default:0 -%} {%- assign pageCount = pagination.pages.size | default:0 -%}
{%- assign hidePagination = pageCount <= 1 -%} {%- assign hidePagination = pageCount <= 1 -%}
{%- unless hidePagination -%} {%- unless hidePagination -%}
<script type="module" src="/assets/scripts/components/select-pagination.js?v={% appVersion %}" defer></script> <script type="module" src="/assets/scripts/components/select-pagination.js?v={% appVersion %}"></script>
<nav aria-label="Pagination" class="pagination"> <nav aria-label="Pagination" class="pagination">
{%- assign prevHref = pagination.href.previous -%} {%- assign prevHref = pagination.href.previous -%}
{%- assign nextHref = pagination.href.next -%} {%- assign nextHref = pagination.href.next -%}

View file

@ -125,6 +125,6 @@ schema: artist
$htmlMin->doRemoveComments(true); $htmlMin->doRemoveComments(true);
$htmlMin->doSumUpWhitespace(true); $htmlMin->doSumUpWhitespace(true);
$htmlMin->doRemoveWhitespaceAroundTags(true); $htmlMin->doRemoveWhitespaceAroundTags(true);
$htmlMin->doOptimizeViaHtmlDomParser(true); $htmlMin->doOptimizeViaHtmlDomParser(false);
echo $htmlMin->minify($html); echo $htmlMin->minify($html);
?> ?>

View file

@ -74,6 +74,6 @@ schema: book
$htmlMin->doRemoveComments(true); $htmlMin->doRemoveComments(true);
$htmlMin->doSumUpWhitespace(true); $htmlMin->doSumUpWhitespace(true);
$htmlMin->doRemoveWhitespaceAroundTags(true); $htmlMin->doRemoveWhitespaceAroundTags(true);
$htmlMin->doOptimizeViaHtmlDomParser(true); $htmlMin->doOptimizeViaHtmlDomParser(false);
echo $htmlMin->minify($html); echo $htmlMin->minify($html);
?> ?>

View file

@ -52,6 +52,6 @@ schema: genre
$htmlMin->doRemoveComments(true); $htmlMin->doRemoveComments(true);
$htmlMin->doSumUpWhitespace(true); $htmlMin->doSumUpWhitespace(true);
$htmlMin->doRemoveWhitespaceAroundTags(true); $htmlMin->doRemoveWhitespaceAroundTags(true);
$htmlMin->doOptimizeViaHtmlDomParser(true); $htmlMin->doOptimizeViaHtmlDomParser(false);
echo $htmlMin->minify($html); echo $htmlMin->minify($html);
?> ?>

View file

@ -70,6 +70,6 @@ schema: movie
$htmlMin->doRemoveComments(true); $htmlMin->doRemoveComments(true);
$htmlMin->doSumUpWhitespace(true); $htmlMin->doSumUpWhitespace(true);
$htmlMin->doRemoveWhitespaceAroundTags(true); $htmlMin->doRemoveWhitespaceAroundTags(true);
$htmlMin->doOptimizeViaHtmlDomParser(true); $htmlMin->doOptimizeViaHtmlDomParser(false);
echo $htmlMin->minify($html); echo $htmlMin->minify($html);
?> ?>

View file

@ -67,6 +67,6 @@ schema: show
$htmlMin->doRemoveComments(true); $htmlMin->doRemoveComments(true);
$htmlMin->doSumUpWhitespace(true); $htmlMin->doSumUpWhitespace(true);
$htmlMin->doRemoveWhitespaceAroundTags(true); $htmlMin->doRemoveWhitespaceAroundTags(true);
$htmlMin->doOptimizeViaHtmlDomParser(true); $htmlMin->doOptimizeViaHtmlDomParser(false);
echo $htmlMin->minify($html); echo $htmlMin->minify($html);
?> ?>

View file

@ -45,6 +45,6 @@ schema: tags
$htmlMin->doRemoveComments(true); $htmlMin->doRemoveComments(true);
$htmlMin->doSumUpWhitespace(true); $htmlMin->doSumUpWhitespace(true);
$htmlMin->doRemoveWhitespaceAroundTags(true); $htmlMin->doRemoveWhitespaceAroundTags(true);
$htmlMin->doOptimizeViaHtmlDomParser(true); $htmlMin->doOptimizeViaHtmlDomParser(false);
echo $htmlMin->minify($html); echo $htmlMin->minify($html);
?> ?>

View file

@ -29,7 +29,10 @@ permalink: "/posts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}
{% render "blocks/tags.liquid", {% render "blocks/tags.liquid",
tags:post.tags tags:post.tags
%} %}
<p>{{ post.description | markdown }}</p> {% assign description = post.description | strip_newlines | strip %}
{% if description != '' %}
{{ description | markdown }}
{% endif %}
</article> </article>
{% endfor %} {% endfor %}
{% render "nav/paginator.liquid", {% render "nav/paginator.liquid",