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).
This commit is contained in:
parent
6e80fe903f
commit
0dbf0ca390
|
@ -22,7 +22,11 @@
|
|||
<span class="talk__date" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
||||
{{ .PublishDate.Format (i18n "talks-dateformat") }}
|
||||
</span>
|
||||
<a href="{{ .Permalink }}" class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</a>
|
||||
{{ if .Params.disableLink }}
|
||||
<div class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</div>
|
||||
{{ else }}
|
||||
<a href="{{ if .Params.externalLink }}{{ .Params.externalLink }}{{ else }}{{ .Permalink }}{{ end }}" class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
@ -35,4 +39,4 @@
|
|||
</div>
|
||||
{{ partial "script/archive-script" . }}
|
||||
</main>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue