-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Use site.root for root path if set, otherwise use site.github.url. 2. Display extra files for workshop-template repo as well as for lessons.
- Loading branch information
Greg Wilson
committed
Jun 26, 2016
1 parent
519cd35
commit e0f4c7a
Showing
3 changed files
with
62 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
<script src="{{ site.root }}/assets/js/jquery.min.js"></script> | ||
<script src="{{ site.root }}/assets/js/bootstrap.min.js"></script> | ||
<script src="{{ site.root }}/assets/js/lesson.js"></script> | ||
{% comment %} | ||
If previewing locally, site.root is set in _config_dev.yml. | ||
If site.root is not set, assume we're viewing on the web. | ||
{% endcomment %} | ||
{% if site.root %} | ||
{% assign root = site.root %} | ||
{% else %} | ||
{% assign root = site.github.url %} | ||
{% endif %} | ||
<script src="{{ root }}/assets/js/jquery.min.js"></script> | ||
<script src="{{ root }}/assets/js/bootstrap.min.js"></script> | ||
<script src="{{ root }}/assets/js/lesson.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters