diff --git a/CHANGELOG.md b/CHANGELOG.md index 0499ca02..52f5074a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ -## 1.7.1 +## 1.7.3 +### Bug fixes +- Add `hr` style +- Fixed option is an empty string + +## 1.7.2 ### Bug fixes - Fix sidebar click event in mobile browser. diff --git a/src/index.js b/src/index.js index a7156f13..f6adb457 100644 --- a/src/index.js +++ b/src/index.js @@ -25,7 +25,7 @@ const script = document.currentScript || [].slice.call(document.getElementsByTag if (script) { for (const prop in OPTIONS) { const val = script.getAttribute('data-' + camel2kebab(prop)) - OPTIONS[prop] = isNil(val) ? OPTIONS[prop] : (val || true) + OPTIONS[prop] = isNil(val) ? OPTIONS[prop] : (typeof OPTIONS[prop] === 'string' ? val : true) } if (OPTIONS.loadSidebar === true) OPTIONS.loadSidebar = '_sidebar.md' if (OPTIONS.loadNavbar === true) OPTIONS.loadNavbar = '_navbar.md' diff --git a/src/themes/basic/_layout.css b/src/themes/basic/_layout.css index 1ee467ad..b02891d7 100644 --- a/src/themes/basic/_layout.css +++ b/src/themes/basic/_layout.css @@ -287,6 +287,12 @@ body.sticky { } } +.markdown-section hr { + border: none; + margin: 2em 0; + border-bottom: 1px solid #eee; +} + .markdown-section table { display: block; width: 100%; diff --git a/src/themes/buble.css b/src/themes/buble.css index cd6ed3f7..f19187d5 100644 --- a/src/themes/buble.css +++ b/src/themes/buble.css @@ -28,7 +28,7 @@ $sidebar-width: 16em; padding: 0; } - .active { + li.active { background-color: #eee; a {