mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 08:18:28 -04:00
- de-personalize the theme as much as possible, moving personal info into config.toml parameters - extract hard-coded content out layouts and into actual /content (especially home page and all of its assets) - include full text of posts in RSS feed (aka making the world a better place) - use abstract layout for both video pages (/leo and /birthday)
22 lines
1.1 KiB
HTML
22 lines
1.1 KiB
HTML
{{ partial "header.html" . }}
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
<video poster="{{ with .Resources.GetMatch "images/*.png" }}{{ .Permalink }}{{ end }}" controls crossorigin playsinline preload="none">
|
|
<!-- Video files -->
|
|
{{ with .Resources.GetMatch "*.mp4" }}<source src="{{ .Permalink }}" type="video/mp4">{{ end }}
|
|
{{ with .Resources.GetMatch "*.webm" }}<source src="{{ .Permalink }}" type="video/webm">{{ end }}
|
|
|
|
<!-- Caption files -->
|
|
{{ with .Resources.GetMatch "*.en.vtt" }}<track src="{{ .Permalink }}" kind="captions" label="English" srclang="en" default>{{ end }}
|
|
|
|
<!-- Fallback for browsers that don't support the <video> element -->
|
|
Your browser doesn't support HTML5 video. {{ with .Resources.GetMatch "*.mp4" }}<a href="{{ .Permalink }}">Click here to view the raw .mp4 video.</a>{{ end }}
|
|
</video>
|
|
<div>
|
|
<a class="no-underline" id="logo" href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}" aria-label="{{ .Site.Title }}">
|
|
{{ partial "logo.html" . }}
|
|
</a>
|
|
</div>
|
|
{{ .Content }}
|
|
{{ partial "footer.html" . }}
|