Comments (2)
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.
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)
- Allow us to strip date from link generated
- Builds fail due to linting error HOT 3
- preserve mtime of source file
- Include titles
- Can't export to pdf with typst, unrecongnized subcommand HOT 1
- Why the restriction on symlinked folders?
- [Feature Request] Create tag to partially ignore content within a file. HOT 2
- Warning: Unable to find referenced note, is too verbose.
- Export only labeled files HOT 3
- Angular brackets incorrectly escaped in embedded Latex
- Postprocessor type does not enable storing state in the postprocessor
- Warning: Unable to find embedded note Reference: 'xxx' HOT 1
- Wikilinks filename followed by space not linked properly HOT 1
- Feature Request: continue even if error HOT 2
- Embedded link blocks don't work properly HOT 2
- Allow specifying directory relative to root for `--start-at`
- Flag for export only nesessary attachements HOT 2
- allow for custom filter function
- 【feature request】adding GUI for easy usage HOT 1
- [Bug] --only-tags option includes files that do not have tags
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-export.