mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
fix: show button links in listings irrespective of Type
Hugo cannot yet understand more than one return statement. See https://discord.com/channels/722225264733716590/742863504515793149/800107285246246993
This commit is contained in:
parent
b6dc6d8777
commit
9f5c626c8f
1 changed files with 1 additions and 5 deletions
|
@ -15,8 +15,4 @@
|
|||
{{ $cite_link = true }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $cite_link | or $pdf_link | or .Params.url_preprint | or .Params.url_pdf | or .Params.url_slides | or .Params.url_video | or .Params.url_source | or .Params.url_code | or .Params.url_dataset | or .Params.url_poster | or .Params.url_project | or .Params.doi | or .Params.links | or .Params.projects | or .Params.slides }}
|
||||
{{ return true }}
|
||||
{{ else }}
|
||||
{{ return false }}
|
||||
{{ end }}
|
||||
{{ return ($cite_link | or $pdf_link | or .Params.url_preprint | or .Params.url_pdf | or .Params.url_slides | or .Params.url_video | or .Params.url_source | or .Params.url_code | or .Params.url_dataset | or .Params.url_poster | or .Params.url_project | or .Params.doi | or .Params.links | or .Params.projects | or .Params.slides) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue