mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-27 12:56:03 -04:00
finally remove every trace of AMP 🥳 (#415)
This commit is contained in:
@@ -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" . }}
|
||||
@@ -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" . }}
|
||||
@@ -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" . }}
|
||||
@@ -7,15 +7,10 @@
|
||||
/site.webmanifest
|
||||
Content-Type: application/manifest+json
|
||||
|
||||
# AMP cache invalidation key requirements:
|
||||
# https://developers.google.com/amp/cache/update-cache#update-cache-guidelines
|
||||
/.well-known/amphtml/apikey.pub
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
|
||||
# Set matching Onion-Location headers for each permalink
|
||||
{{- range $page := .Site.Pages }}
|
||||
{{- range .AlternativeOutputFormats }}
|
||||
{{ .RelPermalink }}
|
||||
Onion-Location: {{ $.Site.Params.baseOnionURL }}{{ .RelPermalink }}
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
||||
@@ -19,3 +19,8 @@
|
||||
{{ . }} {{ $page.RelPermalink }} 301
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
# Redirect old AMP URLs to the normal HTML page
|
||||
{{- range $page := .Site.Pages }}
|
||||
{{ print .RelPermalink "amp.html" }} {{ .RelPermalink }} 301!
|
||||
{{ end -}}
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
<footer>
|
||||
<div class="row">
|
||||
<div class="left">Content by <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>, licensed under <a class="no-underline" href="{{ "license/" | absURL }}"{{ with .Site.Params.license.nameLong }} title="{{ . }}"{{ end }}>{{ .Site.Params.license.name }}</a>.</div>
|
||||
<div class="right"><a class="back-to-top" href="#top">↑ Back to top.</a></div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{ if eq hugo.Environment "production" }}
|
||||
<amp-pixel src="{{ "api/count_view" | absURL }}?p=CANONICAL_PATH&h=SOURCE_URL&r=EXTERNAL_REFERRER&sid=PPSQZUDY" layout="nodisplay"></amp-pixel>
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
{{ partialCached "functions/debug" . }}
|
||||
@@ -1,287 +0,0 @@
|
||||
<!doctype html>
|
||||
<html ⚡ lang="{{ .Site.LanguageCode | default "en" }}">
|
||||
<head>
|
||||
{{ partial "functions/init" . }}
|
||||
<meta charset="utf-8">
|
||||
{{ hugo.Generator }}
|
||||
{{ if ne hugo.Environment "production" }}<meta name="robots" content="noindex, nofollow">{{ end }}
|
||||
<script async src="https://cdn.ampproject.org/v0.js"></script>
|
||||
<script async custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script>
|
||||
{{ if .HasShortcode "video" }}<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>{{ end }}
|
||||
{{ if .HasShortcode "youtube" }}<script async custom-element="amp-youtube" src="https://cdn.ampproject.org/v0/amp-youtube-0.1.js"></script>{{ end }}
|
||||
{{ if .HasShortcode "tweet" }}<script async custom-element="amp-twitter" src="https://cdn.ampproject.org/v0/amp-twitter-0.1.js"></script>{{ end }}
|
||||
{{ if .HasShortcode "facebook" }}<script async custom-element="amp-facebook" src="https://cdn.ampproject.org/v0/amp-facebook-0.1.js"></script>{{ end }}
|
||||
{{ if .HasShortcode "gist" }}<script async custom-element="amp-gist" src="https://cdn.ampproject.org/v0/amp-gist-0.1.js"></script>{{ end }}
|
||||
{{ if .HasShortcode "instagram" }}<script async custom-element="amp-instagram" src="https://cdn.ampproject.org/v0/amp-instagram-0.1.js"></script>{{ end }}
|
||||
{{ if .HasShortcode "vimeo" }}<script async custom-element="amp-vimeo" src="https://cdn.ampproject.org/v0/amp-vimeo-0.1.js"></script>{{ end }}
|
||||
<title>{{ .Scratch.Get "plainTitle" }} – {{ .Site.Title }}</title>
|
||||
{{ with .OutputFormats.Get "html" }}<link rel="canonical" href="{{ .Permalink }}">{{ end }}
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
||||
{{ with .Site.Author.name }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
<meta name="viewport" content="width=device-width">
|
||||
{{ partial "head/open-graph" . }}
|
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=fallback">
|
||||
|
||||
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
|
||||
<style amp-custom>
|
||||
body {
|
||||
font-family: "Inter", sans-serif;
|
||||
font-kerning: normal;
|
||||
font-size: 0.9em;
|
||||
letter-spacing: -0.011em;
|
||||
background-color: #ffffff;
|
||||
color: #222222;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
a {
|
||||
color: #0e6dc2;
|
||||
text-decoration: none;
|
||||
}
|
||||
hr {
|
||||
margin: 1.25em auto;
|
||||
height: 2px;
|
||||
border: 0;
|
||||
background-color: #d2d2d2;
|
||||
}
|
||||
strong {
|
||||
letter-spacing: 0.008em;
|
||||
}
|
||||
blockquote {
|
||||
border-left: 3px solid #0e6dc2;
|
||||
margin-left: 0.5em;
|
||||
padding-left: 1em;
|
||||
}
|
||||
article {
|
||||
max-width: {{ printf "%d%s" .Site.Params.Theme.maxWidth "px" }};
|
||||
margin: 0 auto;
|
||||
padding: 0 15px;
|
||||
line-height: 1.75;
|
||||
}
|
||||
div#content {
|
||||
font-size: 1em;
|
||||
letter-spacing: -0.006em;
|
||||
}
|
||||
div#content p {
|
||||
margin: 0.75em 0;
|
||||
}
|
||||
div#content ol, div#content ul {
|
||||
margin-left:1.5em;
|
||||
padding-left:0;
|
||||
}
|
||||
div#content ol li, div#content ul li {
|
||||
padding-left:.25em;
|
||||
}
|
||||
div#content a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
h1.title {
|
||||
font-size: 2em;
|
||||
line-height: 1.3;
|
||||
margin-top: 0.4em;
|
||||
margin-bottom: 0.4em;
|
||||
margin-left: -0.03em;
|
||||
}
|
||||
h1.title a {
|
||||
color: inherit;
|
||||
}
|
||||
div#meta {
|
||||
font-size: 0.925em;
|
||||
line-height: 1.3;
|
||||
letter-spacing: 0.04em;
|
||||
margin-top: 1.5em;
|
||||
color: #5e5e5e;
|
||||
}
|
||||
div#meta a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
div#meta span.dash {
|
||||
margin: 0 0.7em;
|
||||
}
|
||||
p.center, p.image, p.caption {
|
||||
text-align: center;
|
||||
}
|
||||
p.caption {
|
||||
margin-top: -1em;
|
||||
font-size: 0.95em;
|
||||
color: #5e5e5e;
|
||||
}
|
||||
h2 {
|
||||
padding-bottom: 0.1em;
|
||||
border-bottom: 1px solid #e3e3e3;
|
||||
}
|
||||
header {
|
||||
width: 100%;
|
||||
background-color: #fcfcfc;
|
||||
border-bottom: 1px solid #e3e3e3;
|
||||
}
|
||||
header a {
|
||||
text-decoration: none;
|
||||
}
|
||||
nav {
|
||||
max-width: {{ printf "%d%s" .Site.Params.Theme.maxWidth "px" }};
|
||||
margin: 0 auto;
|
||||
padding: 0 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
nav a#logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #515151;
|
||||
padding: 10px 0;
|
||||
}
|
||||
nav a#logo #selfie {
|
||||
height: 45px;
|
||||
width: 45px;
|
||||
border: 1px solid #d2d2d2;
|
||||
border-radius: 50%;
|
||||
}
|
||||
nav a#logo span {
|
||||
margin-left: 12px;
|
||||
font-size: 1.25em;
|
||||
font-weight: 500;
|
||||
}
|
||||
nav ul {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 1.65em;
|
||||
line-height: 1;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
nav ul li {
|
||||
width: 60px;
|
||||
text-align: right;
|
||||
}
|
||||
footer {
|
||||
padding: 20px 15px;
|
||||
background-color: #fcfcfc;
|
||||
border-top: 1px solid #e3e3e3;
|
||||
color: #555;
|
||||
line-height: 1.8;
|
||||
}
|
||||
footer a {
|
||||
text-decoration: none;
|
||||
}
|
||||
footer div {
|
||||
vertical-align: middle;
|
||||
height: 100%;
|
||||
}
|
||||
footer div.row {
|
||||
width: 100%;
|
||||
max-width: {{ printf "%d%s" .Site.Params.Theme.maxWidth "px" }};
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
div.left {
|
||||
text-align: left;
|
||||
}
|
||||
div.right {
|
||||
text-align: right;
|
||||
}
|
||||
code {
|
||||
font-family: "Roboto Mono", monospace;
|
||||
font-size: 0.925em;
|
||||
letter-spacing: 0;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
div.highlight, code {
|
||||
margin: 0 0.1em;
|
||||
line-height: 1.6;
|
||||
}
|
||||
:not(pre) > code {
|
||||
border: 1px solid #dddddd;
|
||||
padding: 0.075em 0.325em;
|
||||
background-color: #fbfbfb;
|
||||
}
|
||||
h1.title code {
|
||||
font-size: 1em;
|
||||
font-weight: 600;
|
||||
background: none;
|
||||
border: 0;
|
||||
margin: 0 0.075em;
|
||||
padding: 0;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
article.layout-video p {
|
||||
text-align: center;
|
||||
font-size: 0.95em;
|
||||
letter-spacing: -0.005em;
|
||||
line-height: 1.5;
|
||||
color: #757575;
|
||||
margin: 1.5em 1em 1.5em 1em;
|
||||
}
|
||||
article.layout-video p a {
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.001em;
|
||||
}
|
||||
article.layout-video h1.title {
|
||||
text-align: center;
|
||||
margin: 0.7em 0;
|
||||
}
|
||||
article.layout-video amp-video {
|
||||
margin: 1.25em 0;
|
||||
}
|
||||
|
||||
div.highlight {
|
||||
border: 1px solid #dddddd;
|
||||
background-color: #fbfbfb;
|
||||
line-height: 1.6;
|
||||
max-width: 100%;
|
||||
overflow-x: scroll;
|
||||
object-fit: scale-down;
|
||||
margin: 1em 0;
|
||||
}
|
||||
div.highlight pre {
|
||||
display: block;
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
div.highlight code {
|
||||
margin: 0;
|
||||
}
|
||||
div.highlight span.k, div.highlight span.kc, div.highlight span.kd, div.highlight span.kp, div.highlight span.kr, div.highlight span.kt, div.highlight span.no { color: #0e6dc2; }
|
||||
div.highlight span.n, div.highlight span.bp, div.highlight span.nb, div.highlight span.ni, div.highlight span.fm, div.highlight span.nl, div.highlight span.nn, div.highlight span.py, div.highlight span.nv, div.highlight span.vc, div.highlight span.vg, div.highlight span.vi, div.highlight span.vm, div.highlight span.p { color: #111111; }
|
||||
div.highlight span.na, div.highlight span.nc, div.highlight span.nd, div.highlight span.ne, div.highlight span.nf, div.highlight span.nx { color: #337a15; }
|
||||
div.highlight span.err, div.highlight span.nt, div.highlight span.o, div.highlight span.ow, div.highlight span.kn { color: #d43d2e; }
|
||||
div.highlight span.l, div.highlight span.se, div.highlight span.m, div.highlight span.mb, div.highlight span.mf, div.highlight span.mh, div.highlight span.mi, div.highlight span.il, div.highlight span.mo { color: #7e3df3; }
|
||||
div.highlight span.ld, div.highlight span.s, div.highlight span.sa, div.highlight span.sb, div.highlight span.sc, div.highlight span.dl, div.highlight span.sd, div.highlight span.s2, div.highlight span.sh, div.highlight span.si, div.highlight span.sx, div.highlight span.sr, div.highlight span.s1, div.highlight span.ss { color: #bd5500; }
|
||||
div.highlight span.c, div.highlight span.ch, div.highlight span.cm, div.highlight span.c1, div.highlight span.cs, div.highlight span.cp, div.highlight span.cpf { color: #6b6859; }
|
||||
div.highlight span.ge { font-style: italic; }
|
||||
div.highlight span.gs { font-weight: bold; }
|
||||
div.highlight span.lnt { color: #999999; user-select: none; }
|
||||
|
||||
/* Page-specific styles set via front matter */
|
||||
{{ with .Scratch.Get "pageCss" }}
|
||||
{{- replace . " !important" "" | safeCSS -}}
|
||||
{{ end }}
|
||||
</style>
|
||||
|
||||
{{ partialCached "head/favicons" (dict "pngSizes" "192 48 32 16" "icoSizes" "16 32") }}
|
||||
{{ partialCached "head/feeds" . }}
|
||||
{{ partialCached "head/webmention" . }}
|
||||
{{ partial "head/schema" . }}
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a id="logo" href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
|
||||
{{ $meImg := resources.Get .Site.Author.image }}
|
||||
{{ $meImgSm := $meImg.Resize "320x320 q90 jpg" }}
|
||||
<amp-img id="selfie" layout="fixed" src="{{ $meImgSm.Permalink }}" width="45" height="45" alt="Photo of Jake Jarvis"></amp-img>
|
||||
|
||||
<span id="name">{{ .Site.Title }}</span>
|
||||
</a>
|
||||
|
||||
<ul>
|
||||
<li><a href="{{ .Site.BaseURL }}" title="Home">🏠</a></li>
|
||||
<li><a href="{{ "notes/" | absURL }}" title="Notes">📝</a></li>
|
||||
<li><a href="mailto:jake@jarv.is" title="Email Me">📬</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
@@ -1,11 +1,5 @@
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
{{ if and .IsPage (ne .Params.amp false) -}}
|
||||
{{- with .OutputFormats.Get "amp" -}}
|
||||
<link rel="amphtml" href="{{ .Permalink }}">
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
<link rel="author" href="{{ "humans.txt" | absURL }}">
|
||||
<link rel="pgpkey" href="{{ "pubkey.asc" | absURL }}" type="application/pgp-keys">
|
||||
<link rel="license" href="{{ "license/" | absURL }}">
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
User-Agent: *
|
||||
{{- if eq hugo.Environment "production" }}
|
||||
Allow: /.well-known/amphtml/apikey.pub
|
||||
Disallow: /403.html
|
||||
Disallow: /404.html
|
||||
Disallow: /api/
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -0,0 +1 @@
|
||||
youtube.rss.xml
|
||||
Reference in New Issue
Block a user