1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

Remove optional HTML tags

Some HTML tags can be removed without changing the DOM. Reference:
https://html.spec.whatwg.org/multipage/syntax.html#syntax-tag-omission
This commit is contained in:
Rohan Kumar 2021-05-06 11:59:30 -07:00
parent 558b6844ca
commit 43a3e7c0f8
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 69 additions and 74 deletions

View file

@ -1,11 +1,8 @@
<!DOCTYPE html>
<html lang="{{- default "" .Site.LanguageCode -}}">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<main id="content">
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}
</body>
</html>

View file

@ -1,4 +1,3 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
@ -63,4 +62,3 @@
<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
{{ end -}}
{{ hugo.Generator }}
</head>