Skip to content

Commit ec49526

Browse files
committed
Merge branch 'migrate-videos-to-hugo'
This topic branch lets Hugo process the `Documentation/Videos` part of the site. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 1a513a4 + db1650f commit ec49526

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

app/views/doc/watch.html.erb

Lines changed: 0 additions & 15 deletions
This file was deleted.

content/videos/_index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
section: "documentation"
3+
subsection: "videos"
4+
title: "Git - Videos"
5+
url: /videos.html
6+
aliases:
7+
- /videos/index.html
8+
---
9+
10+
<div id='main'>
11+
<h1>Videos</h1>
12+
{{< videos img_suffix="@2x" dimensions="width=\"294\" height=\"164\"" >}}
13+
</div>

layouts/_default/baseof.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ <h1>Redirecting&hellip;</h1>
7373
<div id="content">
7474
{{ if (eq .Page.Path "/docs") }}
7575
{{ partial "ref/index.html" . }}
76+
{{ else if isset .Params "video_title" }}
77+
<div id="main">
78+
<h1>{{ .Params.category }} Episode {{ .Params.episode }}</h1>
79+
<h2>{{ .Params.video_title }}</h2>
80+
81+
<div id="video-container">
82+
<iframe src="https://player.vimeo.com/video/{{ .Params.ext_id }}?title=0&amp;byline=0&amp;portrait=0&amp;color=f14e32" width="635" height="360" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
83+
</div>
84+
</div>
7685
{{ else if eq $section "about" }}
7786
<div id="main">
7887
<h1 data-pagefind-meta="title">About{{ if (isset .Params "subtitle") }} - {{ .Params.subtitle }}{{ end }}</h1>

0 commit comments

Comments
 (0)