Initial commit
This commit is contained in:
28
themes/hugo-academic-master/layouts/partials/talk_links.html
Normal file
28
themes/hugo-academic-master/layouts/partials/talk_links.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{{ $is_list := .is_list }}
|
||||
{{ $ := .content }}
|
||||
|
||||
{{ if $is_list }}
|
||||
<a class="btn btn-primary btn-outline btn-xs" href="{{ $.Permalink }}">
|
||||
{{ i18n "btn_details" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_pdf }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_pdf" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_slides }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_slides" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_video }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_video" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ range $.Params.url_custom }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ .url | absURL }}">
|
||||
{{ .name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user