From ac7b17c61370cf0b2982180b5907122e5a785817 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sun, 5 Mar 2023 21:33:21 +0100 Subject: [PATCH] add search, fix #210 --- .drone.dev.yml | 15 ++++++++++++ .drone.yml | 30 +++++++++++++++++++++++ layouts/_default/forms.html | 2 +- layouts/_default/ganztagsangebote.html | 2 +- layouts/_default/post.html | 2 +- layouts/_default/schulchronik.html | 2 +- layouts/_default/wettbewerbe.html | 2 +- layouts/partials/footer.html | 2 +- layouts/partials/head.html | 34 ++++++++++++++++++++++++++ layouts/partials/header.html | 14 +++++++---- layouts/partials/opengraph.html | 8 +++--- layouts/partials/page-header.html | 2 +- 12 files changed, 99 insertions(+), 16 deletions(-) diff --git a/.drone.dev.yml b/.drone.dev.yml index 92224368..7e8a9b9d 100644 --- a/.drone.dev.yml +++ b/.drone.dev.yml @@ -32,6 +32,21 @@ steps: recursive: true delete: true + - name: search index + image: appleboy/drone-ssh + settings: + host: + - cantorgymnasium.de + username: web-push + key: + from_secret: ssh_key + port: + from_secret: ssh_port + command_timeout: 1m + script: + - /opt/data/webdata/gcg-website-dev/ + - pagefind --source=. + trigger: branch: - master diff --git a/.drone.yml b/.drone.yml index 9afc768e..bcff1c5f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,6 +32,21 @@ steps: recursive: true delete: true + - name: search index + image: appleboy/drone-ssh + settings: + host: + - cantorgymnasium.de + username: web-push + key: + from_secret: ssh_key + port: + from_secret: ssh_port + command_timeout: 1m + script: + - /opt/data/webdata/gcg-website/ + - pagefind --source=. + - name: notification image: appleboy/drone-telegram settings: @@ -90,6 +105,21 @@ steps: recursive: true delete: true + - name: search index + image: appleboy/drone-ssh + settings: + host: + - cantorgymnasium.de + username: web-push + key: + from_secret: ssh_key + port: + from_secret: ssh_port + command_timeout: 1m + script: + - /opt/data/webdata/gcg-website-test/ + - pagefind --source=. + trigger: branch: - master diff --git a/layouts/_default/forms.html b/layouts/_default/forms.html index 7d26a993..ee1cec68 100644 --- a/layouts/_default/forms.html +++ b/layouts/_default/forms.html @@ -3,5 +3,5 @@ {{ .Title }}

{{ .Summary | truncate 100 }}

-
{{ i18n "read_more"}}
+
{{ i18n "read_more"}}
diff --git a/layouts/_default/ganztagsangebote.html b/layouts/_default/ganztagsangebote.html index 4b6dca48..eded84ac 100644 --- a/layouts/_default/ganztagsangebote.html +++ b/layouts/_default/ganztagsangebote.html @@ -7,6 +7,6 @@
  • {{ .Params.Class }}

  • {{ .Title | truncate 20 }}

    - {{ i18n "show_more"}} + {{ i18n "show_more"}} diff --git a/layouts/_default/post.html b/layouts/_default/post.html index 09417c1b..36bad2d1 100644 --- a/layouts/_default/post.html +++ b/layouts/_default/post.html @@ -8,6 +8,6 @@

    {{ .Title | truncate 20 }}

    {{ .Summary | truncate 100 }}

    - {{ i18n "read_more" }} + {{ i18n "read_more" }} diff --git a/layouts/_default/schulchronik.html b/layouts/_default/schulchronik.html index 6811b0ff..b0014542 100644 --- a/layouts/_default/schulchronik.html +++ b/layouts/_default/schulchronik.html @@ -1,6 +1,6 @@
    diff --git a/layouts/_default/wettbewerbe.html b/layouts/_default/wettbewerbe.html index 7e618132..b3039898 100644 --- a/layouts/_default/wettbewerbe.html +++ b/layouts/_default/wettbewerbe.html @@ -5,6 +5,6 @@
  • {{ .Params.Category }}

  • {{ .Title | truncate 20 }}

    - {{ i18n "read_more"}} + {{ i18n "read_more"}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 5cf02bb7..a3ce7697 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,4 @@ -