feat: Remove academia partial template

This commit is contained in:
Thomas A. Christensen II 2024-12-01 18:17:50 -07:00
parent 838d9a2028
commit 7007c1e878
Signed by: millironx
GPG key ID: B7044A3432851F64

View file

@ -1,74 +0,0 @@
<div class="d-flex py-2">
<div class="px-2">
{{ if eq .Params.medium "paper" }}
{{ .Scratch.Set "fa" "fa-book" }}
{{ else if eq .Params.medium "poster" }}
{{ .Scratch.Set "fa" "fa-presentation" }}
{{ else if eq .Params.medium "thesis" }}
{{ .Scratch.Set "fa" "fa-graduation-cap" }}
{{ else if eq .Params.medium "presentation" }}
{{ .Scratch.Set "fa" "fa-podium" }}
{{ else }}
{{ .Scratch.Set "fa" "fa-notebook" }}
{{ end }}
{{ $fa := (.Scratch.Get "fa") }}
<h3>
<i
class="fad fa-fw {{ $fa }}"
data-bs-toggle="tooltip"
title="{{ humanize .Params.medium }}"
></i>
</h3>
{{ with .Params.link }}
<a
class="btn btn-secondary dogear"
href="{{ . }}"
data-bs-toggle="tooltip"
title="Full text"
><i class="fad fa-file-alt"></i
></a>
{{ end }}
</div>
<div class="flex-grow-1 px-2">
<h3>
<a href="{{ .RelPermalink }}">
{{ .Title }}
</a>
</h3>
{{ $authlist := .Params.authors }}
{{ range $idx, $auth := .Params.authors }}
{{ if and (eq $idx (sub (len $authlist) 1)) (gt 1 (len $authlist)) }}
and
{{ end }}
{{- if eq $auth "Thomas A. Christensen II" }}
<strong>{{ $auth }}</strong>
{{- else }}
{{ $auth }}
{{- end }}
{{- if lt $idx (sub (len $authlist) 1) -}}
,
{{- end }}
{{ end }}
<br />
{{ .Params.journal }}:
{{ .Params.location }}
({{ dateFormat "02 Jan 2006" .Params.date }})
<br />
{{ with .Params.keywords }}
Keywords:
{{ range . }}
<a href="#">{{ . }}</a>
{{ end }}
<br />
{{ end }}
{{ if eq (.Scratch.Get "showAbstract") true }}
<details>
<summary>Abstract</summary>
{{ .Content }}
</details>
{{ end }}
</div>
</div>