diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-07-21 15:32:10 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-07-24 17:22:33 -0400 |
commit | b4584bd01cce557d98c8cb738da0a87e2d8dd0c5 (patch) | |
tree | 2cfc5b8397f1e16869addb44860511d5dd0bec7c /.themes/classic | |
parent | 16b03308bdc08cc7fd7b52a6e1dc19338bff412a (diff) | |
download | my_new_personal_website-b4584bd01cce557d98c8cb738da0a87e2d8dd0c5.tar.xz my_new_personal_website-b4584bd01cce557d98c8cb738da0a87e2d8dd0c5.zip |
improved navigation selection and fixed mobile nav select
Diffstat (limited to '')
-rw-r--r-- | .themes/classic/source/_includes/navigation.html | 2 | ||||
-rw-r--r-- | .themes/classic/source/_layouts/default.html | 2 | ||||
-rw-r--r-- | .themes/classic/source/javascripts/octopress.js | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/.themes/classic/source/_includes/navigation.html b/.themes/classic/source/_includes/navigation.html index 6ffe9a86..4b1885eb 100644 --- a/.themes/classic/source/_includes/navigation.html +++ b/.themes/classic/source/_includes/navigation.html @@ -1,4 +1,4 @@ -<ul role="subscription" data-subscription="rss{% if site.subscribe_email %} email{% endif %}"> +<ul role=subscription data-subscription="rss{% if site.subscribe_email %} email{% endif %}"> <li><a href="{{ site.subscribe_rss }}" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li> {% if site.subscribe_email %} <li><a href="{{ site.subscribe_email }}" rel="subscribe-email" title="subscribe via email">Email</a></li> diff --git a/.themes/classic/source/_layouts/default.html b/.themes/classic/source/_layouts/default.html index f3c24005..5b6240de 100644 --- a/.themes/classic/source/_layouts/default.html +++ b/.themes/classic/source/_layouts/default.html @@ -2,7 +2,7 @@ {% include head.html %} <body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %}> <header>{% include header.html %}</header> - <nav>{% include navigation.html %}</nav> + <nav role=navigation>{% include navigation.html %}</nav> <div id="main"> <div id="content"> {{ content | expand_urls: root_url | smart_quotes }} diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index bdc47683..12ca23ea 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -1,7 +1,7 @@ function getNav(){ - var mobileNav = $('body > nav fieldset[role=site-search]').after('<fieldset role="mobile-nav"></fieldset>').next().append('<select></select>'); + var mobileNav = $('nav[role=navigation] fieldset[role=site-search]').after('<fieldset role="mobile-nav"></fieldset>').next().append('<select></select>'); mobileNav.children('select').append('<option value="">Navigate…</option>'); - $($('body > nav ul[role=main-nav] a')).each(function(link) { + $($('ul[role=main-navigation] a')).each(function(link) { mobileNav.children('select').append('<option value="'+link.href+'">• '+link.text+'</option>') }); mobileNav.children('select').bind('change', function(event){ |