From 4540196deef3e4ed0163b326887801cf80798973 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 4 Feb 2018 13:08:48 +0000 Subject: [PATCH] Use relative links where possible So the dead link checker can check internal links --- layouts/partials/breadcrumbs/item.html | 2 +- layouts/partials/content.html | 2 +- layouts/partials/list_item.html | 6 +++--- layouts/partials/nav_pages.html | 2 +- layouts/shortcodes/resource.html | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) 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 }} {{ 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 }}