Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
feat(): allow section names to be part of the base url, for example: h…
Browse files Browse the repository at this point in the history
  • Loading branch information
m7r committed Aug 26, 2014
1 parent b1de4a6 commit 60e5a48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/templates/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
(function() {
var indexFile = (location.pathname.match(/\/(index[^\.]*\.html)/) || ['', ''])[1],
rUrl = /(#!\/|<%= sections %>|index[^\.]*\.html).*$/,
baseUrl = location.href.replace(rUrl, indexFile),
origin = location.origin,
baseUrl = origin + location.href.substr(origin.length).replace(rUrl, indexFile),
headEl = document.getElementsByTagName('head')[0],
sync = true;

Expand Down

0 comments on commit 60e5a48

Please sign in to comment.