Skip to content

Commit a41475a

Browse files
authored
Merge pull request #32 from dasc-lab/feat/show_people
added peoples photos to the paper page
2 parents 1139e10 + 596e9f5 commit a41475a

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

content/papers/2024/2024-eclares.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ layout: papers
33
title: "Eclares: Energy-Aware Clarity-Driven Ergodic Search"
44
date: 2024-05-13
55
authors:
6-
- devanshagrawal
76
- kalebbennaveed
7+
- devanshagrawal
88
- Christopher Vermillion
99
- dimitrapanagou
1010
image: /images/2024-eclares.png

layouts/papers/single.html

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,28 @@ <h3>Abstract</h3>
1919
</div>
2020

2121

22-
{{ .Content }}
2322

2423

24+
<!-- AUTHOR LIST -->
25+
<h2>Authors</h2>
26+
<div class="row row-cols-2 row-cols-md-4 my-3 g4">
27+
{{ range .Params.authors }}
28+
<!-- construct url to search for -->
29+
{{ $url := printf "/people/%s" . }}
30+
31+
<!-- check if the url exists -->
32+
{{ $authorPage := $.Site.GetPage $url }}
33+
<!-- if it does, create a link, else just print the name -->
34+
{{ if $authorPage }}
35+
<div class="row">
36+
{{ partial "person-card" $authorPage }}
37+
</div>
38+
{{ end }}
39+
{{ end }}
40+
</div>
41+
42+
{{ .Content }}
43+
2544
{{ if .Params.bib }}
2645
<div class="my-3">
2746
<h3>Bib</h3>
@@ -36,4 +55,5 @@ <h3>Bib</h3>
3655
{{ end }}
3756

3857

58+
3959
{{ end }}

0 commit comments

Comments
 (0)