Revamp challenge formatting
This commit is contained in:
parent
3370de5f33
commit
0ace49c317
82 changed files with 351 additions and 387 deletions
|
@ -115,6 +115,38 @@
|
|||
</div>
|
||||
<div class="content">
|
||||
{{- partial "content.html" . -}}
|
||||
{{ with .Params.song }}
|
||||
<p>This week's challenge is from the lyrics of
|
||||
{{ if .override }}
|
||||
{{ with .override }}
|
||||
{{ partial "content.html" (dict "Content" (markdownify .)) }}
|
||||
{{- end -}}
|
||||
{{ else }}
|
||||
{{ with .japanese }}{{ partial "content.html" (dict "Content" .) }}{{ end }}{{ if and .japanese .english }}/{{ end }}{{ with .english }}<em>{{ . }}</em>{{ end -}}
|
||||
{{ end -}}
|
||||
{{- with $.Params.youtube }} (<a href="https://www.youtube.com/watch?v={{ . }}" target="_blank">YouTube</a>){{ end -}}
|
||||
{{- with $.Params.spotify }} (<a href="https://open.spotify.com/track/{{ . }}" target="_blank">Spotify</a>){{ end -}}
|
||||
:</p>
|
||||
{{ end }}
|
||||
{{ with .Params.youtube }}
|
||||
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden">
|
||||
<iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0" src="https://www.youtube-nocookie.com/embed/{{ . }}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ with .Params.spotify }}
|
||||
<iframe src="https://open.spotify.com/embed/track/{{ . }}"
|
||||
width="100%"
|
||||
height="380"
|
||||
frameborder="0"
|
||||
allowtransparency="true"
|
||||
allow="encrypted-media"></iframe>
|
||||
{{ end }}
|
||||
{{ with .Params.translation }}
|
||||
<p>Translation{{ with .author }} by {{ . }}{{ end }}{{ with .site }} via <a href="{{ .link }}" target="_blank">{{ .name }}</a></p>{{ end }}
|
||||
{{ end }}
|
||||
{{ with .Params.suggester }}
|
||||
<p><em>This challenge was suggested by <strong>{{ . }}</strong> using the <code>-h suggest</code> command.</em></p>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue