diff --git a/exampleSite/content/categories/Test/_index.md b/exampleSite/content/categories/Test/_index.md index 0b3cfa9..de42112 100644 --- a/exampleSite/content/categories/Test/_index.md +++ b/exampleSite/content/categories/Test/_index.md @@ -1,9 +1,9 @@ --- title: "Test" -description: "This is a example category" +description: "This is an example category" slug: "test" image: "hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg" style: background: "#2a9d8f" color: "#fff" ---- \ No newline at end of file +--- diff --git a/layouts/partials/helper/image.html b/layouts/partials/helper/image.html index dd86d27..11fc3b6 100644 --- a/layouts/partials/helper/image.html +++ b/layouts/partials/helper/image.html @@ -8,7 +8,7 @@ {{ $url := urls.Parse $imageValue }} {{ if or (eq $url.Scheme "http") (eq $url.Scheme "https") }} - + {{ $result = merge $result (dict "permalink" $imageValue) }} {{ else }} {{ $pageResourceImage := .Context.Resources.GetMatch (printf "%s" ($imageValue | safeURL)) }} @@ -58,4 +58,4 @@ {{ end }} -{{ return $result }} \ No newline at end of file +{{ return $result }}