mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-12-03 04:18:57 -05:00
re-organize a bunch of partials
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
width="1200"
|
||||
height="{{ with .Get "height" }}{{ . }}{{ else }}500{{ end }}"
|
||||
scrolling="no"
|
||||
src="https://codepen.io/{{ .Get "username" }}/embed/{{ .Get "id" }}/?height={{ with .Get "height" }}{{ . }}{{ else }}500{{ end }}&theme-id=light&default-tab={{ .Get "left-tab" }}{{ with .Get "right-tab" }},{{ . }}{{ end }}">
|
||||
src="https://codepen.io/{{ .Get "username" }}/embed/{{ .Get "id" }}/?theme-id=light&default-tab={{ .Get "left-tab" }}{{ with .Get "right-tab" }},{{ . }}{{ end }}">
|
||||
</amp-iframe>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<iframe
|
||||
height="{{ with .Get "height" }}{{ . }}{{ else }}500{{ end }}"
|
||||
style="width: 100%;"
|
||||
scrolling="no"
|
||||
src="https://codepen.io/{{ .Get "username" }}/embed/{{ .Get "id" }}/?height={{ with .Get "height" }}{{ . }}{{ else }}500{{ end }}&theme-id=light&default-tab={{ .Get "left-tab" }}{{ with .Get "right-tab" }},{{ . }}{{ end }}">
|
||||
</iframe>
|
||||
<div class="embed codepen">
|
||||
<iframe
|
||||
height="{{ with .Get "height" }}{{ . }}{{ else }}500{{ end }}"
|
||||
src="https://codepen.io/{{ .Get "username" }}/embed/{{ .Get "id" }}/?theme-id=light&default-tab={{ .Get "left-tab" }}{{ with .Get "right-tab" }},{{ . }}{{ end }}"
|
||||
scrolling="no">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{{- $url := printf "https://www.facebook.com/plugins/post/oembed.json/?omitscript=1&url=%s" (.Get "url" | urlize) -}}
|
||||
{{- $json := getJSON $url -}}
|
||||
{{- $json.html | safeHTML -}}
|
||||
|
||||
<div class="embed facebook">
|
||||
{{ $json.html | safeHTML }}
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<p style="text-align: center;">
|
||||
<div class="embed gh-buttons"><p>
|
||||
<a class="github-button" href="https://github.com/{{ .Get "username" }}/{{ .Get "repo" }}" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star {{ .Get "username" }}/{{ .Get "repo" }} on GitHub">Star</a>
|
||||
<a class="github-button" href="https://github.com/{{ .Get "username" }}/{{ .Get "repo" }}/issues" data-icon="octicon-issue-opened" data-size="large" data-show-count="true" aria-label="Issues for {{ .Get "username" }}/{{ .Get "repo" }} on GitHub">Issue</a>
|
||||
</p>
|
||||
</p></div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* Modified from tpl/tplimpl/embedded/templates/shortcodes/twitter.html, minus script */ -}}
|
||||
|
||||
{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%v&dnt=1&omit_script=1" (index .Params 0) -}}
|
||||
{{- $json := getJSON $url -}}
|
||||
{{- $json.html | safeHTML -}}
|
||||
|
||||
<div class="embed tweet">
|
||||
{{ $json.html | safeHTML }}
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="embed video-player">
|
||||
<div class="embed youtube">
|
||||
<iframe
|
||||
class="youtube-player"
|
||||
src="https://www.youtube-nocookie.com/embed/{{ index .Params 0 }}?autoplay=0&hl=en&fs=1&showinfo=1&rel=0&iv_load_policy=3"
|
||||
|
||||
Reference in New Issue
Block a user