consolidate: fold openbureau (+ rapport, dossier) into about; drop it as a standalone nav destination

about now lists cv.md, openbureau.md, rapport.md, dossier.md side by side. the standalone /openbureau/ page, its layout, and its home-menu entry are gone; internal links repointed to /about/. also switch the info-panel text to justified (with hyphenation, per earlier request) instead of ragged-right.
This commit is contained in:
kgva CMS
2026-08-10 22:50:04 +00:00
parent 85148623d7
commit d3f63251eb
10 changed files with 38 additions and 68 deletions
+21 -7
View File
@@ -1,23 +1,37 @@
{{ define "bodyclass" }}page-about{{ end }}
{{ define "main" }}
{{ $cv := .Site.GetPage "/cv" }}
{{ $files := slice
(.Site.GetPage "/cv")
(.Site.GetPage "/openbureau")
(.Site.GetPage "/ob/rapport")
(.Site.GetPage "/ob/dossier") }}
{{ $names := slice "cv.md" "openbureau.md" "rapport.md" "dossier.md" }}
{{ $total := 0 }}{{ range $files }}{{ if . }}{{ $total = add $total 1 }}{{ end }}{{ end }}
<div class="proj-layout">
{{ if $cv }}
{{ if gt $total 0 }}
<div class="tui tui--files filebrowser">
<p class="tui__cmd"><span class="tui__sym">$</span> ls</p>
<p class="tui__cmd tui__total">total 1</p>
<p class="tui__cmd tui__total">total {{ $total }}</p>
<ul class="tui__ls">
<li><a href="{{ "/" | relLangURL }}" data-name="..">
<span class="tui__perm">drwxr-xr-x</span><span class="tui__name">..</span>
</a></li>
<li><a data-name="cv.md" data-text="cv.md" class="is-selected">
<span class="tui__perm">-rw-r--r--</span><span class="tui__name">cv.md</span>
{{ $first := true }}
{{ range $i, $p := $files }}{{ if $p }}
<li><a data-name="{{ index $names $i }}" data-text="{{ index $names $i }}"{{ if $first }} class="is-selected"{{ end }}>
<span class="tui__perm">-rw-r--r--</span><span class="tui__name">{{ index $names $i }}</span>
</a></li>
{{ $first = false }}
{{ end }}{{ end }}
</ul>
<figure class="tui__preview">
<div class="tui__text" data-text="cv.md">{{ $cv.Content }}</div>
<figcaption class="tui__status">cv.md</figcaption>
{{ $first := true }}
{{ range $i, $p := $files }}{{ if $p }}
<div class="tui__text" data-text="{{ index $names $i }}"{{ if not $first }} hidden{{ end }}>{{ $p.Content }}</div>
{{ $first = false }}
{{ end }}{{ end }}
<figcaption class="tui__status">{{ range $i, $p := $files }}{{ if $p }}{{ index $names $i }}{{ break }}{{ end }}{{ end }}</figcaption>
</figure>
</div>
{{ end }}