1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-05-18 15:44:25 -04:00

finally remove every trace of AMP 🥳 (#415)

This commit is contained in:
2021-06-01 07:52:49 -04:00
committed by GitHub
parent 4bb5841ac1
commit 3fa058ee76
58 changed files with 54 additions and 831 deletions
-19
View File
@@ -1,19 +0,0 @@
{{ partial "amp/head" . }}
<article class="layout layout-etc">
{{ with .OutputFormats.Get "html" }}
<div id="meta">
<a href="{{ .Permalink }}" title="View Full Version">View Full Version</a>
</div>
{{ end }}
{{ with .OutputFormats.Get "html" }}
<h1 class="title"><a href="{{ .Permalink }}">{{ $.Title | markdownify }}</a></h1>
{{ end }}
<div id="content">
{{ .Content }}
</div>
</article>
{{ partial "amp/foot" . }}
-17
View File
@@ -1,17 +0,0 @@
{{ partial "amp/head" . }}
<article class="layout layout-single">
<div id="meta">
<span title="{{ .Date.Format "Mon, Jan 2 2006 3:04:05 PM MST" }}">{{ .Date.Format "January 2, 2006" }}</span>{{ with .OutputFormats.Get "html" }}<span class="dash"></span><a href="{{ .Permalink }}" title="View Full Version">View Full Version</a>{{ end }}
</div>
{{ with .OutputFormats.Get "html" }}
<h1 class="title"><a href="{{ .Permalink }}">{{ $.Title | markdownify }}</a></h1>
{{ end }}
<div id="content">
{{ .Content }}
</div>
</article>
{{ partial "amp/foot" . }}
-28
View File
@@ -1,28 +0,0 @@
{{ partial "amp/head" . }}
<article class="layout layout-video">
{{ with .OutputFormats.Get "html" }}
<h1 class="title"><a href="{{ .Permalink }}">{{ $.Title | markdownify }}</a></h1>
{{ end }}
<amp-video
layout="responsive"
width="{{ .Site.Params.Theme.maxWidth }}"
height="530"
{{ with .Resources.GetMatch "thumb.*" }}poster="{{ .Permalink }}"{{ end }}
controls>
{{ with .Page.Resources.GetMatch "*.webm" }}<source src="{{ .Permalink }}" type="video/webm">{{ end }}
{{ with .Page.Resources.GetMatch "*.mp4" }}<source src="{{ .Permalink }}" type="video/mp4">{{ end }}
{{ with .Page.Resources.GetMatch "*.ogg" }}<source src="{{ .Permalink }}" type="video/ogg">{{ end }}
{{ with .Page.Resources.GetMatch "*.vtt" }}<track src="{{ .Permalink }}" kind="captions" label="English" srclang="en" default>{{ end }}
<div fallback>
<p>Your browser does not support HTML5 video. {{ with .Page.Resources.GetMatch "*.mp4" }}<a href="{{ .Permalink }}">Load the .mp4 video directly.</a>{{ end }}</p>
</div>
</amp-video>
{{ .Content }}
</article>
{{ partial "amp/foot" . }}