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

Feature request: gallery page generator #3907

gapplef opened this issue Dec 5, 2019 · 2 comments

Feature request: gallery page generator #3907

gapplef opened this issue Dec 5, 2019 · 2 comments


Copy link

@gapplef gapplef commented Dec 5, 2019

Check List

Please check followings before submitting a new feature request.

  • I have already read Docs page
  • I have already searched existing issues

Feature Request

Is it possible to have a hexo-generator-gallery plugin that create a gallery page which index all the photos used in the published articles, namely, an archive page for photos used in all posts, similar to what hexo-generator-archive did for the posts or whathexo-generator-tag did for tags.
And it would be better to have a timeline that sort the photos with the published time of the post in which these photos appeared.


This comment has been minimized.

Copy link

@SukkaW SukkaW commented Dec 5, 2019

There are various types of timeline. In fact, I could find a lot of templates on codepen and they are all in different structures and styles.

Not only Hexo doesn't know what HTML should be output that will be compatible with different css frameworks, templates or themes, but also Hexo doesn't know what data should be included: image url, thumbnail url, titles, captions, description, and so on. It is vary for different users and different websites/themes, thus Hexo can't bring up a specific model for Photo or Image. The feature should be done by a theme or a third-party plugin. You could write a custom hexo-generator-gallery plugin if you want.

But if you really have some good ideas about Photo model, You can start with an example: the Post model. Looking forward to your Pull Request.


This comment has been minimized.

Copy link

@gapplef gapplef commented Dec 6, 2019

By timeline I mean something similar to weibo's gallery, a responsive waterfall layout sorted with post time, separated by month, as simple as possible, without any fancy style. I'm not familiar with web dev, but I think this should fit various themes.

  • time can get from the post's front-matter;
  • url can get from the insert line of image(markdown or html),
    relatively path may have to transform to absolute one;
  • squared thumbnail can make timeline more tidy,
    great to have if can be easily generate, but not something absolutely necessary;
  • titles, captions, description etc. are all not really need;
  • a link to the post in which image appeared would be great,
    we can then easily find out the story about certain image, including titles, captions, description etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.