1
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:
2020-01-14 18:08:42 -05:00
parent 53099d3a77
commit 6c44b7d44d
34 changed files with 160 additions and 88 deletions

View File

@@ -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>

View File

@@ -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 }}&amp;theme-id=light&amp;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&amp;default-tab={{ .Get "left-tab" }}{{ with .Get "right-tab" }},{{ . }}{{ end }}"
scrolling="no">
</iframe>
</div>

View File

@@ -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>

View File

@@ -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>&nbsp;&nbsp;&nbsp;
<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>

View File

@@ -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>

View File

@@ -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&amp;hl=en&amp;fs=1&amp;showinfo=1&amp;rel=0&amp;iv_load_policy=3"