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.36k stars 2.9k forks source link

Authors and date appearing for project cards? #2661

Closed PierreMarchand20 closed 2 years ago

PierreMarchand20 commented 2 years ago

After checking the wowchemy repo, I think the behavior described in the discussion is a bug.

Describe the bug

Authors and date appear on project cards.

To Reproduce

Steps to reproduce the behavior:

  1. clone https://github.com/wowchemy/starter-hugo-academic
  2. Add authors to https://github.com/wowchemy/starter-hugo-academic/blob/master/content/project/example/index.md
  3. See authors and date

Actually you can check the preview (https://academic-demo.netlify.app) and see the date of the project appearing.

Expected behavior

Authors and date should not appear on project card, as discussed, it did not before, and looking at the code: https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/wowchemy/layouts/partials/views/card.html#L25 it should only appear for events.

Technical details:

go 1.15

require ( github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5 v5.0.0-20220307125723-f79d02251851 // indirect github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5 v5.0.0-20220307125723-f79d02251851 // indirect )


- Hugo Version (run `hugo version`): hugo v0.93.1+extended darwin/arm64 BuildDate=unknown
- Browser/OS: macOS with safari or firefox
- Wowchemy Template (e.g. Academic): starter-hugo-academic 

With the new structure using hugo submodules, I do not know how to debug this further.

### Discussed in https://github.com/wowchemy/wowchemy-hugo-themes/discussions/2660

<div type='discussions-op-text'>

<sup>Originally posted by **PierreMarchand20** March  7, 2022</sup>
I do not if this is a feature or a bug, but before the authors and the date did not appear for project cards: 
![image](https://user-images.githubusercontent.com/15056323/157054252-125810a2-f75a-4d5e-bb8d-3ca5e79a7968.png)

and after updating to the last version, it did:
![image](https://user-images.githubusercontent.com/15056323/157054320-3e24d8d9-3bc7-42c5-8c42-e165b03b6707.png)

TBH it does not look good with authors and date, so I hope this is a bug. I obtain a similar behavior with the current template.</div>
gcushen commented 2 years ago

Have you tried the new masonry view for the Portfolio widget?

Example: https://github.com/wowchemy/wowchemy-hugo-themes/blob/9ad66cdfc82554b6ff1dcfc949af52b4a4ebb894/starters/portfolio/content/home/portfolio.md?plain=1#L40

PierreMarchand20 commented 2 years ago

My bad, I missed this new feature, it looks good with masonry thanks! It never stops to get better :D

I just thought it was a bug looking at the code (which tests if the item type is event). I let you close if you think this is not a bug.