-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Open graph fully absolute urls support #947
Open graph fully absolute urls support #947
Conversation
…e urls for OG image tags. Also fix issues with site url when installed in subdirectory
…s in open_graph helper
This fixes #942 but not #943 (I might look into that later). I don't see where is the site title link you're talking about? My last commit adds What do you think? |
In the meantime, I'm searching how to fix #943. I think that no code exist to handle rewriting all urls in a post, right? So do we want to add another filter for that? or adding it to the existing one? [If I do that, I'll open another pull request] |
Thanks for your effort. What I meant by the site url is:
I'm not sure if the whole "child directory" feature was intended to implement the last use case, which is kind of link http://nodejs.org/ and http://nodejs.org/blog. If links are not rewritten, that means this PR is a bugfix in Hexo internal and possibly relates to theme developers. I brought the internal links issue up since these two issues both relates to the interpretation and use case of |
…ath concatenation" This reverts commit 1c9e40a.
So I added the last piece of normalization of About the internal links in .md files, beside a helper that would obviously help. I believe we should really consider adding a filter to detect links to images or any other file already added manually or via other tag helpers. I believe that |
Wooops, I mistakenly closed the PR.... |
Hummm... The Travis build 504 (https://travis-ci.org/hexojs/hexo/builds/43772973) is locked currently. I suppose some admin needs to re-trigger the build? |
Well, the build timed out... I don't ses any restart button. Anyone? |
As a site note (as I found in #943), if you enable <img src="images/cords-237x300.jpg" alt="attachment cords" class="image-left" />
the src url will take |
Same issue If I activate The only way for me to make it work on all pages is to use non-relative urls in |
The build was gone for so long that I can't rebuild it, make a new pr or commit may restart it. |
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
How to testgit clone -b open_graph_fully_absolute_urls_support https://github.com/guiohm/hexo.git
cd hexo
npm install
npm test |
Superseded by #4616 |
I don't quite understand why the optional subdirectory had to be added on both
config.url
andconfig.root
.I believe this is more relevant now.