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

Commit 6ba3bf7

Browse files
authored
Merge pull request #585 from devopsdays/pdf-googleslides
Adding PDF & google slides support
2 parents 47c3145 + 5afbbbf commit 6ba3bf7

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

REFERENCE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ Pages of the type `talk` (which can include workshops, ignites, or talks) have a
256256
| `vimeo` | No | The ID of the Vimeo video (not the full URL). | "219025568" |
257257
| `speakerdeck` | No | The URL to the talk on Speakerdeck. Use the full URL. | "https://speakerdeck.com/mattstratton/shifting-left-securely" |
258258
| `slideshare` | No | The URL to the talk on Slideshare. Use the full URL | "http://www.slideshare.net/mattstratton/the-five-love-languages-of-devops-54549536" |
259+
| `googleslides` | No | The ID of the talk on Google Slides (not the full URL). | "1QnakgUC8AaNydPZCmKGYYja8gs2WoHbHRSjioIVdD9g" |
260+
| `pdf` | No | The URL to the PDF. Use the full URL. | "http://www.mattstratton.com/my-slides.pdf" |
259261
| `slides` | No | If the slides are available on a service other than Speakerdeck or Slideshare, enter the URL here. | "http://www.mattstratton.com/my-slides" |
260262

261263
### Speaker Page Fields

layouts/talk/single.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,29 @@ <h2 class="talk-page">Speakerdeck</h2>
6464
{{- end -}}
6565
{{- end -}}
6666

67+
{{- if isset .Params "googleslides" -}}
68+
{{- if ne .Params.googleslides "" -}}
69+
<div class="row">
70+
<div class = "col" style="max-width:100%">
71+
<iframe src="https://docs.google.com/presentation/d/{{ .Params.googleslides }}/embed?start=false&loop=false" allowfullscreen="true">
72+
</iframe>
73+
</div>
74+
</div>
75+
{{- end -}}
76+
{{- end -}}
77+
78+
{{- if isset .Params "pdf" -}}
79+
{{- if ne .Params.pdf "" -}}
80+
<div class="row">
81+
<div class = "col" style="max-width:100%">
82+
<iframe src="{{.Params.pdf}}" width="100%" height="200%">
83+
This browser does not support PDFs. Please download the PDF to view it: <a href="{{.Params.pdf}}">Download PDF</a>
84+
</iframe>
85+
</div>
86+
</div>
87+
{{- end -}}
88+
{{- end -}}
89+
6790
{{- if isset .Params "slides" -}}
6891
{{- if ne .Params.slides "" -}}
6992
<div class = "row">

0 commit comments

Comments
 (0)