complete style conversion, cleanups

This commit is contained in:
2023-06-11 21:13:11 +02:00
parent 074e7a8760
commit acafe3fdc4
63 changed files with 1098 additions and 1109 deletions

View File

@ -1,5 +1,5 @@
<footer data-pagefind-ignore>
<div class="footer bg-footer section border-bottom">
<div class="footer bg-footer section">
<div class="container">
<div class="row">
<div class="col-lg-3 col-sm-8 mb-5 mb-lg-0">
@ -67,11 +67,9 @@
<script src="{{ . | absURL }}"></script>
{{ end }}
{{ $script := resources.Get "js/script.js" | minify}}
{{ $script := resources.Get "js/script.js" | minify }}
<script src="{{ $script.Permalink }}"></script>
<script>
var lazyLoadInstance = new LazyLoad({
// Your custom settings go here
});
new LazyLoad();
</script>

View File

@ -11,8 +11,8 @@
<link rel="stylesheet" href="{{ . | absURL }}">
{{ end }}
{{ $styles := resources.Get "scss/style.scss" | toCSS }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
{{ $style := resources.Get "css/style.css" | minify }}
<link rel="stylesheet" href="{{ $style.Permalink }}" media="screen">
<link rel="shortcut icon" href="{{ `media/favicon.png` | absURL }}" type="image/x-icon">
<link rel="icon" href="{{ `media/favicon.png` | absURL }}" type="image/x-icon">
@ -46,7 +46,7 @@
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.cantorgymnasium.de/";
var u="https://analytics.cantorgymnasium.de/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];

View File

@ -1,4 +1,4 @@
<section class="section-sm">
<section class="section">
<div class="container">
{{ if (and .Params.image (ne .Params.image "/media/image.webp") ) }}
<div class="row">

View File

@ -27,7 +27,7 @@
</div>
</div>
{{ end }}
<div class="navigation w-100 {{ if .Site.Params.top_header }} top-hider {{ end }}">
<div class="navigation w-100">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark p-0">
@ -47,7 +47,7 @@
{{ if .HasChildren }}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
{{ .Name }}
{{ .Name | markdownify }}
</a>
<ul class="dropdown-menu">
{{ range .Children }}
@ -65,7 +65,7 @@
{{ end }}
{{ end }}
<li class="nav-item">
<div class="nav-link" onclick="$('#pagefind-search').modal('show');"><i class="mdi mdi-magnify"></i> Suche</button>
<div class="nav-link nav-search" onclick="$('#pagefind-search').modal('show');">Suche</button>
</li>
</ul>
@ -106,10 +106,10 @@
{{ if and $top_banner.enable }}
{{ if or (not $top_banner.temporarily.enable) (and $top_banner.temporarily.enable (and (le ($top_banner.temporarily.start_date | time.AsTime).Unix now.Unix ) (ge ($top_banner.temporarily.end_date | time.AsTime).Unix now.Unix))) }}
{{ with $top_banner }}
<div id="top-banner" class="p-3 top-banner" style="background:{{ .color }}" data-pagefind-ignore>
<div id="top-banner" class="p-3" style="background: {{ .color }}" data-pagefind-ignore>
<div class="container">
<div class="no-gutters align-items-center">
<div style="color:{{ .font_color }}"><b><i class="{{ .icon }}"></i> {{ .text | markdownify }}</b></div>
<div style="color: {{ .font_color }}"><b><i class="{{ .icon }}"></i> {{ .text | markdownify }}</b></div>
</div>
</div>
</div>

View File

@ -4,14 +4,14 @@
<section class="section bg-cover" data-background="{{ .bg_image | absURL }}">
<div class="container">
<div class="row">
<div class="col-lg-6 col-sm-4 position-relative success-video">
<div class="col-lg-6 col-sm-4 position-relative intro-video">
<a class="play-btn vb-video" href="{{ .video_link | safeURL }}" data-vbtype="video">
<i class="mdi mdi-play icon-md"></i>
</a>
</div>
<div class="col-lg-6 col-sm-8">
<div class="bg-white p-5">
<h2 class="section-title">{{ .title | markdownify }}</h2>
<h2 class="mb-4">{{ .title | markdownify }}</h2>
<p>{{ .content | markdownify }}</p>
</div>
</div>

View File

@ -4,11 +4,11 @@
<span class="d-block">{{ time.Format "Jan 2006" .date}}</span>
{{ with .enddate }}<br>bis {{ time.Format "2 Jan 2006" . }}{{ end }}
</div>
<div class="d-md-table-cell px-4 vertical-align-middle mb-4 mb-md-0 p-2">
<div class="d-md-table-cell px-4 align-middle mb-4 mb-md-0 p-2">
<p class="h4 mb-0 d-block">{{ .title }}</p>
</div>
{{ with .location }}
<div class="d-md-table-cell text-end pe-md-4 p-2 vertical-align-middle">
<div class="d-md-table-cell text-end pe-md-4 p-2 align-middle">
<p><i class="mdi mdi-map-marker-radius-outline icon-s text-primary me-2"></i>{{ . | markdownify }}</p>
</div>
{{ end }}