-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a 'root' variable to allow pages in sub-directories.
@karawoo recently created a workshop website with a sub-directory for syllabus material. The `_layouts/page.html` template didn't work properly in this case because our included files have fixed relative paths to CSS and JS files. This PR adds the `root` variable, and references to it, where needed. It also moves the inclusion of `footer.html` to the right place (so that the footer spans the whole page). Note that the `index.html` page already had an (unused) `root` variable.
- Loading branch information
Showing
4 changed files
with
9 additions
and
8 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
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,3 @@ | ||
<!-- Javascript placed at the end of the document so the pages load faster. --> | ||
<script src="js/jquery-1.9.1.min.js"></script> | ||
<script src="css/bootstrap/bootstrap-js/bootstrap.js"></script> | ||
<script src="{{page.root}}/js/jquery-1.9.1.min.js"></script> | ||
<script src="{{page.root}}/css/bootstrap/bootstrap-js/bootstrap.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
layout: page | ||
title: Testing Setup | ||
root: .. | ||
--- | ||
For Learners | ||
------------ | ||
|