2022-03-18 13:35:57 +01:00
|
|
|
{{ define "main" }}
|
|
|
|
|
2023-09-23 22:40:36 +02:00
|
|
|
<section class="section" data-pagefind-body>
|
2023-07-29 13:16:25 +02:00
|
|
|
<!-- TODO: everything -->
|
2022-03-18 13:35:57 +01:00
|
|
|
<div class="container">
|
2023-07-29 13:16:25 +02:00
|
|
|
{{ if or .Params.cantorpreisträger (where (where .Site.RegularPages "Title" (print "Abiturienten " .Params.Title ) ) "Type" "=" "abiturienten") }}
|
|
|
|
<div class="card-group">
|
|
|
|
{{ range where (where .Site.RegularPages "Title" .Params.Title ) "Type" "=" "cantorpreis" }}
|
|
|
|
<div class="card d-flex flex-row flex-wrap">
|
|
|
|
<div class="flex-shrink-0">
|
|
|
|
<a href="{{ .Permalink }}"><img src="{{ .Params.Image | relURL }}" class="rounded-circle m-3 object-cover" height="128px" width="128px"></a>
|
2023-01-11 11:32:19 +01:00
|
|
|
</div>
|
2023-07-29 13:16:25 +02:00
|
|
|
<div class="flex-grow card-body min-w-0">
|
2023-11-21 21:16:47 +01:00
|
|
|
<a href="/cantorpreis"><h3 class="card-title">Cantorpreisträger</h3></a>
|
2023-07-29 13:16:25 +02:00
|
|
|
<a href="{{ .Permalink }}"><p class="h4 card-text">{{ .Params.name }}</p></a>
|
2023-04-05 14:16:33 +02:00
|
|
|
</div>
|
2023-01-11 11:32:19 +01:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2023-07-29 13:16:25 +02:00
|
|
|
{{ range where (where .Site.RegularPages "Title" (print "Abiturienten " .Params.Title ) ) "Type" "=" "abiturienten" }}
|
|
|
|
<div class="card d-flex flex-row flex-wrap-reverse">
|
|
|
|
<div class="flex-grow card-body min-w-0">
|
|
|
|
<a href="{{ .Permalink }}"><h3 class="card-title">{{ .Title }}</h3></a>
|
|
|
|
{{ $abiturdurchschnitte := getJSON "static/data/abiturdurchschnitte.json" }}
|
|
|
|
{{ range $abiturdurchschnitte.abiturdurchschnitte }}
|
2023-11-21 21:16:47 +01:00
|
|
|
{{ if eq (string (index . "jahr")) $.Title }}<a href="/chronikseiten/abiturdurchschnitte"><p class="h4 card-text">Abiturdurchschnitt: {{ .schnitt }}</p></a>{{ end }}
|
2023-07-29 13:16:25 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<div class="">
|
|
|
|
<a href="{{ .Permalink }}">
|
|
|
|
<img src="{{ .Params.Image | relURL }}" class="rounded-circle object-cover m-3" width="128px" height="128px">
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
2023-07-29 13:16:25 +02:00
|
|
|
{{ end }}
|
2024-01-01 23:24:54 +01:00
|
|
|
</div>
|
2023-07-29 13:16:25 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ range .Params.topics }}
|
|
|
|
{{ partial "modal" . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if and .Params.pretext (ne .Params.pretext "\n\n\n") }}
|
|
|
|
{{ partial "modal" (dict "title" .Title "content" .Params.pretext) }}
|
|
|
|
{{ end }}
|
2024-01-01 23:24:54 +01:00
|
|
|
<!--div id="wc-canvas"></div-->
|
|
|
|
<style>
|
|
|
|
.kh-parent {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
|
|
grid-template-rows: 1fr 1fr 1fr;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-content: space-between;
|
|
|
|
}
|
|
|
|
.kh-jahr {
|
|
|
|
grid-column: 2 / 4;
|
|
|
|
grid-row: 2 / 2;
|
|
|
|
justify-self: center;
|
|
|
|
// align-self: center;
|
|
|
|
rotate: -25deg;
|
|
|
|
color: #ffbc3b;
|
|
|
|
margin: 0
|
|
|
|
}
|
|
|
|
.kh-jahr-active {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.kh-jahr-active:hover {
|
|
|
|
text-decoration: 3px underline;
|
|
|
|
}
|
|
|
|
.kh-jahr-inner {
|
|
|
|
font-size: 3em;
|
|
|
|
}
|
|
|
|
.kh-0 {
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
grid-row: 1 / 2;
|
|
|
|
}
|
|
|
|
.kh-1 {
|
|
|
|
grid-column: 3 / 5;
|
|
|
|
grid-row: 3 / 4;
|
|
|
|
}
|
|
|
|
.kh-2 {
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
grid-row: 3 / 4;
|
|
|
|
}
|
|
|
|
.kh-3 {
|
|
|
|
grid-column: 3 / 5;
|
|
|
|
grid-row: 1 / 2;
|
|
|
|
}
|
|
|
|
.kh {
|
|
|
|
color: #1a1a37;
|
|
|
|
text-align: center;
|
|
|
|
align-self: center;
|
|
|
|
hyphens: manual;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.kh:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
@media (min-width: 1200px) {
|
|
|
|
.kh-inner {
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<div class="kh-parent">
|
|
|
|
<div class="kh-jahr h1 {{ if and .Params.pretext (ne .Params.pretext "\n\n\n") }}kh-jahr-active" onclick="$('{{ print `#` (md5 .Title) }}').modal('show')"{{ else }}"{{ end }}><div class="kh-jahr-inner">{{ .Title }}</div></div>
|
|
|
|
{{ $topics := slice }}
|
|
|
|
{{ range .Params.topics }}
|
|
|
|
{{ $topics = $topics | append (dict "titleLength" (len .title) "topic" .) }}
|
2023-07-29 13:16:25 +02:00
|
|
|
{{ end }}
|
2024-01-01 23:24:54 +01:00
|
|
|
|
|
|
|
{{ range $id, $topic := sort $topics "titleLength" "desc" }}
|
|
|
|
<div class="kh kh-{{ $id }} h3" onclick="{{ if not $topic.topic.superhaufen.enable }}$('{{ print `#` (md5 $topic.topic.title) }}').modal('show'){{ else }}window.location = '{{ print (`/superhaufen/` | relURL ) ($topic.topic.superhaufen.link | urlize) }}'{{ end }}"><div class="kh-inner">{{ $topic.topic.title | safeHTML }}</div></div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--script>
|
2023-07-29 13:16:25 +02:00
|
|
|
WordCloud(
|
|
|
|
document.getElementById('wc-canvas'),
|
|
|
|
{
|
|
|
|
click: function (item) {
|
2023-08-01 21:44:43 +02:00
|
|
|
if (item[2] != null) {
|
|
|
|
if (item[3]) {
|
2023-07-29 13:16:25 +02:00
|
|
|
window.location.href = "{{ `/superhaufen/` | relURL }}" + item[2];
|
|
|
|
} else {
|
2024-01-01 23:24:54 +01:00
|
|
|
;
|
2023-07-29 13:16:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
color: function (word, weight) {
|
|
|
|
return (weight === 200) ? '#ffbc3b' : '#1a1a37';
|
|
|
|
},
|
|
|
|
/* hover: function(item, dimension, event) {
|
|
|
|
item && item[2] ? event.target.style.textDecorationLine = "underline" : null
|
|
|
|
},*/
|
|
|
|
fontFamily: 'Ubuntu, sans-serif',
|
|
|
|
fontWeight: 700,
|
2023-08-01 21:44:43 +02:00
|
|
|
list: JSON.parse("{{ $topics | jsonify }}").map(obj => {
|
|
|
|
return [obj.Title, obj.Size, obj.ID ? obj.ID : null, obj.Superhaufen ? true : false]
|
|
|
|
}),
|
2023-07-29 13:16:25 +02:00
|
|
|
shrinkToFit: true,
|
|
|
|
gridSize: 50,
|
|
|
|
rotateRatio: 0,
|
|
|
|
shuffle: false,
|
|
|
|
shape: "square",
|
|
|
|
ellipticity: 1,
|
|
|
|
clearCanvas: true
|
|
|
|
}
|
|
|
|
);
|
2024-01-01 23:24:54 +01:00
|
|
|
</script-->
|
2023-07-29 13:16:25 +02:00
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ end }}
|