feat: improve new articles and links layout

This commit is contained in:
2026-02-14 11:57:44 +01:00
parent 501e40172f
commit 5536456e78
6 changed files with 53 additions and 77 deletions

View File

@@ -1,9 +1,4 @@
<div class="blog-links">
{{- with .Params.event }}
<a class="label label-success label-lg" href="{{ .href }}" target="_blank" aria-label="Event Page" role="button">
<i class="fas fa-calendar-alt" aria-hidden="true"></i>&nbsp;&nbsp;{{ .name }}
</a>
{{- end }}
{{- with .Params.audio }}
<a class="label label-success label-lg" href="{{ . }}" target="_blank" aria-label="Audio Recording" role="button">
<i class="fas fa-microphone" aria-hidden="true"></i>&nbsp;&nbsp;Listen to Recording
@@ -11,7 +6,7 @@
{{- end }}
{{- with .Params.article }}
<a class="label label-success label-lg" href="{{ .href }}" target="_blank" aria-label="Related Article" role="button">
<i class="fas fa-newspaper" aria-hidden="true"></i>&nbsp;&nbsp;Read {{ .name }} Article
<i class="fas fa-newspaper" aria-hidden="true"></i>&nbsp;&nbsp;Read {{ .name | markdownify }} Article
</a>
{{- end }}
{{- with .Params.video }}
@@ -24,4 +19,9 @@
<i class="fas fa-desktop" aria-hidden="true"></i>&nbsp;&nbsp;View Slides
</a>
{{- end }}
{{- with .Params.event }}
<a class="label label-success label-lg" href="{{ .href }}" target="_blank" aria-label="Event Page" role="button">
<i class="fa fa-map-marker" aria-hidden="true"></i>&nbsp;&nbsp;{{ .name | markdownify }}
</a>
{{- end }}
</div>