mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +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:
parent
558b6844ca
commit
43a3e7c0f8
2 changed files with 69 additions and 74 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue