Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Commit

Permalink
Change to use embedly for speakerdeck
Browse files Browse the repository at this point in the history
Fixes #531
  • Loading branch information
mattstratton committed May 16, 2017
1 parent eeea994 commit 5b44741
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
16 changes: 2 additions & 14 deletions config.codekit3
Original file line number Diff line number Diff line change
Expand Up @@ -7983,10 +7983,10 @@
"oAP": "\/layouts\/_default\/single.html",
"oF": 0
},
"\/layouts\/about\/single.html": {
"\/layouts\/blog\/single.html": {
"ft": 8192,
"oA": 2,
"oAP": "\/layouts\/about\/single.html",
"oAP": "\/layouts\/blog\/single.html",
"oF": 0
},
"\/layouts\/blog\/summary.html": {
Expand All @@ -8013,12 +8013,6 @@
"oAP": "\/layouts\/index.html",
"oF": 0
},
"\/layouts\/partials\/about.html": {
"ft": 8192,
"oA": 2,
"oAP": "\/layouts\/partials\/about.html",
"oF": 0
},
"\/layouts\/partials\/blog_pagination.html": {
"ft": 8192,
"oA": 2,
Expand Down Expand Up @@ -8085,12 +8079,6 @@
"oAP": "\/layouts\/partials\/head\/seo.html",
"oF": 0
},
"\/layouts\/partials\/head\/seo\/google_news.html": {
"ft": 8192,
"oA": 2,
"oAP": "\/layouts\/partials\/head\/seo\/google_news.html",
"oF": 0
},
"\/layouts\/partials\/head\/seo\/open_graph.html": {
"ft": 8192,
"oA": 2,
Expand Down
23 changes: 15 additions & 8 deletions layouts/talk/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,37 @@ <h2 class="talk-page">{{ .Title }}</h2>

{{- if isset .Params "slideshare" -}}
{{- if ne .Params.slideshare "" -}}
<div>
<h2 class="talk-page">Slideshare</h2>
<a href="{{ .Params.slideshare }}" class="embed"></a>
<div class = "row">
<div class = "col">
<h2 class="talk-page">Slideshare</h2>
<a href="{{ .Params.slideshare }}" class="embed"></a>
</div>
</div>
{{- end -}}
{{- end -}}

{{- if isset .Params "speakerdeck" -}}
{{- if ne .Params.speakerdeck "" -}}
<div>
<div class = "row">
<div class = "col" style="max-width:100%">
<h2 class="talk-page">Speakerdeck</h2>
{{ $sdUrl := (print "http://speakerdeck.com/oembed.json?url=" print .Params.speakerdeck "&format=json" ) }}
{{ $dataJ := getJSON $sdUrl }}
{{ $dataJ.html | safeHTML }}
{{/* {{- $dataJ := getJSON "http://speakerdeck.com/oembed.json?url=" .Params.speakerdeck "&format=json" -}}
{{ $dataJ.html | safeHTML }} */}}
<a class="embedly-card" data-card-controls="0" href="{{.Params.speakerdeck}}">{{ .Title }}</a>
<script async src="//cdn.embedly.com/widgets/platform.js" charset="UTF-8"></script>
</div>
</div>
{{- end -}}
{{- end -}}

{{- if isset .Params "slides" -}}
{{- if ne .Params.slides "" -}}
<div>
<div class = "row">
<div class = "col">
<h2 class="talk-page">Slides</h2>
<a href = "{{ .Params.slides }}">Link to Slides</a>
</div>
</div>
{{- end -}}
{{- end -}}

Expand Down

0 comments on commit 5b44741

Please sign in to comment.