From 44b46f1d4005204011366606627b5a07bb543031 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 14 Nov 2016 03:43:00 +0000 Subject: [PATCH] projects widget: Improve external link handling --- layouts/partials/widgets/projects.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/partials/widgets/projects.html b/layouts/partials/widgets/projects.html index 009643dd..fa6fc3bd 100644 --- a/layouts/partials/widgets/projects.html +++ b/layouts/partials/widgets/projects.html @@ -56,15 +56,19 @@
{{ range $project := where $.Data.Pages "Type" "project" }} + {{ $.Scratch.Set "project_url" $project.Permalink }} + {{ if $project.Params.external_link }} + {{ $.Scratch.Set "project_url" $project.Params.external_link }} + {{ end }}
{{ with $project.Params.image_preview }} - + {{ end }}
-

{{ .Title }}

+

{{ .Title }}

{{ with $project.Params.summary }}

{{ . }}

{{ end }}