Browse Source

fix some HTML errors

- datetime instead of date-time on the publication date
- remove the obsolete X-UA-Compatible meta tag
- remove the obsolete <a name="top"> anchor: #top scrolls to the top
  of the page

Refs #11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YNHsWYTXPThURz6TbVS1j3
master
Nicolas Massé 1 month ago
parent
commit
a65d846135
  1. 3
      layouts/_partials/head.html
  2. 2
      layouts/_partials/post-metadata.html
  3. 1
      layouts/_partials/toolbar.html
  4. 2
      layouts/baseof.html

3
layouts/_partials/head.html

@ -37,9 +37,6 @@
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}
<!-- Tell IE to use the Edge engine -->
<meta name="X-UA-Compatible" content="IE=edge">
<!--
-- The viewport is the user's visible area of a web page.
-- The viewport varies with the device, and will be smaller on a mobile phone

2
layouts/_partials/post-metadata.html

@ -3,7 +3,7 @@
{{- with .current.PublishDate }}
<span class="publication-date">
{{ i18n "published_on" }}
<time itemprop="published-on" date-time="{{ .Format "2006-01-02" }}">{{ .Format (i18n "date_format") }}</time>
<time datetime="{{ .Format "2006-01-02" }}">{{ .Format (i18n "date_format") }}</time>
</span>
{{- end }}

1
layouts/_partials/toolbar.html

@ -8,6 +8,7 @@
</div>
{{- end }}
<div class="actions">
<!-- "#top" scrolls to the top of the page, no anchor is needed -->
<a href="#top" class="action" title="{{ i18n "back_to_top" }}">
{{- partial "icons/vertical_align_top.svg" . -}}
</a>

2
layouts/baseof.html

@ -3,8 +3,6 @@
<html lang="{{ .Lang }}">
{{ partial "head.html" . }}
<body>
<!-- HTML Anchor used by the button "back to top" -->
<a name="top"></a>
{{ partial "menu.html" . }}
{{ partial "toolbar.html" . }}
<main>

Loading…
Cancel
Save