Skip to content
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

can not use relative path images inside group picture #639

Closed
3 tasks done
wxsms opened this issue Apr 19, 2023 · 4 comments
Closed
3 tasks done

can not use relative path images inside group picture #639

wxsms opened this issue Apr 19, 2023 · 4 comments
Labels
Bug Something isn't working 📖 Docs Improvements or additions to documentation Solved

Comments

@wxsms
Copy link

wxsms commented Apr 19, 2023

Issue Checklist

Expected behavior

I have a folder like this:

a/b.jpg
a.md

inside a.md:

![image](b.jpg)

It works after enable post_asset_folder in hexo config.

but if I add gp:

{% gp 2-2 %}
![image](b.jpg)
{% endgp %}

It's not working anymore.

Actual behavior

it's not working.

image

Steps to reproduce the behavior

clone this repo: https://github.com/wxsms/blog

switch to hexobug1 branch, run dev server, open the first article.

Node.js and NPM Information

v16.19.0
8.19.3

Package dependencies Information

you make checkout my repo https://github.com/wxsms/blog/tree/hexobug1 for details.

Hexo Configuration

you make checkout my repo https://github.com/wxsms/blog/tree/hexobug1 for details.

NexT Configuration

you make checkout my repo https://github.com/wxsms/blog/tree/hexobug1 for details.

Other Information

No response

@wxsms wxsms added the Bug Something isn't working label Apr 19, 2023
@stevenjoezhang
Copy link
Member

It's currently unable to fix the bug. Due to the design of Hexo, we're not able to retrieve the value of the current post path inside the group picture tag.

@wxsms
Copy link
Author

wxsms commented Apr 19, 2023

It's ok. Can I PR to https://theme-next.js.org/docs/tag-plugins/group-pictures and make a statement about this?

@stevenjoezhang
Copy link
Member

Sure! You can inform users to write the absolute path of images inside the tags.

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working 📖 Docs Improvements or additions to documentation Solved
Projects
None yet
Development

No branches or pull requests

2 participants