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