Remove trailing slash on void elements

This commit is contained in:
mark
2022-12-14 16:57:34 +01:00
parent 482a9bfe26
commit f72cd1de3c
3 changed files with 4 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>

View File

@@ -3,8 +3,8 @@
{{ $favicon := resources.Get .Site.Params.favicon.logo -}}
{{ range $i := .Site.Params.favicon.sizes -}}
{{ $image := $favicon.Resize (printf "%dx%d CatmullRom" $i $i) -}}
<link rel="icon" type="image/png" sizes="{{$i}}x{{$i}}" href="{{ $image.Permalink }}" />
<link rel="icon" type="image/png" sizes="{{$i}}x{{$i}}" href="{{ $image.Permalink }}">
{{ end -}}
{{ $image := $favicon.Resize "180x CatmullRom" -}}
<link rel="apple-touch-icon" sizes="180x180" href="{{ $image.Permalink }}" />
<link rel="apple-touch-icon" sizes="180x180" href="{{ $image.Permalink }}">
{{ end -}}

View File

@@ -29,7 +29,7 @@
{{ end -}}
{{ end -}}
<meta property="og:image" content="{{ $.Scratch.Get "thumbnail" }}"/>
<meta property="og:image" content="{{ $.Scratch.Get "thumbnail" }}">
<meta property="og:image:alt" content="{{ $.Scratch.Get "title" }}">
{{ with .Params.audio -}}