mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 19:05:32 -04:00
re-organize a bunch of partials
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user