Skip to content

Commit b82c376

Browse files
committed
Allow no repository, fix broken md files
1 parent ae7f730 commit b82c376

7 files changed

+10
-8
lines changed

_CodingChallenges/003-snake-game-p5.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ contributions:
1515
author:
1616
name: "Bob Voorneveld"
1717
url: https://www.bobvoorneveld.nl
18-
source: https://github.com/bobvoorneveld/Coding-Challenges/tree/master/CC003-The%20Snake%20Game"
18+
source: "https://github.com/bobvoorneveld/Coding-Challenges/tree/master/CC003-The%20Snake%20Game"
1919

2020
- title: "Snake Game"
2121
author:

_CodingChallenges/012-lorenzattractor.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ links:
1313
- title: "Lorenz System on Wikipedia"
1414
url: "https://en.wikipedia.org/wiki/Lorenz_system"
1515
- title: "Lorenz Attractor"
16-
url: http://paulbourke.net/fractals/lorenz/"
16+
url: "http://paulbourke.net/fractals/lorenz/"
1717
author: "Paul Bourke"
1818
- title: "beginShape() reference"
1919
url: "https://processing.org/reference/beginShape_.html"

_CodingChallenges/017-spacecolonizer.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ redirect_from: CodingChallenges/17-spacecolonizer.html
44
video_number: 17
55
date: 2016-06-01
66
video_id: kKT0v3qhIQY
7-
repository: /CC_017_SpaceColonizer
7+
repository: CC_017_SpaceColonizer
8+
live_example: CC_017_SpaceColonizer_p5
89
links:
910
- title: "Algorithmic Botany"
1011
url: "http://algorithmicbotany.org/"

_CodingChallenges/032.2-agario-sockets.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ video_number: 32.2
55
date: 2016-09-04
66
video_id: ZjVyKXp9hec
77
repository: /CC_032.2_agario_sockets
8+
live_example: false
89
links:
910
- title: "Agar.io"
1011
url: "http://agar.io"

_CodingChallenges/041-clappy-bird.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ redirect_from: CodingChallenges/41-clappy-bird.html
44
video_number: 41
55
date: 2016-08-20
66
video_id: aKiyCeIuwn4
7-
repository: CC_41_ClappyBird
7+
repository: CC_041_ClappyBird_p5.js
88

99
links:
1010
- title: "p5.js sound library reference"

_CodingChallenges/090-floyd-steinberg-dithering.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ redirect_from: CodingChallenges/90-floyd-steinberg-dithering.html
44
video_number: 90
55
date: 2018-01-16
66
video_id: 0L2n8Tg2FwI
7-
repository: /CC_090_dithering
8-
7+
repository: CC_090_dithering
8+
live_example: CC_090_dithering_p5.js
99
links:
1010
- title: "Stippling"
1111
url: "http://roberthodgin.com/portfolio/stippling/"

_jekyll/layouts/video.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
{% capture live_example_url %}/{{ page.collection }}/{{ page.live_example | default: page.repository }}{% endcapture %}
5656

5757
<div class="code-actions">
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-
<a href="{{ live_example_url | relative_url }}" target="blank" class="{% if page.live_example == false %}disabled{% endif %}">Live Example</a>
58+
<a href="{% if page.repository == false %}#{% else %}{{ site.github_download_prefix | append: site.github.repository_url | append: '/tree/' | append: site.github.source.branch | append: '/' | append: page.collection | append: '/' | append: page.repository }}{% endif %}" target="blank" class="{% if page.repository == false %}disabled{% endif %}">Get the Code</a>
59+
<a href="{% if page.live_example == false %}#{% else %}{{ live_example_url | relative_url }}{% endif %}" target="blank" class="{% if page.live_example == false %}disabled{% endif %}">Live Example</a>
6060
</div>
6161

6262
{% endif %}

0 commit comments

Comments
 (0)