Skip to content

Commit 2742679

Browse files
committed
Allow urls pointing to #
1 parent ed3967a commit 2742679

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828

2929
- run:
3030
name: Test
31-
command: bundle exec htmlproofer ./_site --assume-extension --check-html --disable-external
31+
command: bundle exec htmlproofer ./_site --assume-extension --check-html --disable-external --url-ignore "/#.*/"

_jekyll/layouts/video.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434

3535
{% comment %} Previous/Next buttons and 'Watch all' button. {% endcomment %}
3636
<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>
3838
<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>
4040
</div>
4141
</div>
4242

@@ -45,20 +45,20 @@
4545

4646
{% comment %} Show video topics (used for streams). {% endcomment %}
4747
{% 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' %}
4949
{% endif %}
5050

5151
{% comment %} Show links for live example and code download. {% endcomment %}
5252
{% if page.repository %}
5353

5454
{% comment %} Generate URL for live example. {% endcomment %}
5555
{% capture live_example_url %}/{{ page.collection }}/{{ page.live_example | default: page.repository }}{% endcapture %}
56-
56+
5757
<div class="code-actions">
5858
<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>
5959
<a href="{{ live_example_url | relative_url }}" target="blank" class="{% if page.live_example == false %}disabled{% endif %}">Live Example</a>
6060
</div>
61-
61+
6262
{% endif %}
6363
</div>
6464
</div>
@@ -71,7 +71,7 @@
7171
{% capture video_number %}{{ page.video_number }}{% endcapture %}
7272

7373
{% 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 %}
7575
{% if video_number contains '.' and page.contributions == null %}
7676
{% assign video_number_base = video_number | split: '.' | first %}
7777
{% assign firstPartVideoNumber = video_number_base | append: '.1' %}

0 commit comments

Comments
 (0)