1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-29 02:35:48 -04:00

fix AMP validation warnings

This commit is contained in:
2019-11-20 10:08:28 -05:00
parent d409636c4e
commit a048c10b06
6 changed files with 7 additions and 6 deletions

BIN
content/me_lg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

View File

@@ -8,6 +8,7 @@ tags:
- Emoji - Emoji
- Keyframes - Keyframes
- Cool Tricks - Cool Tricks
image: "codepen.png"
draft: false draft: false
--- ---

View File

@@ -9,7 +9,7 @@ tags:
- Pull Request - Pull Request
- Open Source - Open Source
- GitHub - GitHub
image: "forks.png" image: "step7-2.png"
draft: false draft: false
--- ---

View File

@@ -4,7 +4,7 @@
<meta property="og:locale" content="en_US"> <meta property="og:locale" content="en_US">
<meta property="og:url" content="{{ .Permalink }}"> <meta property="og:url" content="{{ .Permalink }}">
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}"> <meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<meta property="og:image" content="{{ if .Params.image }}{{ (printf "%s%s%s" (.OutputFormats.Get "html").Permalink "images/" .Params.image ) }}{{ else }}{{ "me.jpg" | absURL }}{{ end }}"> <meta property="og:image" content="{{ if .Params.image }}{{ (printf "%s%s%s" (.OutputFormats.Get "html").Permalink "images/" .Params.image ) }}{{ else }}{{ "me_lg.jpg" | absURL }}{{ end }}">
{{- if .IsPage }} {{- if .IsPage }}
{{- if not .PublishDate.IsZero }} {{- if not .PublishDate.IsZero }}
<meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTMLAttr }}"> <meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTMLAttr }}">

View File

@@ -14,9 +14,9 @@
"url": {{ .Site.BaseURL }}, "url": {{ .Site.BaseURL }},
"image": { "image": {
"@type": "ImageObject", "@type": "ImageObject",
"url": {{ "me.jpg" | absURL }}, "url": {{ "me_lg.jpg" | absURL }},
"width": 320, "width": 920,
"height": 320 "height": 920
} }
}, },
"publisher": { "publisher": {
@@ -32,7 +32,7 @@
}, },
"image": { "image": {
"@type": "ImageObject", "@type": "ImageObject",
"url": {{ if .Params.image }}{{ (printf "%s%s%s" (.OutputFormats.Get "html").Permalink "images/" .Params.image ) }}{{ else }}{{ "me.jpg" | absURL }}{{ end }} "url": {{ if .Params.image }}{{ (printf "%s%s%s" (.OutputFormats.Get "html").Permalink "images/" .Params.image ) }}{{ else }}{{ "me_lg.jpg" | absURL }}{{ end }}
} }
} }
</script> </script>