From 138055838431355c435a05bef610ef9734d1d678 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Tue, 23 Nov 2021 18:07:03 -0600 Subject: [PATCH] Fix ".File.Path on a zero object" when there are drafted series --- layouts/partials/post-metadata/series.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/post-metadata/series.html b/layouts/partials/post-metadata/series.html index 8b4d413..34c31f7 100644 --- a/layouts/partials/post-metadata/series.html +++ b/layouts/partials/post-metadata/series.html @@ -16,5 +16,7 @@ {{ end }} {{ partial "post-meta-item/translations.html" . }} - {{ partial "post-meta-item/viewsource.html" . }} + {{ if .File }} + {{ partial "post-meta-item/viewsource.html" . }} + {{ end }}