{{ content }}
diff --git a/source/javascripts/octopress.js b/source/javascripts/octopress.js
index bdc4768..12ca23e 100644
--- a/source/javascripts/octopress.js
+++ b/source/javascripts/octopress.js
@@ -1,7 +1,7 @@
function getNav(){
- var mobileNav = $('body > nav fieldset[role=site-search]').after('').next().append('');
+ var mobileNav = $('nav[role=navigation] fieldset[role=site-search]').after('').next().append('');
mobileNav.children('select').append('');
- $($('body > nav ul[role=main-nav] a')).each(function(link) {
+ $($('ul[role=main-navigation] a')).each(function(link) {
mobileNav.children('select').append('')
});
mobileNav.children('select').bind('change', function(event){