html5 - Duplicate navigation markup with Zurb Foundation -


i'm using zurb foundation 5 in new company website i'm in process of building.

i'm making use of off canvas menu smaller/touch screens, , want have more 'traditional' menu larger screens - type hover on main option , popup more menu options.

i've got menus defined in ol tags submenus in nested ol's.

this working... question it, i've had duplicate markup.

i have structure defined follows:

<nav>     <aside class="left-off-canvas-menu">         <!-- full menu markup here -->     </aside>     <a class="exit-off-canvas"></a> </nav>  <nav id="mainnav" class="row show-for-large-up">     <!-- full menu markup here --> </nav> 

i have following concerns

  1. it's bad seo provide links twice. concern don't know if it's issue.
  2. i've bloated source - sending twice requests , allowing user agents decide show , hide. i'm particularly trying send minimum markup possible phones.
  3. maintenance. i'm using asp.net mvc have made use of partial views i'm defining structure once , injecting twice; if wasn't using this, there's 2 points maintain menus - doesn't seem practice.

any thoughts? correct?

you have add

<nav class="left-off-canvas-menu hide-for-medium-up">     <aside >         <!-- full menu markup here -->     </aside>     <a class="exit-off-canvas"></a> </nav>  <nav id="mainnav" class="row show-for-large-up">     <!-- full menu markup here --> </nav> 

or class="left-off-canvas-menu hide-for-large-up" ever should think


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -