diff --git a/src/index.js b/src/index.js index c2f7ef64..a7156f13 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ const OPTIONS = merge({ basePath: '', auto2top: false, name: '', - nameLink: location.pathname + nameLink: window.location.pathname }, window.$docsify) const script = document.currentScript || [].slice.call(document.getElementsByTagName('script')).pop() diff --git a/src/themes/basic/_layout.css b/src/themes/basic/_layout.css index ab51a96e..e14a1d16 100644 --- a/src/themes/basic/_layout.css +++ b/src/themes/basic/_layout.css @@ -182,13 +182,22 @@ main { /* sidebar */ .sidebar { - border-right: 1px solid rgba(0, 0, 0, .07); overflow-y: auto; padding: 40px 0; position: absolute 0 * 0 0; transition: transform 250ms ease-out; width: $sidebar-width; z-index: 20; + margin-bottom: 40px; + + &::after { + content: ''; + position: inherit; + left: $sidebar-width; + top: 0; + height: 100vh; + border-right: 1px solid rgba(0, 0, 0, .07); + } > h1 { text-align: center;