0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Merge pull request #3590 from felixrieseberg/iss3518

Ghost Logo navigation responds correctly to mobile
This commit is contained in:
Hannah Wolfe 2014-08-05 19:08:30 +01:00
commit a2ceffc199
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,5 @@
<header id="global-header" class="navbar">
<a class="ghost-logo" {{bind-attr href=ghostPaths.blogRoot title=ghostPaths.blogRoot}} data-off-canvas="left">
<a class="ghost-logo" data-off-canvas="left">
<span class="hidden">Ghost</span>
</a>
<nav id="global-nav" role="navigation">

View file

@ -10,6 +10,7 @@ var ApplicationView = Ember.View.extend({
body.toggleClass('off-canvas');
});
});
$('[data-off-canvas]').attr('href', this.get('controller.ghostPaths.blogRoot'));
// #### Navigating within the sidebar closes it.
$('.js-close-sidebar').on('click', function () {
body.removeClass('off-canvas');