Skip to content

Commit 10510ef

Browse files
committed
Changed URL construction
Deleted repository URL variable, to use Github/Jekyll instead
1 parent 11b7c3f commit 10510ef

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

_config.yml

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
# --- Site Settings ---
1111

12-
# Github url
13-
github_url: https://github.com/CodingTrain/website
14-
1512
# The site's title.
1613
title: The Coding Train // Code Repository
1714

_jekyll/layouts/video.html

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

5757
<div class="code-actions">
58-
<a href="{% if page.repository == false %}#{% else %}{{ site.github_url | append: '/tree/master/' | append: page.collection | append: page.repository }}{% endif %}" target="blank" class="{% if page.repository == false %}disabled{% endif %}">View Code</a>
58+
<a href="{% if page.repository == false %}#{% else %}{{ site.github.repository_url | append: '/tree/master/' | append: page.collection | append: page.repository }}{% endif %}" target="blank" class="{% if page.repository == false %}disabled{% endif %}">View Code</a>
5959
<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: page.repository }}{% endif %}" target="blank" class="{% if page.repository == false %}disabled{% endif %}">Download Code</a>
6060
<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>
6161
</div>

0 commit comments

Comments
 (0)