From 0dbf0ca390b43d261f36dd819f44de074a1d0fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Thu, 13 Feb 2020 16:19:26 +0100 Subject: [PATCH] Ability to disable link do talk page or provide external one Quite often in my case, there is no content that I would like to provide on a dedicated page for a particular page. As a result I would like to be able to disable the link at all or provide an external link (e.g. to the conference page). --- layouts/talks/list.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/talks/list.html b/layouts/talks/list.html index b674147..a80d0ca 100644 --- a/layouts/talks/list.html +++ b/layouts/talks/list.html @@ -22,7 +22,11 @@ {{ .PublishDate.Format (i18n "talks-dateformat") }} - {{ .Title }} + {{ if .Params.disableLink }} +
{{ .Title }}
+ {{ else }} + {{ .Title }} + {{ end }} {{ end }} @@ -35,4 +39,4 @@ {{ partial "script/archive-script" . }} -{{ end }} \ No newline at end of file +{{ end }}