Merge pull request #191 from szpak/talksIconFix

Do not disable icons for disableLink in talks
This commit is contained in:
zzossig 2020-02-20 21:24:55 +09:00 committed by GitHub
commit 3155e374df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>
{{ 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>
{{ with .Params.subLinks }}
<div class="talk__icons">
{{ range . }}
<a href="{{ .link }}" class="talk__icon" target="_blank" rel="noreferrer" title="{{ .type }}">
{{ partial (print "svgs/etc/" .type ".svg") (dict "width" 23 "height" 23) }}
</a>
{{ end }}
</div>
{{ end }}
{{ end }}
{{ with .Params.subLinks }}
<div class="talk__icons">
{{ range . }}
<a href="{{ .link }}" class="talk__icon" target="_blank" rel="noreferrer" title="{{ .type }}">
{{ partial (print "svgs/etc/" .type ".svg") (dict "width" 23 "height" 23) }}
</a>
{{ end }}
</div>
{{ end }}
</li>
{{ end }}