48 lines
1.8 KiB
HTML
48 lines
1.8 KiB
HTML
{{- $links := slice -}}
|
|
{{- $page := . -}}
|
|
|
|
{{- $pdf := .Params.pdf -}}
|
|
{{- if not $pdf }}
|
|
{{- with .Resources.Match "paper/*.pdf" }}
|
|
{{- range first 1 . }}
|
|
{{- $pdf = .RelPermalink -}}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- with $pdf }}{{ $links = $links | append (printf "<a href=\"%s\">PDF</a>" .) }}{{ end -}}
|
|
|
|
{{- $poster := .Params.poster -}}
|
|
{{- if not $poster }}
|
|
{{- with .Resources.Match "poster/*.pdf" }}
|
|
{{- range first 1 . }}
|
|
{{- $poster = .RelPermalink -}}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- with $poster }}{{ $links = $links | append (printf "<a href=\"%s\">Poster</a>" .) }}{{ end -}}
|
|
|
|
{{- $talk := .Params.talk -}}
|
|
{{- if not $talk }}
|
|
{{- with .Resources.Match "talk/*.pdf" }}
|
|
{{- range first 1 . }}
|
|
{{- $talk = .RelPermalink -}}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- with $talk }}{{ $links = $links | append (printf "<a href=\"%s\">Slides</a>" .) }}{{ end -}}
|
|
|
|
{{- with .Params.video }}{{ $links = $links | append (printf "<a href=\"%s\">Video</a>" .) }}{{ end -}}
|
|
{{- with .Params.code }}{{ $links = $links | append (printf "<a href=\"%s\">Code</a>" .) }}{{ end -}}
|
|
{{- with .Params.doi }}{{ $links = $links | append (printf "<a href=\"https://doi.org/%s\">DOI</a>" .) }}{{ end -}}
|
|
|
|
{{- $matlab := .GetPage "matlab" -}}
|
|
{{- with $matlab }}{{ $links = $links | append (printf "<a href=\"%s\">Matlab</a>" .RelPermalink) }}{{ end -}}
|
|
|
|
{{- $python := .GetPage "python" -}}
|
|
{{- with $python }}{{ $links = $links | append (printf "<a href=\"%s\">Python</a>" .RelPermalink) }}{{ end -}}
|
|
|
|
{{- $tikz := .GetPage "tikz" -}}
|
|
{{- with $tikz }}{{ $links = $links | append (printf "<a href=\"%s\">TikZ Figures</a>" .RelPermalink) }}{{ end -}}
|
|
|
|
{{ partial "research/link-row.html" (dict "links" $links "class" "pub-links-centered") }}
|