1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-12-03 04:18:57 -05: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

View File

@@ -1,8 +0,0 @@
<amp-iframe
layout="responsive"
width="1200"
height="{{ with .Get "height" }}{{ . }}{{ else }}500{{ end }}"
scrolling="no"
src="https://codepen.io/{{ .Get "username" }}/embed/{{ .Get "id" }}/?theme-id=light&amp;default-tab={{ .Get "left-tab" }}{{ with .Get "right-tab" }},{{ . }}{{ end }}"
sandbox="allow-scripts allow-same-origin allow-popups">
</amp-iframe>

View File

@@ -1 +0,0 @@
<p><a href="https://codepen.io/{{ .Get "username" }}/pen/{{ .Get "id" }}" target="_blank" rel="noopener">Open this CodePen in a new window.</a></p>

View File

@@ -0,0 +1 @@
codepen.rss.xml

View File

@@ -1,6 +0,0 @@
<amp-facebook
width="552"
height="310"
layout="responsive"
data-href="{{ .Get "url" }}">
</amp-facebook>

View File

@@ -1,4 +0,0 @@
{{- $url := printf "https://www.facebook.com/plugins/post/oembed.json/?omitscript=1&url=%s" (.Get "url" | urlize) -}}
{{- $json := getJSON $url -}}
{{ $json.html | safeHTML }}

View File

@@ -0,0 +1 @@
facebook.rss.xml

View File

@@ -1,3 +0,0 @@
<p class="center">
<a href="https://github.com/{{ .Get "username" }}/{{ with .Get "repo" }}{{ . }}{{ end }}" target="_blank" rel="noopener">View on GitHub.</a>
</p>

View File

@@ -1 +0,0 @@
<p><a href="https://github.com/{{ .Get "username" }}/{{ .Get "repo" }}">Star {{ .Get "username" }}/{{ .Get "repo" }} on GitHub</a> &mdash; <a href="https://github.com/{{ .Get "username" }}/{{ .Get "repo" }}/issues">Issues for {{ .Get "username" }}/{{ .Get "repo" }} on GitHub</a></p>

View File

@@ -0,0 +1 @@
gh-buttons.rss.xml

View File

@@ -1,6 +0,0 @@
<amp-gist
data-gistid="{{ .Get "id" }}"
{{ with .Get "file" }}data-file="{{ . }}"{{ end }}
layout="fixed-height"
height="500">
</amp-gist>

View File

@@ -1 +0,0 @@
<p><a href="https://gist.github.com/{{ .Get "id" }}" target="_blank" rel="noopener">Open this GitHub Gist in a new window.</a></p>

View File

@@ -0,0 +1 @@
gist.rss.xml

View File

@@ -1,8 +0,0 @@
<amp-iframe
layout="responsive"
src="{{ .Get "src" }}"
{{ with .Get "width" }}width="{{ . }}"{{ end }}
{{ with .Get "height" }}height="{{ . }}"{{ end }}
{{ with .Get "title" }}title="{{ . }}"{{ end }}
{{ with .Get "sandbox" }}sandbox="{{ . }}"{{ end }}>
</amp-iframe>

View File

@@ -1 +0,0 @@
<p><a href="{{ .Get "src" }}" target="_blank" rel="noopener">Open frame in a new window.</a></p>

View File

@@ -0,0 +1 @@
iframe.rss.xml

View File

@@ -1,16 +0,0 @@
{{- $optimized := partial "functions/optimize-image" . -}}
<p class="image">
{{ with .Get "link" }}<a href="{{ . }}"{{ if strings.HasPrefix . "http" }} target="_blank" rel="noopener"{{ end }}>{{ end }}
<amp-img
{{- with .Get "alt" }} alt="{{ . | safeHTML }}"{{ else }}
{{- with .Inner }} alt="{{ . | $.Page.RenderString | plainify | safeHTML }}"{{ end }}{{ end }}
src="{{ $optimized.Permalink }}"
width="{{ $optimized.Width }}"
height="{{ $optimized.Height }}"
layout="intrinsic">
</amp-img>
{{ if .Get "link" }}</a>{{ end }}
</p>
{{ with .Inner }}<p class="caption">{{ . | $.Page.RenderString | safeHTML }}</p>{{ end }}

View File

