lumbung.space/themes/lumbung-theme/layouts/partials/timeline_event.html

11 lines
1.6 KiB
HTML

<div class='timeline-event'>
{{ $postPermalink := .Permalink}}
{{ if .Content }}
<a href="{{ .Permalink }}" class="timeline-url" data-title='{{ replace .Title " " "-" }}'>{{ .Page.Title }}<svg class="link-svg" enable-background="new 0 0 383.3 383.3" version="1.1" viewBox="0 0 383.3 383.3" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path class="link-svg-path" d="m383.3 152.7c-0.3 0.8-0.6 1.6-0.9 2.4-3.4 10.4-13 16.4-23.8 14.9-10.1-1.4-17.8-10.3-17.9-20.9-0.1-22.1 0-44.2 0-66.2v-10c-1.6 1.6-2.7 2.6-3.8 3.7-57.1 57.1-114.2 114.1-171.2 171.2-6.3 6.4-13.6 9.2-22.4 6.8-14.7-4.1-20.3-21.8-10.8-33.7 1.2-1.6 2.7-2.9 4.1-4.4l169.9-169.9c1.1-1.1 2.4-2 3.7-3-0.2-0.4-0.4-0.7-0.6-1.1h-3.9-71.1c-9.8 0-17.8-6-20.6-15-2.8-8.9 0.4-18.6 8.2-23.7 2.5-1.7 5.6-2.6 8.4-3.9h135.5c2 0.9 4.1 1.6 6.1 2.6 6 3.1 9 8.5 11.2 14.6-0.1 45.3-0.1 90.4-0.1 135.6z"/>
<path class="st0" d="m0 212.7c0-35.3-0.1-70.6 0-105.9 0.1-31.1 21.1-56.7 51.5-63 3-0.6 6.2-1.1 9.3-1.1 29.6-0.1 59.1-0.1 88.7-0.1 9 0 16.8 5.8 19.7 14.1 2.9 8.2 0.4 17.4-6.2 23.1-4.6 4-10 5.3-15.9 5.3-26.9 0-53.9 0.4-80.8-0.2-13.7-0.3-23.8 9.9-23.7 23.8 0.3 69.4 0.2 138.7 0.2 208.1 0 15.2 8.4 23.7 23.5 23.7h208.8c11.9 0 20.3-6.2 22.6-16.7 0.5-2.3 0.5-4.7 0.5-7.1v-81.6c0-14.2 11-23.9 24.6-22 9.7 1.3 17.8 9.8 17.9 19.6 0.2 30.3 0.7 60.6-0.2 90.9-0.9 32.4-29.5 59.2-62.2 59.4-44.4 0.2-88.8 0.1-133.2 0.1h-80.5c-31.5-0.1-57.2-21.2-63.3-52-0.9-4.4-1.1-8.9-1.1-13.4-0.2-34.9-0.2-69.9-0.2-105z"/></svg>
</a>
{{ else }}
<span class="timeline-url" data-title='{{ replace .Title " " "-" }}'>{{ .Title }}</span>
{{ end }}
</div>