finetune pagefind search options

This commit is contained in:
Denys Konovalov 2023-09-23 22:40:36 +02:00
parent 95cf16f6d2
commit aad78f1f41
22 changed files with 32 additions and 12 deletions

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
<div class="row">
<div class="col-lg-8">

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
<img src="{{ .Params.image | relURL }}" class="img-fluid w-100 mb-4">
<div class="content text-justify">

@ -1,5 +1,6 @@
{{ define "main" }}
<main data-pagefind-body>
<section class="section">
<div class="container">
{{ with .Params.image }}
@ -31,5 +32,6 @@
{{ end }}
{{ partial "info" . }}
</main>
{{ end }}

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
<form
action="https://php.cantorgymnasium.de/formtools/process.php"

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
<div class="row">
<div class="col-lg-8 mb-4 mb-lg-0">

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
<div class="content text-justify">
{{ .Content }}

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
{{ range .Pages }}
<div class="card mb-4">

@ -1,5 +1,6 @@
{{ define "main" }}
<main data-pagefind-body>
<section class="section">
<div class="container">
<div class="text-center">
@ -33,5 +34,6 @@
</div>
</div>
</section>
</main>
{{ end }}

@ -1,5 +1,6 @@
{{ define "main" }}
<main data-pagefind-body>
{{ partial "header-contest" . }}
<section class="section pt-0">
@ -12,5 +13,6 @@
</div>
</div>
</section>
</main>
{{ end }}

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
<img src="{{ .Params.Image | relURL }}" class="img-fluid w-100 mb-4">
<div class="content text-justify">

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
<div class="row">
<div class="col-sm-5 mb-4">

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
<h2 class="mb-4">{{ .Title }}</h2>
<div class="content text-justify">

@ -1,5 +1,6 @@
{{ define "main" }}
<main data-pagefind-body>
<section class="section">
<div class="container">
<img src="{{ .Params.image | relURL }}" class="img-fluid w-100 mb-4">
@ -29,5 +30,6 @@
</div>
</div>
</section>
</main>
{{ end }}

@ -1,5 +1,7 @@
{{ define "main" }}
<main data-pagefind-body>
{{ $data := .Site.Data }}
{{ if $data.homepage.slider.enable }}
@ -287,4 +289,6 @@
{{ end }}
{{ end }}
</main>
{{ end }}

@ -4,6 +4,7 @@
<script src="https://unpkg.com/leaflet@^1.7.1/dist/leaflet.js"></script>
<main data-pagefind-body>
<section class="section pb-0">
<div class="container">
<div class="row">
@ -61,5 +62,6 @@
});
</script>
</div>
</main>
{{ end }}

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
<div class="content text-justify">
{{ .Content }}

@ -1,5 +1,7 @@
{{ define "main" }}
<main data-pagefind-body>
{{ partial "tile-modals" . }}
</main>
{{ end }}

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<!-- TODO: everything -->
<div class="container">
{{ if or .Params.cantorpreisträger (where (where .Site.RegularPages "Title" (print "Abiturienten " .Params.Title ) ) "Type" "=" "abiturienten") }}

@ -1,5 +1,7 @@
{{ define "main" }}
<main data-pagefind-body>
{{ partial "tile-modals" . }}
</main>
{{ end }}

@ -1,6 +1,6 @@
{{ define "main" }}
<section class="section">
<section class="section" data-pagefind-body>
<div class="container">
<ul class="list-inline text-center filter-controls mb-4">
<li class="list-inline-item m-3 text-uppercase active" data-filter="all">Alle</li>

@ -1,5 +1,6 @@
{{ define "main" }}
<main data-pagefind-body>
{{ partial "header-contest" . }}
<section class="section pt-0">
@ -14,5 +15,6 @@
</div>
</div>
</section>
</main>
{{ end }}