feat: simple buttons to show links for media
All checks were successful
Website build and deploy / build (pull_request) Successful in 45s
All checks were successful
Website build and deploy / build (pull_request) Successful in 45s
This commit is contained in:
27
themes/hugo-sustain/layouts/partials/blog/links.html
Normal file
27
themes/hugo-sustain/layouts/partials/blog/links.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<div class="blog-links">
|
||||
{{- with .Params.event }}
|
||||
<a class="btn btn-default button-event" href="{{ .href }}" target="_blank" aria-label="Event Page" role="button">
|
||||
<i class="fas fa-calendar-alt" aria-hidden="true"></i> {{ .name }}
|
||||
</a>
|
||||
{{- end }}
|
||||
{{- with .Params.audio }}
|
||||
<a class="btn btn-default button-audio" href="{{ . }}" target="_blank" aria-label="Audio Recording" role="button">
|
||||
<i class="fas fa-microphone" aria-hidden="true"></i> Listen to Recording
|
||||
</a>
|
||||
{{- end }}
|
||||
{{- with .Params.article }}
|
||||
<a class="btn btn-default button-article" href="{{ .href }}" target="_blank" aria-label="Related Article" role="button">
|
||||
<i class="fas fa-newspaper" aria-hidden="true"></i> Read {{ .name }} Article
|
||||
</a>
|
||||
{{- end }}
|
||||
{{- with .Params.video }}
|
||||
<a class="btn btn-default button-video" href="{{ . }}" target="_blank" aria-label="Video Recording" role="button">
|
||||
<i class="fas fa-video" aria-hidden="true"></i> Watch Recording
|
||||
</a>
|
||||
{{- end }}
|
||||
{{- with .Params.slides }}
|
||||
<a class="btn btn-default button-slides" href="{{ . }}" target="_blank" aria-label="Slides" role="button">
|
||||
<i class="fas fa-desktop" aria-hidden="true"></i> View Slides
|
||||
</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user