Code Monkey home page Code Monkey logo

Comments (2)

zoni avatar zoni commented on May 25, 2024

Hi @fibretothepremises, thanks for raising this.

Unfortunately, the behavior you describe is intended and entirely correct. Given two (markdown) files in the same directory, the correct path to link from one to the other is [title](file.md), not [title](../file.md) as that would imply you're linking to a file that is one directory above the current file.

However, I suspect you are using some kind of static site generator to publish the results, and this is turning a file /dir/foo.md into a URL like /dir/foo/ and /dir/bar.md into /dir/bar/, is that right?

In that case foo and bar indeed end up in different directories from each other. This could be worked around by introducing an extra ../ in the links in the source markdown files, but that's addressing the problem in the wrong place. It's up to the static site generator to account for this and change these links accordingly.

If you happen to be using Hugo, you're in luck. Check out these resources for more information and a fix:

from obsidian-export.

eucalyptus-viminalis avatar eucalyptus-viminalis commented on May 25, 2024

Thanks for the quick reply.

It's funny you are directing me to render hooks as I found your program as an alternative to render hooks. Now, if I go the render hooks route I'm not sure what the purpose of obsidian-export would be. Is it designed for other site builders? (I use Hugo).

Am I missing something here? I thought this program was built so that we don't have to use render hooks?

Thanks again. I have tried copying and pasting your code, however, to no avail. I'm beginning to think Hugo is way too much effort for a personal blog.

Cheers

from obsidian-export.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.