@@ -1,10 +0,0 @@
{{- $optimized := partial "functions/optimize-image" . -}}
<p align="center">
{{ with .Get "link" }}<a href="{{ . }}">{{ end }}
<img src="{{ $optimized.Permalink }}" width="{{ $optimized.Width }}" height="{{ $optimized.Height }}"
{{- with .Get "alt" }} alt="{{ . | safeHTML }}"{{ end }}
{{- with .Inner }} alt="{{ . | $.Page.RenderString | plainify | safeHTML }}"{{ end }}>
{{ if .Get "link" }}</a>{{ end }}
{{ with .Inner }}<br>{{ . | $.Page.RenderString | safeHTML }}{{ end -}}
</p>

View File

@@ -0,0 +1 @@
image.rss.xml

View File

@@ -1,7 +0,0 @@
<amp-instagram
data-shortcode="{{ .Get "id" }}"
data-captioned
width="500"
height="500"
layout="responsive">
</amp-instagram>

View File

@@ -1 +0,0 @@
<p><a href="https://www.instagram.com/p/{{ .Get "id" }}" target="_blank" rel="noopener">View this image on Instagram.</a></p>

View File

@@ -0,0 +1 @@
instagram.rss.xml

View File

@@ -1,9 +0,0 @@
<amp-twitter
width="375"
height="472"
layout="responsive"
data-tweetid="{{ index (last 1 (split (index .Params 0) "/")) 0 }}"
data-lang="en"
data-align="center"
data-dnt="true">
</amp-twitter>

View File

@@ -1,4 +0,0 @@
{{- $url := printf "https://publish.twitter.com/oembed?lang=en&omit_script=true&dnt=true&align=center&url=%s" (index .Params 0 | safeURL) -}}
{{- $json := getJSON $url -}}
{{ $json.html | safeHTML }}

View File

@@ -0,0 +1 @@
tweet.rss.xml

View File

@@ -1,18 +0,0 @@
<amp-video
layout="responsive"
width="{{ with .Get "width" }}{{ . }}{{ else }}{{ .Site.Params.Theme.maxWidth }}{{ end }}"
height="{{ with .Get "height" }}{{ . }}{{ else }}600{{ end }}"
{{- with .Page.Resources.GetMatch (.Get "poster") }} poster="{{ .Permalink }}"{{ end }}
{{- if .Get "autoplay" }} autoplay{{ end }}
{{- if .Get "loop" }} loop{{ end }}
{{- if ne (.Get "nocontrols") "1" }} controls{{ end }}>
{{ with .Page.Resources.GetMatch (.Get "webm") }}<source src="{{ .Permalink }}" type="video/webm">{{ end }}
{{ with .Page.Resources.GetMatch (.Get "mp4") }}<source src="{{ .Permalink }}" type="video/mp4">{{ end }}
{{ with .Page.Resources.GetMatch (.Get "ogg") }}<source src="{{ .Permalink }}" type="video/ogg">{{ end }}
{{ with .Page.Resources.GetMatch (.Get "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 (.Get "mp4") }}<a href="{{ .Permalink }}">Load the .mp4 video directly.</a>{{ end }}</p>
</div>
</amp-video>

View File

@@ -1 +0,0 @@
<p>Your browser does not support HTML5 video. {{ with .Page.Resources.GetMatch (.Get "mp4") }}<a href="{{ .Permalink }}">Click to open the .mp4 video directly.</a>{{ end }}</p>

View File

@@ -0,0 +1 @@
video.rss.xml

View File

@@ -1,6 +0,0 @@
<amp-vimeo
data-videoid="{{ .Get "id" }}"
layout="responsive"
width="500"
height="281">
</amp-vimeo>

View File

@@ -1 +0,0 @@
<p><a href="https://vimeo.com/{{ .Get "id" }}" target="_blank" rel="noopener">Watch this video on Vimeo.</a></p>

View File

@@ -0,0 +1 @@
vimeo.rss.xml

View File

@@ -1,8 +0,0 @@
<p class="center">
<amp-youtube
data-videoid="{{ index .Params 0 }}"
layout="responsive"
width="480"
height="270">
</amp-youtube>
</p>

View File

@@ -1 +0,0 @@
<p><a href="https://www.youtube.com/watch?v={{ index .Params 0 }}" target="_blank" rel="noopener">Watch this video on YouTube.</a></p>

View File

@@ -0,0 +1 @@
youtube.rss.xml