|
34 | 34 |
|
35 | 35 | {% comment %} Previous/Next buttons and 'Watch all' button. {% endcomment %}
|
36 | 36 | <div class="player-controls">
|
37 |
| - <a href="{{ out_previousVideo.url | relative_url }}" class="jump-control {% if out_previousVideo == null %}disabled{% endif %}">❰</a> |
| 37 | + <a href="{{ out_previousVideo.url | relative_url | default: '#' }}" class="jump-control {% if out_previousVideo == null %}disabled{% endif %}">❰</a> |
38 | 38 | <a href="{{ series.url | default: page.collection | relative_url }}" class="watch-all-videos">Watch all videos</a>
|
39 |
| - <a href="{{ out_nextVideo.url | relative_url }}" class="jump-control {% if out_nextVideo == null %}disabled{% endif %}">❱</a> |
| 39 | + <a href="{{ out_nextVideo.url | relative_url | default: '#' }}" class="jump-control {% if out_nextVideo == null %}disabled{% endif %}">❱</a> |
40 | 40 | </div>
|
41 | 41 | </div>
|
42 | 42 |
|
|
45 | 45 |
|
46 | 46 | {% comment %} Show video topics (used for streams). {% endcomment %}
|
47 | 47 | {% if page.topics %}
|
48 |
| - {% include 3-modules/link-list.html links=page.topics title='Topics' class='topics' %} |
| 48 | + {% include 3-modules/link-list.html links=page.topics title='Topics' class='topics' %} |
49 | 49 | {% endif %}
|
50 | 50 |
|
51 | 51 | {% comment %} Show links for live example and code download. {% endcomment %}
|
52 | 52 | {% if page.repository %}
|
53 | 53 |
|
54 | 54 | {% comment %} Generate URL for live example. {% endcomment %}
|
55 | 55 | {% capture live_example_url %}/{{ page.collection }}/{{ page.live_example | default: page.repository }}{% endcapture %}
|
56 |
| - |
| 56 | + |
57 | 57 | <div class="code-actions">
|
58 | 58 | <a href="{{ site.github_download_prefix | append: site.github.repository_url | append: '/tree/' | append: site.github.source.branch | append: '/' | append: page.collection | append: page.repository }}" target="blank">Get the Code</a>
|
59 | 59 | <a href="{{ live_example_url | relative_url }}" target="blank" class="{% if page.live_example == false %}disabled{% endif %}">Live Example</a>
|
60 | 60 | </div>
|
61 |
| - |
| 61 | + |
62 | 62 | {% endif %}
|
63 | 63 | </div>
|
64 | 64 | </div>
|
|
71 | 71 | {% capture video_number %}{{ page.video_number }}{% endcapture %}
|
72 | 72 |
|
73 | 73 | {% comment %} Set video which contains the contributions. {% endcomment %}
|
74 |
| - {% comment %} Multi-part videos allow contributions only on the first part. {% endcomment %} |
| 74 | + {% comment %} Multi-part videos allow contributions only on the first part. {% endcomment %} |
75 | 75 | {% if video_number contains '.' and page.contributions == null %}
|
76 | 76 | {% assign video_number_base = video_number | split: '.' | first %}
|
77 | 77 | {% assign firstPartVideoNumber = video_number_base | append: '.1' %}
|
|
0 commit comments