-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
Getting 404 for all links on Netlify #26
Comments
Nice! Almost there.
Try moving your Markdown files to the '_notes/' directory (instead of 'pubzk/'). 🙂
The reason why your browser tries to download the Markdown files is because they're in a directory that Jekyll (the static site generator used in the template) considers as "static files", so it tells the browser to download the files (instead of simply viewing them).
|
As for linking to notes from other notes, you may use the double-bracket syntax (for example, using |
I was testing both the "_notes" folder and another since the first notes I tested weren't showing up. I'll try just using the notes directory. To make sure I understand, do I have to use the double brackets for links? By default I've been using That's the part that's been confusing to me. In the index.md file I have Edit: I just noticed in the syntax section it has |
There are a few things to understand before we discuss linking to notes. All Markdown notes in the
This is what Jekyll considers as front matter. Notes in the Make sure all your Markdown notes have a front-matter section (with at least a title).
As for linking to other notes from a note, there are three ways to do so (in descending order of how easy they are to use). Let's assume we have a file at
A) Double-bracket link syntax (Roam/wiki-style) You may use the double-bracket syntax to link to another note by its title, or its filename without extension (as defined by this plugin).
This approach doesn't let you use a link label that's different than the note title or filename. The next two do. B) Markdown link syntax You may use an HTML anchor tag to link directly to a note, like this: C) HTML anchor tag You may use an HTML anchor tag to link directly to a note, like this: |
I pushed a commit to show how we could fix the link syntax for a few links: ShannaSeigel@bd2321b Feel free to take inspiration from this commit! |
OK! Looks like we're getting there! And thank you for the examples in the commit. I started reading about front matter recently for my notes and didn't consider that for these test pages. I added titles to a few notes and I'm able to navigate to them from page links and from the graph 😃 Thank you so much for taking the time to reply to all my questions with such detailed responses! I'm looking forward to doing some more playing around |
I'll close this as it's not an issue with the template itself, but feel free to reach out for help. 🙂 |
Hi again, more questions!
I forked this repository, changed nothing, and then connected it to a site on netlify. I then added a few markdown notes and linked to them from the index page and the "your first note" page.
On the index, every link I click except "your first note" gives me a 404 error. If I go to "your first note" and mouse over any links I added I'm immediately prompted to download the markdown file.
No idea what I've messed up! Any thoughts?
Site: https://mv-dg.netlify.app/
Repo: https://github.com/ShannaSeigel/digital-garden-jekyll-template
The text was updated successfully, but these errors were encountered: