www/layouts/publications/single.html

62 lines
2.1 KiB
HTML

{{ define "main" }}
<style>body { height: auto !important; min-height: 100vh !important; }</style>
<link rel="stylesheet" href="/css/projects.css">
<link rel="stylesheet" href="/css/publications.css">
<div class="publications-page">
{{/* ── Back link ── */}}
<a class="project-back" href="/publications/">← All publications</a>
{{/* ── Header ── */}}
<div class="pub-single-header" style="margin-bottom:2rem">
<div class="pub-meta-top" style="margin-bottom:0.75rem">
<span class="pub-date">{{ .Date.Format "January 2006" }}</span>
{{ range .GetTerms "topics" }}
{{ if or (eq .Slug "research-area-a") (eq .Slug "research-area-b") (eq .Slug "research-area-c") }}
<span class="pub-area-dot pub-area-{{ substr .Slug -1 }}"></span>
{{ end }}
{{ end }}
</div>
<h1 class="projects-title" style="margin-bottom:1rem">{{ .Title }}</h1>
{{/* ── Authors / Contributors ── */}}
{{ with .GetTerms "contributors" }}
<div class="pub-contributors" style="margin-bottom:1rem">
{{ range . }}
<a class="project-tag" href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
</div>
{{ end }}
{{/* ── Topic tags ── */}}
{{ with .GetTerms "topics" }}
<div class="pub-topics" style="margin-bottom:1.5rem">
{{ range . }}
<a class="project-tag project-tag-topic" href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
</div>
{{ end }}
{{/* ── DOI / external link ── */}}
{{ with .Params.external_url }}
<a class="pub-doi" href="{{ . }}" target="_blank" rel="noopener" style="font-size:1rem">
→ View on publisher site / DOI
</a>
{{ end }}
</div>
{{/* ── Abstract / body content ── */}}
{{ if .Content }}
<div class="pub-single-body">
<h2 class="topics-section-title">Abstract</h2>
<div class="topic-content">{{ .Content }}</div>
</div>
{{ end }}
</div>
{{ end }}