2020-07-30 17:37:15 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
|
|
|
|
<section class="section-sm">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2020-09-13 09:59:08 +02:00
|
|
|
<div class="col-12 mb-4">
|
2023-01-03 11:55:46 +00:00
|
|
|
{{ range .Params.topics }}
|
|
|
|
<div id="{{ lower .id }}" class="modal">
|
|
|
|
<!-- Modal content -->
|
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title" id="exampleModalLongTitle">{{ .title }}</h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="content">
|
|
|
|
{{ .content | markdownify }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Params.pretext }}
|
|
|
|
<div id="pretext" class="modal">
|
|
|
|
<!-- Modal content -->
|
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title" id="exampleModalLongTitle">{{ .Params.title }}</h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="content">
|
|
|
|
{{ .Params.pretext | markdownify }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<div id="wc-canvas"></div>
|
|
|
|
{{ $topics := slice (slice .Params.Title 100 "pretext") }}
|
|
|
|
{{ range .Params.topics }}
|
|
|
|
{{ $topics = $topics | append (slice (slice .title 40 .id)) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ $topics = $topics | jsonify }}
|
|
|
|
<script>
|
|
|
|
WordCloud(
|
|
|
|
document.getElementById('wc-canvas'),
|
|
|
|
{
|
|
|
|
click: function (item) {
|
|
|
|
if (item[1] != 100 || (item[1] == 100 && item[2] == "pretext")) {
|
|
|
|
$('#' + item[2]).modal('show');
|
|
|
|
}
|
|
|
|
},
|
|
|
|
color: function (word, weight) {
|
|
|
|
return (weight === 100) ? '#ffbc3b' : '#1a1a37';
|
|
|
|
},
|
|
|
|
fontFamily: 'Fira Sans, serif',
|
|
|
|
fontWeight: 800,
|
|
|
|
list: JSON.parse({{ $topics }}),
|
|
|
|
shrinkToFit: true,
|
|
|
|
gridSize: 25,
|
|
|
|
rotateRatio: 0,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
</script>
|
2020-07-30 17:37:15 +02:00
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
{{ if .Params.Cantorpreisträger }}
|
|
|
|
<div class="col-12">
|
|
|
|
<h2 class="mb-3">{{ i18n "cantorpreisträger" }}</h2>
|
2020-08-07 21:08:46 +02:00
|
|
|
{{ range where (where .Site.RegularPages "Title" .Params.Title ) "Type" "=" "cantorpreis" }}
|
2020-07-30 17:37:15 +02:00
|
|
|
<div class="d-flex justify-content-between align-items-center flex-wrap">
|
|
|
|
<div class="media mb-2 mb-sm-0 align-items-center">
|
2022-03-19 10:21:45 +01:00
|
|
|
<img class="mr-4 img-fluid person-thumb-sm" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
|
2020-07-30 17:37:15 +02:00
|
|
|
<div class="media-body">
|
2020-08-07 21:08:46 +02:00
|
|
|
<h4 class="mt-0"><a href="{{ .Permalink }}">{{ .Params.Name }}</a></h4>
|
2020-07-30 17:37:15 +02:00
|
|
|
{{ .Description }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<div class="border-bottom border-primary mt-4"></div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ end }}
|