Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There's a few issues going on here in &lt;= ie8 as I found with my octopress site.</p> <p>(I'm using Octopress v2.0 as cloned from the master branch on March-11-2013)</p> <ul> <li>the site uses html5 tags</li> <li>the upgrade to Modernizr 2.6 drops respond.js which means the site always looks like the mobile version</li> <li>and the navigate dropdown labels don't work in any ie versions</li> </ul> <p>So, The following worked for me on my site:</p> <ol> <li><p>Add </p> <pre><code>&lt;!--[if lt IE 9]&gt; &lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt; &lt;script src="{{ root_url }}/javascripts/libs/respond.min.js"&gt;&lt;/script&gt; &lt;![endif]--&gt; </code></pre> <p>to <code>source/_includes/head.html</code> before the <code>&lt;/head&gt;</code> tag</p></li> <li><p>Get the <code>respond.min.js</code> file </p> <p><code>git clone https://github.com/scottjehl/Respond.git</code></p> <p>and put it in <code>source/javascripts/libs</code></p></li> </ol> <p>This should fix the styling and media query problem for &lt;= ie8</p> <ol> <li><p>To fix the navigate drop down will need to fix the use of link.text attribute in octopress.js. The version of octopress I cloned includes jquery so:</p> <p>in <code>source/javascripts/octopress.js</code> make the changes to getNav() as indicated below, replacing <code>link.text</code> with <code>$(link).text()</code> as IE uses innerText rather than text attribute on the links.</p> <p>Heres the change set diff:</p> <pre><code>@@ -3,10 +3,10 @@ mobileNav.children('select').append('&lt;option value=""&gt;Navigate&amp;hellip;&lt;/option&gt;'); $('ul[role=main-navigation]').addClass('main-navigation'); $('ul.main-navigation a').each(function(i, link) { - mobileNav.children('select').append('&lt;option value="'+link.href+'"&gt;&amp;raquo; '+link.text+'&lt;/option&gt;'); + mobileNav.children('select').append('&lt;option value="'+link.href+'"&gt;&amp;raquo; '+$(link).text()+'&lt;/option&gt;'); }); $('ul.subscription a').each(function(i, link) { - mobileNav.children('select').append('&lt;option value="'+link.href+'"&gt;&amp;raquo; '+link.text+'&lt;/option&gt;'); + mobileNav.children('select').append('&lt;option value="'+link.href+'"&gt;&amp;raquo; '+$(link).text()+'&lt;/option&gt;'); }); mobileNav.children('select').bind('change', function(event) { if (event.target.value) { window.location.href = event.target.value; } </code></pre></li> </ol> <p>The octopress issue tracking is closed on github for the moment so some or all of these things will hopefully be fixed by the next release. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload