fix escaped slashes in json metadata
This commit is contained in:
parent
a553ade3b0
commit
8009117849
|
@ -1,6 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{.Site.Language.Lang }}" xml:lang="{{.Site.Language.Lang }}">
|
<html lang="{{.Site.Language.Lang }}" xml:lang="{{.Site.Language.Lang }}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
@ -9,7 +9,8 @@
|
||||||
{{ $js := resources.Get "js/main.js" | minify | minify | fingerprint }}
|
{{ $js := resources.Get "js/main.js" | minify | minify | fingerprint }}
|
||||||
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}" media="screen">
|
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}" media="screen">
|
||||||
<script type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}"></script>
|
<script type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}"></script>
|
||||||
<link rel="shortcut icon" href="/images/people/avatar.png" sizes="400x400">
|
{{ $icon := "images/people/avatar.png" | absURL }}
|
||||||
|
<link rel="shortcut icon" href='{{ $icon }}' sizes="400x400">
|
||||||
{{ if .IsPage }}<meta name="keywords" content='{{ delimit .Params.tags " "}}'>{{ end }}
|
{{ if .IsPage }}<meta name="keywords" content='{{ delimit .Params.tags " "}}'>{{ end }}
|
||||||
{{ if .IsHome }}<title>{{ .Site.Title }}</title>
|
{{ if .IsHome }}<title>{{ .Site.Title }}</title>
|
||||||
<title itemprop="name">{{ .Site.Title }}</title>
|
<title itemprop="name">{{ .Site.Title }}</title>
|
||||||
|
@ -36,10 +37,10 @@
|
||||||
<meta property="og:image" content="{{ . | absURL }}" />
|
<meta property="og:image" content="{{ . | absURL }}" />
|
||||||
<meta name="twitter:image" content="{{ . | absURL }}" />
|
<meta name="twitter:image" content="{{ . | absURL }}" />
|
||||||
<meta name="twitter:image:src" content="{{ . | absURL }}" />{{ else }}
|
<meta name="twitter:image:src" content="{{ . | absURL }}" />{{ else }}
|
||||||
<meta itemprop="image" content='{{ "/images/people/avatar.png" | absURL }}' />
|
<meta itemprop="image" content='{{ $icon }}' />
|
||||||
<meta property="og:image" content='{{ "/images/people/avatar.png" | absURL }}' />
|
<meta property="og:image" content='{{ $icon }}' />
|
||||||
<meta name="twitter:image" content='{{ "/images/people/avatar.png" | absURL }}' />
|
<meta name="twitter:image" content='{{ $icon }}' />
|
||||||
<meta name="twitter:image:src" content='{{ "/images/people/avatar.png" | absURL }}' />{{ end }}
|
<meta name="twitter:image:src" content='{{ $icon }}' />{{ end }}
|
||||||
<meta property="og:updated_time" content={{ .Lastmod.Format "2006-01-02T15:04:05Z0700" | safeHTML }} />
|
<meta property="og:updated_time" content={{ .Lastmod.Format "2006-01-02T15:04:05Z0700" | safeHTML }} />
|
||||||
{{ if isset .Params "date" }}<meta property="og:type" content="article" />
|
{{ if isset .Params "date" }}<meta property="og:type" content="article" />
|
||||||
<script defer type="application/ld+json">
|
<script defer type="application/ld+json">
|
||||||
|
@ -65,7 +66,7 @@
|
||||||
"name": "{{ .Site.Title }}",
|
"name": "{{ .Site.Title }}",
|
||||||
"logo": {
|
"logo": {
|
||||||
"@type": "imageObject",
|
"@type": "imageObject",
|
||||||
"url": "https://abdullahtarawneh.com/images/people/avatar.png"
|
"url": {{ $icon }}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,9 +77,9 @@
|
||||||
{
|
{
|
||||||
"@context": "http://schema.org",
|
"@context": "http://schema.org",
|
||||||
"@type": "WebSite",
|
"@type": "WebSite",
|
||||||
"url": "{{ .Permalink }}",
|
"url": {{ .Permalink }},
|
||||||
"name": "{{ .Title }}",
|
"name": "{{ .Title }}",
|
||||||
"logo": "https://abdullahtarawneh.com/images/people/avatar.png"
|
"logo": {{ $icon }}
|
||||||
}
|
}
|
||||||
</script>{{ end }}
|
</script>{{ end }}
|
||||||
<meta property="article:publisher" content="{{ .Params.author }}" />
|
<meta property="article:publisher" content="{{ .Params.author }}" />
|
||||||
|
@ -106,7 +107,8 @@
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
<meta name="apple-touch-fullscreen" content="yes" />
|
<meta name="apple-touch-fullscreen" content="yes" />
|
||||||
|
{{ block "head" . }}
|
||||||
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ partial "site-header.html" . }}
|
{{ partial "site-header.html" . }}
|
||||||
|
|
Loading…
Reference in a new issue