t413/SinglePaged

External links in navigation?

Opened this issue · 1 comments

This is perhaps a stupid question, but as a web newbie I am having trouble adding an external link in the navigation. For example, I would like to link to my external blog doing the following (in index.html line 18):

  <div id="main">

    <nav><ul>
      {% for node in site.posts reversed %}
        {% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %}
        <li class="p-{{id}}"><a href="#{{id}}">{{node.title}}</a></li>
      {% endfor %}
        <li><a href="https://haroldpimentel.wordpress.com/" target="_blank">blog</a></li>
    </ul></nav>

The link does not work (and in fact breaks all of the other links in the navigation) and gives the following error in the developer console:

Uncaught TypeError: Cannot read property 'top' of undefined
(anonymous function) @ site.js:62
n.extend.each @ jquery.min.js:2
n.fn.n.each @ jquery.min.js:2
populateDestinations @ site.js:59
(anonymous function) @ site.js:34
n.event.dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3

Does anyone have any ideas how to fix this?

Thank you,

Harold

@pimentel I'm also having this issue, did you ever find a fix? I see the commit, but it's not clear to me if its a fix or not.