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

incorrect begin and end dates within same month #1766

Closed jbeemer closed 4 years ago

jbeemer commented 4 years ago

Describe the bug

In the acknowledgements.md, when entering begin and end dates within the same month, the entered number of the month is substituted for the entered numbers of days (see below). If the begin and end dates are in different months, it seems to work fine. I have the date format up top as follows: date_format = "Jan 1, 2006"

Here's the entered code and screenshot.

[[item]] organization = "TEMP" organization_url = "https://www.blablabla.org" title = "TEMP 2020 Conference" date_start = "2020-11-19" date_end = "2020-11-23" description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tincidunt fermentum commodo. Phasellus consequat suscipit risus viverra porttitor. Donec sed consequat orci, sed tincidunt ipsum. Nam massa augue, maximus sit amet varius ut, malesuada eu arcu. In non nisi laoreet, condimentum quam a, accumsan justo. Suspendisse arcu felis, lacinia vitae. please visit: https://www.blablabla.org"

datebug

Expected behavior

A correct date range

Technical details:

gcushen commented 4 years ago

These issues are for bug reports and feature requests. For support, see https://github.com/gcushen/hugo-academic/blob/master/.github/support.md

gcushen commented 4 years ago

Based on the information which you provided, the issue you described is not a bug. The context is unclear - there is no acknowledgements.md file in Academic. I assume perhaps you are referring to building the homepage, and more specifically, using the Accomplishments widget ( https://sourcethemes.com/academic/docs/page-builder/#accomplishments ).

The issue appears to be related to the syntax you added for the date_format. Go has an opinionated way of defining date formats, as documented at https://sourcethemes.com/academic/docs/customization/#date-format .

In your specific case, perhaps date_format = "Jan 2, 2006" provides the result you were after - Go uses "2" to represent the day whereas "1" represents the month.

This is a free, open source project. Support may be provided by the community using the official channel, as per https://github.com/gcushen/hugo-academic/blob/master/.github/support.md

dchakro commented 3 years ago

Don't you think it is a bit ignorant of you @gcushen to mark the issue as closed and classify it as a "support" request. I wonder what would be a valid "bug report" as IMHO the issue raised by @jbeemer is in fact a bug, albeit within Go (if I am to believe your explanation). This can however easily be addressed within the documentation so that users do not run into this or at least have a workaround.

I highly appreciate the work you guys are doing with thir project. Thank you so much!! But sweeping bug reports under the rug doesn't help the project IMHO.