ui: Software-Rubrik als kuratierte Landing (Werkzeuge vs. Texte)
/library/software trennt jetzt 'Werkzeuge' (Beiträge mit externem Link wie DOSSIER/RAPPORT, als Karten mit ↗ und Farbakzent) von 'Texte & Anleitungen' (chronologisch). Andere Rubriken bleiben unverändert. dist/ ignoriert. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -36,6 +36,53 @@
|
||||
</article>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ else if eq .Path "/library/software" }}
|
||||
{{/* Software: kuratierte Landing — Werkzeuge (mit externem Link) getrennt
|
||||
von Texten & Anleitungen. */}}
|
||||
<header class="section-header" data-section="software">
|
||||
<p class="section-rubric">Library</p>
|
||||
<h1 class="section-title">{{ .Title }}</h1>
|
||||
{{ with .Params.description }}<p class="section-description">{{ . }}</p>{{ end }}
|
||||
</header>
|
||||
|
||||
{{ $tools := where .RegularPages "Params.external" "!=" nil }}
|
||||
{{ $texts := where .RegularPages "Params.external" nil }}
|
||||
|
||||
{{ with $tools }}
|
||||
<section class="software-tools">
|
||||
<h2 class="software-h">Werkzeuge</h2>
|
||||
<ul class="tool-list">
|
||||
{{ range .ByWeight }}
|
||||
<li class="tool-item"{{ with .Params.color }} data-color="{{ . }}"{{ end }}>
|
||||
<a class="tool-main" href="{{ .RelPermalink }}">
|
||||
<span class="tool-name">{{ .LinkTitle }}</span>
|
||||
{{ with .Params.summary }}<span class="tool-sum text-muted">{{ . }}</span>{{ end }}
|
||||
</a>
|
||||
{{ with .Params.external }}<a class="tool-ext" href="{{ . }}" rel="noopener" aria-label="extern öffnen">↗</a>{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<section class="software-texts">
|
||||
<h2 class="software-h">Texte & Anleitungen</h2>
|
||||
<div class="time-list" data-section="software">
|
||||
<ul>
|
||||
{{ range $texts.ByDate.Reverse }}
|
||||
<li class="list-item">
|
||||
<div class="list-title-row">
|
||||
<div class="list-title">
|
||||
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
||||
{{ with .Params.summary }}<div class="list-summary text-muted">{{ . }}</div>{{ end }}
|
||||
</div>
|
||||
<div class="list-meta">{{ partial "date.html" .Date }}</div>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{{ else }}
|
||||
{{/* Library subsection: chronologisch */}}
|
||||
{{ $section := path.Base .RelPermalink }}
|
||||
|
||||
Reference in New Issue
Block a user