Skip to content

Commit

Permalink
Fix grid schedule URLs
Browse files Browse the repository at this point in the history
Pipe input through relURL so that local and kcd links work.
  • Loading branch information
Adam Bark committed Apr 10, 2024
1 parent 87d60a9 commit e7c9ab0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/room-schedule.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
{{ $end_row := add (mul (add (sub .end_hour $start_hour) (div .end_minute 60.0)) $rows_per_hour) 2 }}

<div class="schedule-entry" style="grid-row: {{ $start_row }}/{{ $end_row }}; grid-column: 2">
<div class="speaker-name"><a href="/{{ .speaker_link }}">{{ .speaker }}</a></div>
<div class="talk-subject"><a href="/{{ .talk_link }}">{{ .subject }}</a></div>
<div class="speaker-name"><a href="{{ .speaker_link | relURL }}">{{ .speaker }}</a></div>
<div class="talk-subject"><a href="{{ .talk_link | relURL }}">{{ .subject }}</a></div>
<div class="talk-time">{{ .time }}</div>
</div>
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/schedule.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
{{ $end_row := add (mul (add (sub .end_hour $start_hour) (div .end_minute 60.0)) $rows_per_hour) 2 }}

<div class="schedule-entry" style="grid-row: {{ $start_row }}/{{ $end_row }}; grid-column: {{ if eq .column -1 }}2/7{{ else }}{{ .column }}{{ end }}">
<div class="speaker-name"><a href="/{{ .speaker_link }}">{{ .speaker }}</a></div>
<div class="talk-subject"><a href="/{{ .talk_link }}">{{ .subject }}</a></div>
<div class="speaker-name"><a href="{{ .speaker_link | relURL}}">{{ .speaker }}</a></div>
<div class="talk-subject"><a href="{{ .talk_link | relURL }}">{{ .subject }}</a></div>
<div class="talk-time">{{ .time }}</div>
</div>
{{ end }}
Expand Down

0 comments on commit e7c9ab0

Please sign in to comment.