Add first article

This commit is contained in:
2026-09-27 19:09:58 +02:00
parent 0fe100bcbf
commit b951edb87c
62 changed files with 2574 additions and 29 deletions
+24
View File
@@ -0,0 +1,24 @@
{{ define "content" }}
{{ partial "research/styles.html" . }}
{{- $parentSegments := split (strings.TrimPrefix "/" (strings.TrimSuffix "/" .Parent.RelPermalink)) "/" -}}
{{- $parentDepth := len $parentSegments -}}
{{- $backTarget := .Parent -}}
{{- $backText := "← Back to paper" -}}
{{- if eq $parentDepth 1 -}}
{{- $backText = "← Back to research" -}}
{{- else if gt $parentDepth 2 -}}
{{- $backTarget = .Parent.Parent -}}
{{- end -}}
<article class="post research-notebook">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
<div class="post-meta" style="text-align:center;">
<a href="{{ $backTarget.RelPermalink }}">{{ $backText }}</a>
</div>
</header>
{{ partial "research/toc.html" . }}
<div class="post-content">
{{ .Content }}
</div>
</article>
{{ end }}