Do not disable icons for disableLink in talks

disableLink was originally intended to disable a link
to the locally made markdown page.
This commit is contained in:
Marcin Zajączkowski 2020-02-20 13:08:47 +01:00
parent 06b1f5d4b9
commit 05be7acdd5
1 changed files with 9 additions and 9 deletions

View File

@ -31,15 +31,15 @@
<div class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</div> <div class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</div>
{{ else }} {{ else }}
<a href="{{ if .Params.externalLink }}{{ .Params.externalLink }}{{ else }}{{ .Permalink }}{{ end }}" target="{{ with .Params.externalLink }}_blank{{ end }}" rel="{{ with .Params.externalLink }}noreferrer{{ end }}" class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</a> <a href="{{ if .Params.externalLink }}{{ .Params.externalLink }}{{ else }}{{ .Permalink }}{{ end }}" target="{{ with .Params.externalLink }}_blank{{ end }}" rel="{{ with .Params.externalLink }}noreferrer{{ end }}" class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</a>
{{ with .Params.subLinks }} {{ end }}
<div class="talk__icons"> {{ with .Params.subLinks }}
{{ range . }} <div class="talk__icons">
<a href="{{ .link }}" class="talk__icon" target="_blank" rel="noreferrer" title="{{ .type }}"> {{ range . }}
{{ partial (print "svgs/etc/" .type ".svg") (dict "width" 23 "height" 23) }} <a href="{{ .link }}" class="talk__icon" target="_blank" rel="noreferrer" title="{{ .type }}">
</a> {{ partial (print "svgs/etc/" .type ".svg") (dict "width" 23 "height" 23) }}
{{ end }} </a>
</div> {{ end }}
{{ end }} </div>
{{ end }} {{ end }}
</li> </li>
{{ end }} {{ end }}