Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External links in navigation? #36

Open
pimentel opened this issue Dec 4, 2015 · 1 comment
Open

External links in navigation? #36

pimentel opened this issue Dec 4, 2015 · 1 comment

Comments

@pimentel
Copy link

pimentel commented Dec 4, 2015

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

ptsmonteiro pushed a commit to beyondnebula/beyondnebula.github.io that referenced this issue Aug 18, 2017
@michaelwsherman
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants