Comments (4)
This seems to suggest the issue is that include_relative
is processed after jekyll-relative-links
. I believe that jekyll-relative-links
uses a generator; Liquid stuff like include_relative
is processed in the stage after generation (the render stage).
from jekyll-relative-links.
I was able to work around this with a post_render
hook:
Jekyll::Hooks.register :pages, :post_render do |doc|
doc.output = doc.output.gsub(/(href="\.\/[^.]*)\.md"/, '\1.html"')
end
Maybe something similar and less hacky could be added to jekyll-relative-links
? I'm afraid I don't know enough about Jekyll or Ruby to figure out how to make this less hacky.
from jekyll-relative-links.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from jekyll-relative-links.
Any update?
from jekyll-relative-links.
Related Issues (20)
- Support absolute links HOT 2
- Encoded Spaces Don't Work HOT 2
- Configuration options for specific directories HOT 3
- Relative links not working in excerpts HOT 15
- Relative links not working in includes HOT 22
- Relative links not working in footnotes HOT 5
- Support Jekyll 4 HOT 2
- Handle Line-Wrapped Links HOT 15
- Links with title not working
- Request to push to ruby gems HOT 1
- Relative links to images (and other non markdown content) under a collection folder don't work HOT 1
- Links starting with `~` or `/~` results in Ruby exception HOT 2
- Links with encoded spaces (%20) are not transformed HOT 1
- Support relative links pointing outside of the Jekyll site?
- Image inside Link doesn't match properly HOT 1
- Issue with Umlauts in file path on windows
- Validating links?
- unable to disable? HOT 1
- Links with hex-encoded spaces in the path aren't processed correctly HOT 6
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 jekyll-relative-links.