73 lines
2.3 KiB
HTML
73 lines
2.3 KiB
HTML
{{ define "main" }}
|
|
<article class="prose dark:prose-invert">
|
|
<header>
|
|
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Params.given_name }} {{ .Params.family_name }}</h1>
|
|
</header>
|
|
<!-- Portrait depiction -->
|
|
{{ $portraits := .Resources.Match "portrait.*" }}
|
|
{{ with index $portraits 0 }}
|
|
<img src="{{ .RelPermalink }}" alt="Portrait of {{ $.Params.given_name }} {{ $.Params.family_name }}">
|
|
{{ end }}
|
|
<!-- Description -->
|
|
{{ with .Params.description }}
|
|
<p>{{ . }}</p>
|
|
{{ end }}
|
|
<!-- Identifiers -->
|
|
{{ $links := dict
|
|
"Debian" "https://qa.debian.org/developer.php?login=%s"
|
|
"GitHub" "https://github.com/%s"
|
|
"LinkedIn" "https://www.linkedin.com/in/%s"
|
|
"ORCID" "https://orcid.org/%s"
|
|
"ResearchGate" "https://www.researchgate.net/profile/%s"
|
|
}}
|
|
{{ with .Params.identifiers }}
|
|
<ul>
|
|
{{ range . }}
|
|
{{ $notation := .notation }}
|
|
{{ $name := "" }}
|
|
{{ if reflect.IsMap .creator }}
|
|
{{ $name = index .creator "name" }}
|
|
{{ else }}
|
|
{{ $name = .creator }}
|
|
{{ end }}
|
|
<li>
|
|
{{ if and $name (isset $links $name) }}
|
|
<a href="{{ printf (index $links $name) $notation }}">
|
|
{{ $name }}: {{ $notation }}
|
|
</a>
|
|
{{ else }}
|
|
{{ $name }}: {{ $notation }}
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</article>
|
|
{{ if .Data.Pages }}
|
|
<br/>
|
|
<section>
|
|
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
|
|
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
|
|
<h2 class="mt-12 text-2xl font-bold text-neutral-700 first:mt-8 dark:text-neutral-300">
|
|
{{ .Key }}
|
|
</h2>
|
|
<hr class="w-36 border-dotted border-neutral-400" />
|
|
{{ range .Pages }}
|
|
{{ partial "article-link.html" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ range (.Paginate .Pages).Pages }}
|
|
{{ partial "article-link.html" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</section>
|
|
{{ partial "pagination.html" . }}
|
|
{{ else }}
|
|
<section class="prose mt-10 dark:prose-invert">
|
|
<p class="border-t py-8">
|
|
<em>{{ i18n "list.no_articles" | emojify }}</em>
|
|
</p>
|
|
</section>
|
|
{{ end }}
|
|
{{ end }}
|