From 669ff1f88b6e6a3be2a87aaa6a764a4672c7019e Mon Sep 17 00:00:00 2001 From: Barne Kleinen Date: Mon, 3 Jul 2023 12:58:25 +0200 Subject: [PATCH] semester-select debug and theme update --- content/debug/ws11/_index.md | 8 +++++ layouts/_default/projects_list_debug.html | 36 +++++++++++++++++------ themes/showtime-theme-2021 | 2 +- 3 files changed, 36 insertions(+), 10 deletions(-) create mode 100644 content/debug/ws11/_index.md diff --git a/content/debug/ws11/_index.md b/content/debug/ws11/_index.md new file mode 100644 index 000000000..0dbd8d7e9 --- /dev/null +++ b/content/debug/ws11/_index.md @@ -0,0 +1,8 @@ ++++ +title = "debug_subpage" +full_title = "Debug page for Selection select" +layout = "projects_list_debug" +weight = 20222 ++++ + +This is for debug only and can be deleted. \ No newline at end of file diff --git a/layouts/_default/projects_list_debug.html b/layouts/_default/projects_list_debug.html index af640da97..e436d7dc3 100644 --- a/layouts/_default/projects_list_debug.html +++ b/layouts/_default/projects_list_debug.html @@ -25,23 +25,41 @@

-

all these work on localhost:

+

all these work on localhost: +{{ $path_prefix := "/" }} +{{ $path_prefix_inverse := "" }} +{{ if (eq .Site.BaseURL .Site.Params.Production_site) }} +Production Site Detected +{{ $path_prefix = "" }} +{{ $path_prefix_inverse = "/" }} +{{ else }} +Preview Site Detected +{{ end }} +{{ $path := "/debug"}} +{{ if eq .Title "debug_subpage"}} + {{ $path = "/debug/ws11"}} +{{ end }} +
+ $path: [{{- $path -}}] +

+ +{{ "/deploy/ws" | replaceRE "^/" $path_prefix}}
the original one: diff --git a/themes/showtime-theme-2021 b/themes/showtime-theme-2021 index a74142e84..028a1c56a 160000 --- a/themes/showtime-theme-2021 +++ b/themes/showtime-theme-2021 @@ -1 +1 @@ -Subproject commit a74142e84fe4b83b3c8e45fdc968f398ae7e91fb +Subproject commit 028a1c56a8b8d09ba1b1949a552bc53efc15d8b8