talks sublinks option added
This commit is contained in:
parent
f99646e95b
commit
3228b4eae4
|
@ -170,7 +170,6 @@
|
|||
&__title {
|
||||
margin-right: 0.5rem;
|
||||
margin-left: 1rem;
|
||||
width: 100%;
|
||||
font-family: $title-font;
|
||||
|
||||
&[data-title-wrap^="no"] {
|
||||
|
|
|
@ -25,10 +25,28 @@
|
|||
}
|
||||
}
|
||||
|
||||
&__icons {
|
||||
padding: 0 0.5rem;
|
||||
margin: auto 0;
|
||||
@include flexbox();
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
|
||||
&__icon {
|
||||
margin: auto 0.25rem;
|
||||
|
||||
@include themify($themes) {
|
||||
color: themed('social-icon-color');
|
||||
}
|
||||
}
|
||||
|
||||
&__title {
|
||||
margin-right: 0.5rem;
|
||||
margin-left: 0.75rem;
|
||||
width: 100%;
|
||||
|
||||
&[data-title-wrap^="no"] {
|
||||
@include truncate($grid-max-width);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="{{ .width }}" height="{{ .height }}"> <path d="M 5 3 C 3.897 3 3 3.897 3 5 L 3 19 C 3 20.103 3.897 21 5 21 L 12.779297 21 C 11.753297 19.862 11.753297 18.138 12.779297 17 L 5 17 L 5 7 L 19 7 L 19.001953 12 C 19.719953 12 20.431 12.266297 21 12.779297 L 21 5 C 21 3.897 20.103 3 19 3 L 5 3 z M 19 14 C 18.74425 14 18.488469 14.097469 18.292969 14.292969 L 17.585938 15 L 16 15 C 15.448 15 15 15.448 15 16 L 15 17.585938 L 14.292969 18.292969 C 13.901969 18.683969 13.901969 19.316031 14.292969 19.707031 L 15 20.414062 L 15 22 C 15 22.552 15.448 23 16 23 L 17.585938 23 L 18.292969 23.707031 C 18.487969 23.902031 18.744 24 19 24 C 19.256 24 19.512031 23.902031 19.707031 23.707031 L 20.414062 23 L 22 23 C 22.552 23 23 22.552 23 22 L 23 20.414062 L 23.707031 19.707031 C 24.098031 19.316031 24.098031 18.683969 23.707031 18.292969 L 23 17.585938 L 23 16 C 23 15.448 22.552 15 22 15 L 20.414062 15 L 19.707031 14.292969 C 19.511531 14.097469 19.25575 14 19 14 z"/></svg>
|
After Width: | Height: | Size: 1.0 KiB |
|
@ -0,0 +1 @@
|
|||
<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="{{ .width }}" height="{{ .height }}"><path d="M 7 3 C 5.895 3 5 3.895 5 5 L 19 5 C 19 3.895 18.105 3 17 3 L 7 3 z M 4 7 C 2.895 7 2 7.895 2 9 L 2 19 C 2 20.105 2.895 21 4 21 L 20 21 C 21.105 21 22 20.105 22 19 L 22 9 C 22 7.895 21.105 7 20 7 L 4 7 z M 10.164062 10.765625 C 10.337219 10.764734 10.515141 10.808203 10.681641 10.908203 L 14.404297 13.142578 C 15.051297 13.530578 15.051297 14.469422 14.404297 14.857422 L 10.681641 17.091797 C 10.015641 17.490797 9.1679688 17.011375 9.1679688 16.234375 L 9.1679688 11.765625 C 9.1679688 11.182875 9.6445938 10.768297 10.164062 10.765625 z"/></svg>
|
After Width: | Height: | Size: 683 B |
|
@ -31,6 +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 }}
|
||||
</li>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue