Skip to content

Commit

Permalink
semester-select debug and theme update
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleinen committed Jul 3, 2023
1 parent 4eff571 commit 669ff1f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 10 deletions.
8 changes: 8 additions & 0 deletions content/debug/ws11/_index.md
Original file line number Diff line number Diff line change
@@ -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.
36 changes: 27 additions & 9 deletions layouts/_default/projects_list_debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,41 @@ <h1>
<div class="spacer"></div>


<p>all these work on localhost:</p>
<p>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 }}
<br/>
$path: [{{- $path -}}]
</p>

{{ "/deploy/ws" | replaceRE "^/" $path_prefix}}

<div class="select-wrapper">
<select name="semester" id = "semester-select">
<option value="/debug#1">/debug#1</option>
<option value="debug#2">debug#2</option>
<option value="../debug#7">../debug#7</option>
<option value="#">------</option>
<option value="{{ $path | replaceRE "^/" $path_prefix }}#0" >IMPLEMENTED#0</option>
<option value="..{{$path}}#1">..{{$path}}#1</option>
<option value="{{$path}}#2">{{$path}}#2</option>
<option value="../{{$path}}#7">../{{$path}}#7</option>
<option value="{{ .RelPermalink }}#3">{{ .RelPermalink }}#3(.RelPermalink)</option>
<option value="{{ .Permalink }}?4">{{ .Permalink }}?4(.Permalink)</option>
<option value="{{ "/debug" | relURL }}?5">"debug" | relURL ?5</option>
<option value="{{ "/{{$path}}" | relURL }}?5">"{{$path}}" | relURL ?5</option>
<option value="{{ .Title | relURL }}?8">.Title | relURL ?8 (original version)</option>
<option value="{{ "/debug" | absURL }}?6">"debug" | absURL ?6 </option>
<option value="{{ "/{{$path}}" | absURL }}?6">"{{$path}}" | absURL ?6 </option>
<option value="/archive/ss22/">/archive/ss22/</option>
<option value="archive/ss22/">archive/ss22/</option>
<option value="archive/ss22/">archive/ss22/</option>


<option value="../archive/ss22/">../archive/ss22/</option>
</select>
</div>
the original one:
Expand Down
2 changes: 1 addition & 1 deletion themes/showtime-theme-2021

0 comments on commit 669ff1f

Please sign in to comment.