Skip to content

Commit

Permalink
program.yml: support video_url and slides_url
Browse files Browse the repository at this point in the history
  • Loading branch information
u10313335 committed Dec 23, 2023
1 parent 5272e2b commit 0147dee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion _layouts/program.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ <h1 class="display-5">{{ title }}</h1>
<div class="row col-lg-10 border-start border-3 border-{{ classes }}">
{% if event.category %}
<h5 class="fw-normal m-0 mb-2">{{ event.title }}</h5>
<div class="btn-group-md m-0 mb-2" role="group">
{% if event.video_url %}
<a href="{{ event.video_url }}" target="_blank" type="button" class="btn btn-primary fw-normal">錄影</a>
{% endif %}
{% if event.slides_url %}
<a href="{{ event.slides_url }}" target="_blank" type="button" class="btn btn-primary fw-normal">簡報</a>
{% endif %}
</div>
<p class="fw-light m-0">{{ event.subtitle }}</p>
{% else %}
<h5 class="fw-light text-muted m-0 mb-2">{{ event.title }}</h5>
Expand Down Expand Up @@ -111,4 +119,4 @@ <h5 class="fw-normal">{{ site.data.program.legend.title }}</h5>
</div>
</main>

{% include footer.html %}
{% include footer.html %}

0 comments on commit 0147dee

Please sign in to comment.