ppoffice / hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.
https://ppoffice.github.io/hexo-theme-icarus/
MIT License
6.28k stars 1.54k forks source link

two columns index gallery layout #1252

Open noraj opened 6 months ago

noraj commented 6 months ago

Is your feature request related to a problem? Please describe.

I would like to take advantage of Layout Configuration Files to have no widgets for pages, widgets 3-columns styles for articles, but a two columns layout for the index gallery (home page) like on hueman.

Describe the solution you'd like

Have an alternative index layout for the homepage, probably will require a new node in the configuration file.

Describe alternatives you've considered

Instead of a fixed alternative layout (2 columns index), modify the current layout to have a configurable number of columns (currently 1, but could be 2 or 3).

ppoffice commented 6 months ago

You can do it with Layout Configuration Files. Just create _config.yaml with widgets all in one column, _config.post.yaml with widgets in left and right columns, and _config.page.yaml with no widgets.

You will need to modify the layout files if you need further customizations.

noraj commented 6 months ago

Maybe it was unclear, I'm not talking about the total number of columns (with widgets sidebars), for that I know I can use Layout Configuration Files. But I was talking of the number of columns inside of the content column. Not for posts or pages but only for the homepage index.

Eg.

image

You will need to modify the layout files if you need further customizations.

Yeah of course I could do some custom dev myself but the whole point of the issue is to avoid to have to maintain a custom fork and rather have an option in the configuration file.