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:
@@ -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&default-tab={{ .Get "left-tab" }}{{ with .Get "right-tab" }},{{ . }}{{ end }}"
|
||||
sandbox="allow-scripts allow-same-origin allow-popups">
|
||||
</amp-iframe>
|
||||
@@ -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>
|
||||
1
layouts/shortcodes/codepen.atom.atom
Symbolic link
1
layouts/shortcodes/codepen.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
codepen.rss.xml
|
||||
@@ -1,6 +0,0 @@
|
||||
<amp-facebook
|
||||
width="552"
|
||||
height="310"
|
||||
layout="responsive"
|
||||
data-href="{{ .Get "url" }}">
|
||||
</amp-facebook>
|
||||
@@ -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 }}
|
||||
1
layouts/shortcodes/facebook.atom.atom
Symbolic link
1
layouts/shortcodes/facebook.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
facebook.rss.xml
|
||||
@@ -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>
|
||||
@@ -1 +0,0 @@
|
||||
<p><a href="https://github.com/{{ .Get "username" }}/{{ .Get "repo" }}">Star {{ .Get "username" }}/{{ .Get "repo" }} on GitHub</a> — <a href="https://github.com/{{ .Get "username" }}/{{ .Get "repo" }}/issues">Issues for {{ .Get "username" }}/{{ .Get "repo" }} on GitHub</a></p>
|
||||
1
layouts/shortcodes/gh-buttons.atom.atom
Symbolic link
1
layouts/shortcodes/gh-buttons.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
gh-buttons.rss.xml
|
||||
@@ -1,6 +0,0 @@
|
||||
<amp-gist
|
||||
data-gistid="{{ .Get "id" }}"
|
||||
{{ with .Get "file" }}data-file="{{ . }}"{{ end }}
|
||||
layout="fixed-height"
|
||||
height="500">
|
||||
</amp-gist>
|
||||
@@ -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>
|
||||
1
layouts/shortcodes/gist.atom.atom
Symbolic link
1
layouts/shortcodes/gist.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
gist.rss.xml
|
||||
@@ -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>
|
||||
@@ -1 +0,0 @@
|
||||
<p><a href="{{ .Get "src" }}" target="_blank" rel="noopener">Open frame in a new window.</a></p>
|
||||
1
layouts/shortcodes/iframe.atom.atom
Symbolic link
1
layouts/shortcodes/iframe.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
iframe.rss.xml
|
||||
@@ -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 }}
|
||||
@@ -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>
|
||||
1
layouts/shortcodes/image.atom.atom
Symbolic link
1
layouts/shortcodes/image.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
image.rss.xml
|
||||
@@ -1,7 +0,0 @@
|
||||
<amp-instagram
|
||||
data-shortcode="{{ .Get "id" }}"
|
||||
data-captioned
|
||||
width="500"
|
||||
height="500"
|
||||
layout="responsive">
|
||||
</amp-instagram>
|
||||
@@ -1 +0,0 @@
|
||||
<p><a href="https://www.instagram.com/p/{{ .Get "id" }}" target="_blank" rel="noopener">View this image on Instagram.</a></p>
|
||||
1
layouts/shortcodes/instagram.atom.atom
Symbolic link
1
layouts/shortcodes/instagram.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
instagram.rss.xml
|
||||
@@ -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>
|
||||
@@ -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 }}
|
||||
1
layouts/shortcodes/tweet.atom.atom
Symbolic link
1
layouts/shortcodes/tweet.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
tweet.rss.xml
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
1
layouts/shortcodes/video.atom.atom
Symbolic link
1
layouts/shortcodes/video.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
video.rss.xml
|
||||
@@ -1,6 +0,0 @@
|
||||
<amp-vimeo
|
||||
data-videoid="{{ .Get "id" }}"
|
||||
layout="responsive"
|
||||
width="500"
|
||||
height="281">
|
||||
</amp-vimeo>
|
||||
@@ -1 +0,0 @@
|
||||
<p><a href="https://vimeo.com/{{ .Get "id" }}" target="_blank" rel="noopener">Watch this video on Vimeo.</a></p>
|
||||
1
layouts/shortcodes/vimeo.atom.atom
Symbolic link
1
layouts/shortcodes/vimeo.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
vimeo.rss.xml
|
||||
@@ -1,8 +0,0 @@
|
||||
<p class="center">
|
||||
<amp-youtube
|
||||
data-videoid="{{ index .Params 0 }}"
|
||||
layout="responsive"
|
||||
width="480"
|
||||
height="270">
|
||||
</amp-youtube>
|
||||
</p>
|
||||
@@ -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>
|
||||
1
layouts/shortcodes/youtube.atom.atom
Symbolic link
1
layouts/shortcodes/youtube.atom.atom
Symbolic link
@@ -0,0 +1 @@
|
||||
youtube.rss.xml
|
||||
Reference in New Issue
Block a user