Add Projects section with inverted pendulum and real-time interface pages
This commit is contained in:
1 parent
0097be4114
commit
0699938cd5
17 files changed
+357
No files matched your search
@@ -0,0 +1,12 @@
|
||||
{{- $src := .Get "src" | default (.Get 0) -}}
|
||||
{{- $caption := .Get "caption" -}}
|
||||
{{- $poster := .Get "poster" -}}
|
||||
{{- with .Page.Resources.GetMatch $src }}{{ $src = .RelPermalink }}{{ end -}}
|
||||
{{- with $poster }}{{ with $.Page.Resources.GetMatch . }}{{ $poster = .RelPermalink }}{{ end }}{{ end -}}
|
||||
<figure class="project-video">
|
||||
<video controls preload="metadata" playsinline{{ with $poster }} poster="{{ . }}"{{ end }}>
|
||||
<source src="{{ $src }}" type="video/mp4">
|
||||
Your browser does not support the video tag. <a href="{{ $src }}">Download the video</a>.
|
||||
</video>
|
||||
{{- with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
||||
</figure>
|
||||
Reference in new issue
Block a user