Skip to content

Commit

Permalink
Add support for linking to additional talk resources
Browse files Browse the repository at this point in the history
This can be used for linking to slides, recordings, or anything else.
  • Loading branch information
carlwgeorge committed Apr 8, 2024
1 parent 1eba5b0 commit 75b3569
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/eventre-hugo/assets/scss/pages/_talk.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
font-size: 0.9375rem;
}
}
.speakers{
.resources, .speakers{
li{
padding: 5px 0px;
}
}
.details, .format, .when, .where, .speakers{
.details, .format, .when, .where, .resources, .speakers{
h5{
font-weight: 400;
margin-bottom: 15px;
Expand Down
12 changes: 12 additions & 0 deletions themes/eventre-hugo/layouts/talks/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ <h5>Speaker{{ if gt (len .Params.speakers) 1 }}s{{end}}</h5>
{{ end }}
</ul>
</div>
{{ if .Params.resources }}
<div class="resources">
<h5>Resources</h5>
<ul class="list-inline">
{{ range .Params.resources }}
<li class="list-item">
<a class="btn btn-transparent-md" href="{{ .link | absURL }}">{{ .name }}</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
</div>
</div>
Expand Down

0 comments on commit 75b3569

Please sign in to comment.