Source code of my website
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ› : do not show slides if not available

+3
+3
layouts/partials/talks/event.html
··· 1 1 {{ range .Params.events }} 2 2 {{ if (or (.slides) (.youtube)) }} 3 3 <h1>{{ .name }} - {{ .date | time.Format ":date_medium" }}</h1> 4 + 5 + {{ if .slides }} 4 6 <h2>Slides </h2> 5 7 <embed src="{{ .slides }}" type="application/pdf" width="100%" height="500px"> 8 + {{ end }} 6 9 7 10 {{ if .youtube }} 8 11 <h2>Video</h2>