Extract academic listing to partial page
This commit is contained in:
parent
c84a41943b
commit
4c2c001076
2 changed files with 45 additions and 44 deletions
|
@ -2,49 +2,6 @@
|
|||
<h2>Selected Presentations</h2>
|
||||
{{ $featuredpubs := where .Pages ".Params.featured" "==" true }}
|
||||
{{ range $featuredpubs }}
|
||||
<div class="d-flex py-2">
|
||||
<div class="px-1">
|
||||
<h3>
|
||||
{{ if eq .Params.type "poster" }}<i class="fad fa-presentation" data-bs-toggle="tooltip" title="Poster"></i>{{ end }}
|
||||
{{ if eq .Params.type "thesis" }}<i class="fad fa-graduation-cap" data-bs-toggle="tooltip" title="Thesis"></i>{{ end }}
|
||||
</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-1">
|
||||
<h3>
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ .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 />
|
||||
Keywords:
|
||||
{{ range .Params.keywords }}
|
||||
<a href="#">{{ . }}</a>
|
||||
{{ end }}
|
||||
<br />
|
||||
<details>
|
||||
<summary>Abstract</summary>
|
||||
{{ .Content }}
|
||||
</details>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "academia/list-single.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
44
layouts/partials/academia/list-single.html
Normal file
44
layouts/partials/academia/list-single.html
Normal file
|
@ -0,0 +1,44 @@
|
|||
<div class="d-flex py-2">
|
||||
<div class="px-1">
|
||||
<h3>
|
||||
{{ if eq .Params.type "poster" }}<i class="fad fa-presentation" data-bs-toggle="tooltip" title="Poster"></i>{{ end }}
|
||||
{{ if eq .Params.type "thesis" }}<i class="fad fa-graduation-cap" data-bs-toggle="tooltip" title="Thesis"></i>{{ end }}
|
||||
</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-1">
|
||||
<h3>
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ .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 />
|
||||
Keywords:
|
||||
{{ range .Params.keywords }}
|
||||
<a href="#">{{ . }}</a>
|
||||
{{ end }}
|
||||
<br />
|
||||
<details>
|
||||
<summary>Abstract</summary>
|
||||
{{ .Content }}
|
||||
</details>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue