gcg-website/layouts/schulchronik/single.html
2023-01-03 11:16:40 +01:00

38 lines
1.5 KiB
HTML

{{ define "main" }}
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-12 mb-4">
<div id="wc-canvas" style="width: 800px;height: 800px;"></div>
<script>
function callback(item, dimension, event) {
console.log(item);
}
WordCloud(document.getElementById('wc-canvas'), { maxRotation: '90', minRotation: '-90', shape: "square", click: callback,list: [[ "{{.Params.Title}}", 100, "https://gcg.de"], ['Einführung des Modulkurses', 40], ['Umzug', 40], ['Wettbewerbserfolge', 40], ['Cantorpreis', 40], ['Teilnahme an der ersten Internationalen Junior Science Olympiade', 25]] } );
</script>
{{ .Content }}
</div>
{{ if .Params.Cantorpreisträger }}
<div class="col-12">
<h2 class="mb-3">{{ i18n "cantorpreisträger" }}</h2>
{{ range where (where .Site.RegularPages "Title" .Params.Title ) "Type" "=" "cantorpreis" }}
<div class="d-flex justify-content-between align-items-center flex-wrap">
<div class="media mb-2 mb-sm-0 align-items-center">
<img class="mr-4 img-fluid person-thumb-sm" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
<div class="media-body">
<h4 class="mt-0"><a href="{{ .Permalink }}">{{ .Params.Name }}</a></h4>
{{ .Description }}
</div>
</div>
</div>
{{ end }}
<div class="border-bottom border-primary mt-4"></div>
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}