Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from argelius/master
Browse files Browse the repository at this point in the history
support deploying to non-root dir
  • Loading branch information
Sean Sun committed Dec 13, 2016
2 parents aa3f0cc + 29897c2 commit 5e0bceb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion layout/partial/layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ html(lang=config.language)
.wrap
header
a.logo-link(href=url_for())
img(src=theme.logo)
img(src=url_for(theme.logo))
include nav
section.container
block container
Expand Down
2 changes: 1 addition & 1 deletion layout/partial/nav.jade
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ ul.nav.nav-list
- var re = /^(http|https):\/\/*/gi;
- var tar = re.test(value) ? "_blank" : "_self"
- var act = !re.test(value) && "/"+page.current_url === value
a.nav-list-link(class={active: act} href=value target=tar)
a.nav-list-link(class={active: act} href=url_for(value) target=tar)
!= key.toUpperCase()
Loading

0 comments on commit 5e0bceb

Please sign in to comment.