mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-08-28 10:35:39 -04:00
rename atom shortcodes from .atom.xml to .atom.atom, and stop using symlinks
let's see if this fixes the issue of the wrong shortcode types (usually AMP) being chosen inconsistently
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<p style="text-align: center;"><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 @@
|
||||
codepen.rss.xml
|
||||
@@ -0,0 +1,11 @@
|
||||
{{- $url := printf "https://www.facebook.com/plugins/post/oembed.json/?omitscript=1&url=%s" (.Get "url" | urlize) -}}
|
||||
{{- $json := getJSON $url -}}
|
||||
|
||||
<div class="embed facebook">
|
||||
{{ $json.html | safeHTML }}
|
||||
</div>
|
||||
|
||||
{{- define "__shortcode_facebook_js" }}
|
||||
<div id="fb-root"></div>
|
||||
<script async defer src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v5.0"></script>
|
||||
{{- end }}
|
||||
@@ -1 +0,0 @@
|
||||
facebook.rss.xml
|
||||
@@ -1 +0,0 @@
|
||||
facebook.html
|
||||
@@ -0,0 +1,11 @@
|
||||
{{- $url := printf "https://www.facebook.com/plugins/post/oembed.json/?omitscript=1&url=%s" (.Get "url" | urlize) -}}
|
||||
{{- $json := getJSON $url -}}
|
||||
|
||||
<div class="embed facebook">
|
||||
{{ $json.html | safeHTML }}
|
||||
</div>
|
||||
|
||||
{{- define "__shortcode_facebook_js" }}
|
||||
<div id="fb-root"></div>
|
||||
<script async defer src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v5.0"></script>
|
||||
{{- end }}
|
||||
@@ -0,0 +1,4 @@
|
||||
<p style="text-align: center;">
|
||||
<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 @@
|
||||
gh-buttons.rss.xml
|
||||
@@ -0,0 +1 @@
|
||||
<p style="text-align: center;"><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 @@
|
||||
gist.rss.xml
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="embed iframe">
|
||||
<iframe src="{{ .Get "src" }}" {{ with .Get "title" }}title="{{ . }}"{{ end }}></iframe>
|
||||
</div>
|
||||
@@ -1 +0,0 @@
|
||||
iframe.html
|
||||
@@ -1 +0,0 @@
|
||||
iframe.html
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="embed iframe">
|
||||
<iframe src="{{ .Get "src" }}" {{ with .Get "title" }}title="{{ . }}"{{ end }}></iframe>
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
{{- $optimized := partial "functions/optimize-image" . -}}
|
||||
|
||||
<p style="text-align: center;">
|
||||
{{ with .Get "link" }}<a href="{{ . }}">{{ end }}
|
||||
<img src="{{ $optimized.Permalink }}" width="{{ $optimized.Width }}" height="{{ $optimized.Height }}"
|
||||
{{- with .Get "alt" }} alt="{{ . | safeHTML }}" title="{{ . | safeHTML }}"{{ end }}
|
||||
{{- with .Inner }} alt="{{ . | $.Page.RenderString | plainify | safeHTML }}" title="{{ . | $.Page.RenderString | plainify | safeHTML }}"{{ end }}>
|
||||
{{ if .Get "link" }}</a>{{ end }}
|
||||
{{ with .Inner }}<br>{{ . | $.Page.RenderString | safeHTML }}{{ end -}}
|
||||
</p>
|
||||
@@ -1 +0,0 @@
|
||||
image.rss.xml
|
||||
@@ -0,0 +1 @@
|
||||
<p style="text-align: center;"><a href="https://www.instagram.com/p/{{ .Get "id" }}" target="_blank" rel="noopener">View this image on Instagram.</a></p>
|
||||
@@ -1 +0,0 @@
|
||||
instagram.rss.xml
|
||||
@@ -0,0 +1,6 @@
|
||||
{{- $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 -}}
|
||||
|
||||
<div class="embed tweet">
|
||||
{{ $json.html | safeHTML }}
|
||||
</div>
|
||||
@@ -1 +0,0 @@
|
||||
tweet.rss.xml
|
||||
@@ -1 +0,0 @@
|
||||
tweet.html
|
||||
@@ -0,0 +1,6 @@
|
||||
{{- $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 -}}
|
||||
|
||||
<div class="embed tweet">
|
||||
{{ $json.html | safeHTML }}
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
<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 @@
|
||||
video.rss.xml
|
||||
@@ -0,0 +1 @@
|
||||
<p style="text-align: center;"><a href="https://vimeo.com/{{ .Get "id" }}" target="_blank" rel="noopener">Watch this video on Vimeo.</a></p>
|
||||
@@ -1 +0,0 @@
|
||||
vimeo.rss.xml
|
||||
@@ -0,0 +1 @@
|
||||
<p style="text-align: center;"><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 @@
|
||||
youtube.rss.xml
|
||||
Reference in New Issue
Block a user