diff --git a/layouts/partials/breadcrumbs/item.html b/layouts/partials/breadcrumbs/item.html index fe1626c..7d934f2 100644 --- a/layouts/partials/breadcrumbs/item.html +++ b/layouts/partials/breadcrumbs/item.html @@ -3,5 +3,5 @@ {{ end }}{{ end }} {{ if ne .page .current }} - + {{ end }} diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 16a5c69..6d932d1 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -2,7 +2,7 @@ {{ .Scratch.Set "image" .Params.image }} {{ if hasPrefix .Params.image "resource:" }} {{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }} - {{ .Scratch.Set "image" $resource.Permalink }} + {{ .Scratch.Set "image" $resource.RelPermalink }} {{ end }}
{{ end }}{{ end }} diff --git a/layouts/partials/list_item.html b/layouts/partials/list_item.html index 436cb16..3aff0d2 100644 --- a/layouts/partials/list_item.html +++ b/layouts/partials/list_item.html @@ -1,18 +1,18 @@
{{ if .Params.image }}
- + {{ .Scratch.Set "image" .Params.image }} {{ if hasPrefix .Params.image "resource:" }} {{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }} - {{ .Scratch.Set "image" ($resource.Resize "300x").Permalink }} + {{ .Scratch.Set "image" ($resource.Resize "300x").RelPermalink }} {{ end }}
{{ end }}
- +
{{ .Title }}
{{ partial "content-details.html" . }} diff --git a/layouts/partials/nav_pages.html b/layouts/partials/nav_pages.html index 94fe96e..394fc40 100644 --- a/layouts/partials/nav_pages.html +++ b/layouts/partials/nav_pages.html @@ -6,7 +6,7 @@ {{ range sort $nav_pages "LinkTitle" }} diff --git a/layouts/shortcodes/resource.html b/layouts/shortcodes/resource.html index 83b17dd..419eca6 100644 --- a/layouts/shortcodes/resource.html +++ b/layouts/shortcodes/resource.html @@ -18,11 +18,11 @@ {{ if .Inner }}
- +
{{ .Inner }}
{{ else }} - + {{ end }}