Skip to content

Commit

Permalink
TEST - sry
Browse files Browse the repository at this point in the history
  • Loading branch information
cagix committed Oct 14, 2024
1 parent 6b8a3cc commit 429d0a8
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/install-relearn.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

## Versions
export RELEARN="6.4.1"
export RELEARN="7.0.0"
# set XDG_DATA_HOME externally

## Hugo Relearn Theme: https://github.com/McShelby/hugo-theme-relearn/releases/latest/
Expand Down
43 changes: 43 additions & 0 deletions hugo/hugo-lecture/layouts/assignment/views/article.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{- $page := .page }}
{{- $content := .content }}
{{- with $page }}
<article class="default">
{{ partial "heading-pre.html" . }}<h1>{{ .Title }}</h1>{{ partial "heading-post.html" . }}


{{ $topic := .Page.File.TranslationBaseName }}

{{ $schedule := .Site.Data.schedule }}

{{ $due := "" }}
{{ range $schedule }}
{{ range index . "assignment" }}
{{ if eq ($topic) (index . "topic") }}
{{ with index . "due" }}{{ $due = . }}{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ $points := .Params.points }}


{{ if .Params.sketch }}
{{ partial "sketch.html" . }}
{{ else }}
{{ if and $points $due}}
<p><strong>{{- printf "(%s; %s)" $points $due -}}</strong></p>
{{ else if $points }}
<p><strong>{{- printf "(%s)" $points -}}</strong></p>
{{ else if $due }}
<p><strong>{{- printf "(%s)" $due -}}</strong></p>
{{ else }}
{{ end }}

{{ $content | safeHTML }}
{{ end }}


<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
{{- end }}
26 changes: 26 additions & 0 deletions hugo/hugo-lecture/layouts/lecture-bc/views/article.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- $page := .page }}
{{- $content := .content }}
{{- with $page }}
<article class="default">
{{ partial "heading-pre.html" . }}<h1>{{ .Title }}</h1>{{ partial "heading-post.html" . }}


{{ if .Params.sketch }}
{{ partial "sketch.html" . }}
{{ else }}
{{ .Scratch.Set "attachments_title" "Annotierte Folien" }}
{{ partial "attachments.html" . }}

{{ $content | safeHTML }}

{{ partial "bib.html" . }}
{{ partial "outcomes.html" . }}
{{ partial "assignments.html" . }}
{{ end }}


<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
{{- end }}
46 changes: 46 additions & 0 deletions hugo/hugo-lecture/layouts/lecture-cg/views/article.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{{- $page := .page }}
{{- $content := .content }}
{{- with $page }}
<article class="default">
{{ partial "heading-pre.html" . }}<h1>{{ .Title }}</h1>{{ partial "heading-post.html" . }}


{{ if .Params.sketch }}
{{ partial "sketch.html" . }}
{{ else }}
{{ partial "tldr.html" . }}

{{ .Scratch.Set "videos_params" .Params.youtube }}
{{ .Scratch.Set "videos_title" "Videos (YouTube)" }}
{{ .Scratch.Set "videos_linktext" "Direkt-Link YouTube" }}
{{ partial "videos.html" . }}

{{ .Scratch.Set "videos_params" .Params.fhmedia }}
{{ .Scratch.Set "videos_title" "Videos (HSBI-Medienportal)" }}
{{ .Scratch.Set "videos_linktext" "Direkt-Link HSBI-Medienportal" }}
{{ partial "videos.html" . }}

{{ .Scratch.Set "videos_params" .Params.tibav }}
{{ .Scratch.Set "videos_title" "Videos (TIB AV-Portal)" }}
{{ .Scratch.Set "videos_linktext" "Direkt-Link TIB AV-Portal" }}
{{ partial "videos.html" . }}

{{ .Scratch.Set "attachments_title" "Slides" }}
{{ partial "attachments.html" . }}

{{ partial "outcomes.html" . }}

{{ $content | safeHTML }}

{{ partial "quizzes.html" . }}
{{ partial "challenges.html" . }}
{{ partial "assignments.html" . }}
{{ partial "bib.html" . }}
{{ end }}


<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
{{- end }}
35 changes: 35 additions & 0 deletions hugo/hugo-lecture/layouts/lecture-cy/views/article.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{{- $page := .page }}
{{- $content := .content }}
{{- with $page }}
<article class="default">
{{ partial "heading-pre.html" . }}<h1>{{ .Title }}</h1>{{ partial "heading-post.html" . }}


{{ if .Params.sketch }}
{{ partial "sketch.html" . }}
{{ else }}
{{ .Scratch.Set "videos_params" .Params.youtube }}
{{ .Scratch.Set "videos_title" "Videos" }}
{{ .Scratch.Set "videos_linktext" "Direkt-Link YouTube" }}
{{ partial "videos.html" . }}

{{ .Scratch.Set "attachments_title" "Folien" }}
{{ partial "attachments.html" . }}

<div class="recap">
{{ $content | safeHTML }}
</div>

{{ partial "assignments.html" . }}
{{ partial "outcomes.html" . }}
{{ partial "quizzes.html" . }}
{{ partial "challenges.html" . }}
{{ partial "bib.html" . }}
{{ end }}


<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
{{- end }}

0 comments on commit 429d0a8

Please sign in to comment.