make absURLs more resilient (trailing slashes/not)

This commit is contained in:
jake committed 2020-02-03 08:58:30 -05:00
1 parent af61020152
commit f19084006f
10 files changed
+17 -15

No files matched your search

+2 -2
View File
@@ -3,14 +3,14 @@
{
"@context": "http://schema.org",
"@type": "Person",
"@id": {{ printf "%s%s" $.Site.BaseURL "#author" }},
"@id": {{ path.Join $.Site.BaseURL "#author" }},
"name": {{ $.Site.Author.name }},
"url": {{ $.Site.BaseURL }},
"description": {{ $.Site.Params.description }},
{{ with .jobtitle }}"jobTitle": {{ . }},{{ end }}
"image": {
"@type": "ImageObject",
"url": {{ $.Scratch.Get "defaultImage_url" }},
"url": {{ $.Scratch.Get "defaultImage_url" | absURL }},
"width": "{{ $.Scratch.Get "defaultImage_width" }}",
"height": "{{ $.Scratch.Get "defaultImage_height" }}"
},