aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes/tweet.html
blob: faf1f004ed56757a42a5b97c8bf56ae0e1d4e3bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{{- $user     := default "jack"          (.Get "user"    | default (.Get 0)) -}}
{{- $status   := default "20"            (.Get "status"  | default (.Get 1)) -}}
{{- $caption  := default "Twitter Tweet" (.Get "caption" | default (.Get 2)) -}}

<twitter-tweet>
  <blockquote class="twitter-tweet">
    <a href="https://twitter.com/{{ $user }}/status/{{ $status }}">
      https://twitter.com/{{ $user }}/status/{{ $status }}
    </a>
  </blockquote>
  <script
    async
    src="https://platform.twitter.com/widgets.js"
    charset="utf-8">
  </script>
</twitter-tweet>

<footer>{{ $caption }}</footer>