From 9544af57f38135fdbda58ad1564bbaa7fb38928a Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 29 Aug 2022 15:56:31 +0200 Subject: [PATCH] Disable zooming on schedule page, so mobile browsers respect `position: sticky` --- content/pages/schedule.md | 1 + layouts/_default/baseof.html | 2 ++ layouts/_default/nozoom.html | 8 ++++++++ 3 files changed, 11 insertions(+) create mode 100644 layouts/_default/nozoom.html diff --git a/content/pages/schedule.md b/content/pages/schedule.md index e4fca69..989ebd4 100644 --- a/content/pages/schedule.md +++ b/content/pages/schedule.md @@ -1,6 +1,7 @@ --- title: "Programm" slug: "schedule" +layout: nozoom menu: main: weight: 15 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d9a3305..ec18a80 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,7 +3,9 @@ +{{ block "viewport" . }} +{{ end }} diff --git a/layouts/_default/nozoom.html b/layouts/_default/nozoom.html new file mode 100644 index 0000000..4b0d91a --- /dev/null +++ b/layouts/_default/nozoom.html @@ -0,0 +1,8 @@ +{{ define "viewport" }} + +{{ end }} + +{{ define "main" }} +

{{ .Title }}

+{{ .Content }} +{{ end }}