Layout-Umbauten:

- Standartisierung der Karten-/Template-Elemente (schließt #224)
- Verbesserung einiger Ansichten
- "schrumpfung"
- Code-Cleanups
- Trabsliteration Kategorien
u. v. m.
This commit is contained in:
2023-04-03 21:45:44 +02:00
parent 9a1f8caceb
commit 799acd03a9
99 changed files with 521 additions and 812 deletions

View File

@ -8,7 +8,7 @@
<div class="row">
{{ range (where .Data.Pages "Params.type" "schulchronik") }}
<div class="col-lg-4 col-sm-6 mb-3">
{{ .Render "schulchronik" }}
{{ .Render "card-btn-ni" }}
</div>
{{ end }}
</div>

View File

@ -22,15 +22,15 @@
</div>
{{ end }}
{{ range .Params.topics }}
{{ partial "chronik-modal" (dict "id" (md5 .title) "title" .title "content" .content) }}
{{ partial "modal" . }}
{{ end }}
{{ if and .Params.pretext (ne .Params.pretext "\n\n\n") }}
{{ partial "chronik-modal" (dict "id" "pretext" "title" .Title "content" .Params.pretext) }}
{{ partial "modal" (dict "title" .Title "content" .Params.pretext) }}
{{ end }}
<div id="wc-canvas"></div>
{{ $topics := slice }}
{{ if .Params.pretext }}
{{ $topics = $topics | append (slice (slice .Params.Title 200 "pretext")) }}
{{ $topics = $topics | append (slice (slice .Params.Title 200 (md5 .Title))) }}
{{ else }}
{{ $topics = $topics | append (slice (slice .Params.Title 200)) }}
{{ end }}
@ -47,7 +47,7 @@
document.getElementById('wc-canvas'),
{
click: function (item) {
if (item[1] != 200 || (item[1] == 200 && item[2] == "pretext")) {
if (item[1] != 200 || (item[1] == 200 && item[2] == '{{ md5 .Title }}')) {
if( item[3] == "superhaufen" ) {
window.location.href = "{{ `/superhaufen/` | relLangURL }}" + item[2];
} else {