Skip to content

Commit

Permalink
Add turbolinks
Browse files Browse the repository at this point in the history
  • Loading branch information
SamLau95 committed Aug 10, 2018
1 parent 7bb501c commit 6cfe3fe
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ description: >- # this means to ignore newlines until "baseurl:"
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
js_url: "/assets/js" # Path to JS files

github_username: DS-100

defaults:
Expand Down
10 changes: 10 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,14 @@
});
</script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_CHTML' async></script>

<!-- Include Turbolinks to make page loads fast -->
<!-- https://github.com/turbolinks/turbolinks -->
<script src="{{ site.js_url }}/turbolinks.js"></script>
<script>
// Run MathJax when Turbolinks navigates to a page
document.addEventListener("turbolinks:load", function() {
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
})
</script>
</head>
Loading

0 comments on commit 6cfe3fe

Please sign in to comment.