diff --git a/assets/js/search.js b/assets/js/search.js index 954153852..9f931c89b 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -30,6 +30,9 @@ const initSearch = () => { placeholder: placeholderText, search_label: searchLabelText, }, + ranking: { + termSimilarity: 6.0, + }, }); // Close keyboard when touching search results (mobile only) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0174bead4..baddeeec7 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,7 +1,7 @@ {{ define "main" }}
-

{{ .Title }}

+

{{ .Title }}

{{ .Content }} {{ range .Pages }} {{ partial "teaser.html" (dict "listview" "true" "page" .) }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9b90f0aba..d7d900c6c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,15 +1,16 @@ {{ define "main" }}
-

{{ .Title }}

+

{{ .Title }}

-
+
{{ .Content }}
diff --git a/layouts/booking/list.html b/layouts/booking/list.html index 7743b143e..69450700e 100644 --- a/layouts/booking/list.html +++ b/layouts/booking/list.html @@ -1,6 +1,6 @@ {{ define "main" }}
-

{{ .Title }}

+

{{ .Title }}

{{ .Content }}
    {{ range .Pages }} diff --git a/layouts/country/list.html b/layouts/country/list.html index 51e30b034..c7030feb8 100644 --- a/layouts/country/list.html +++ b/layouts/country/list.html @@ -1,6 +1,6 @@ {{ define "main" }}
    -

    {{ .Title }}

    +

    {{ .Title }}

    {{ .Content }}
    diff --git a/layouts/country/single.html b/layouts/country/single.html index 6003ca531..33134f9f4 100644 --- a/layouts/country/single.html +++ b/layouts/country/single.html @@ -9,7 +9,9 @@
    {{ partial "flag" (dict "country" .File.ContentBaseName "pagefind" true) }} -

    {{ .Title }}

    +

    + {{ .Title }} +

    {{ partial "updateDate.html" . }}
    diff --git a/layouts/generalinformation/list.html b/layouts/generalinformation/list.html index d17bb0752..6fd0e0ade 100644 --- a/layouts/generalinformation/list.html +++ b/layouts/generalinformation/list.html @@ -5,7 +5,9 @@
    -

    {{ .Title }}

    +

    + {{ .Title }} +

    {{ partial "updateDate.html" . }}
    diff --git a/layouts/news/list.html b/layouts/news/list.html index c345c143c..f7964b955 100644 --- a/layouts/news/list.html +++ b/layouts/news/list.html @@ -1,7 +1,7 @@ {{ define "main" }}
    -

    {{ .Title }}

    +

    {{ .Title }}

    {{ .Content }}
    {{ range .Pages }} diff --git a/layouts/news/single.html b/layouts/news/single.html index 14a61cb4e..ae53c6147 100644 --- a/layouts/news/single.html +++ b/layouts/news/single.html @@ -38,7 +38,9 @@ data-pagefind-body >
    -

    {{ .Title }}

    +

    + {{ .Title }} +

    {{ partial "updateDate.html" . }}
    diff --git a/layouts/operator/list.html b/layouts/operator/list.html index 13278453c..74ca9857e 100644 --- a/layouts/operator/list.html +++ b/layouts/operator/list.html @@ -1,6 +1,6 @@ {{ define "main" }}
    -

    {{ .Title }}

    +

    {{ .Title }}

    {{ .Content }}
      {{ range .Pages }} diff --git a/layouts/operator/single.html b/layouts/operator/single.html index 41e8248bf..a7ad62bca 100644 --- a/layouts/operator/single.html +++ b/layouts/operator/single.html @@ -6,7 +6,9 @@
      {{ partial "operator-logo" (dict "operator" .File.ContentBaseName "pagefind" true) }} -

      {{ .Title }}

      +

      + {{ .Title }} +

      {{ partial "updateDate.html" . }}