HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

Character string representing post categories doesn't wrap for small screens #2558

Closed jeremyboyd closed 2 years ago

jeremyboyd commented 2 years ago

I have these categories listed in the YAML of one of my posts:

categories: ["social class", "unethical behavior", "driving", "attention", "Bayesian models", "hierarchical models"]

These get rendered as a comma-separate string on the Recent Posts widget in my blog:

https://jeremyboyd.org/#posts

When the screen size is too small (e.g., on mobile), the categories string spills out of the container. Looks like the string isn't responsive to screen size--it doesn't automatically wrap like it should. I've included a screenshot that shows what happens--text spills out the right side of the screen. If you shorten the number of categories in the category string then no spillage occurs and everything renders correctly on small screens.

Screen Shot 2021-12-17 at 12 01 37 PM

gcushen commented 2 years ago

The category system wasn't intended to be used with so many labels per page. Does the tag system not meet your requirements for tagging pages with many labels?

jeremyboyd commented 2 years ago

I like categories over tags because the category labels appear in the posts widget. That way readers can see a list of posts with titles, abstracts, and keywords (categories) all at a glance.

If there's not a way to get categories to wrap, is there a way to get tags to show up in the posts widget?

Love the theme. Really appreciate all of the work you've done!

github-actions[bot] commented 2 years ago

This issue is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the main branch, consider contributing a Pull Request with a fix.

If this is a feature request, and you feel that it is still relevant and valuable, consider contributing a Pull Request for review.

This issue will automatically close soon if no further activity occurs. Thank you for your contributions.