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

The talk page shows publishing date, not the date of talk #985

Closed laurentperrinet closed 5 years ago

laurentperrinet commented 5 years ago

in the metadata, the different fields are used specifically for talks:

Currently, the scheduled date is shown when displaying the talk in the talk listing page, not the actual date, which will be more comprehensible for readers.

Bertbk commented 5 years ago

You mean in the talk listing page? If yes, this is a problem related with Hugo's YamL parser (I think, see issue #555). This choice is a "hack" before the parser is fix.

gcushen commented 5 years ago

As @Bertbk stated, this was a workaround for a problem with Hugo parsing dates from YAML.

We since developed a much more optimal workaround in v4.1+, allowing everything to fully work as intended. Refer to the last point in the Breaking Changes section at https://sourcethemes.com/academic/updates/v4.1.0/

laurentperrinet commented 5 years ago

ok, great, using

transformed the malformed

image

into a correct one:

image

thanks for the quick answer and the pointer to the doc.

laurentperrinet commented 4 years ago

Hi,

The solution

ok, great, using

  • publishDate for the scheduled page publish date
  • and date for date and time for the talk

Worked for me. What is your formatting problem?

Perhaps related, There was one bit of code I was using was the small change to the import of publications from a bibtex file:

https://github.com/sourcethemes/academic-admin/pull/32

Be sure to use the ‘date’ entry instead of ‘year’.

Cheers, Laurent

-- Laurent Perrinet - INT (UMR 7289)/CNRS https://laurentperrinet.github.io/

Le 31 oct. 2019 à 00:17, Quan Nguyen notifications@github.com a écrit :  I am running into the same problem. I tried to replaced date with publishDate and time_start with date, but it did not work. Could you please share your code Laurent?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

rewanthtammana commented 2 years ago

I'm facing the same issue. The date on the talk page shows publishing date. How can I set it to the future date.

image

My configuration -

# Talk start and end times.
#   End time can optionally be hidden by prefixing the line with `#`.
date: "2022-10-13TT00:00:00Z"
# date_end: "2022-10-13T00:00:00Z"
all_day: true

# Schedule page publish date (NOT talk date).
publishDate: "2022-10-08T00:00:00Z"

Irrespective of date, it picks up the publishDate field & displays it. How can I fix it? Any suggestions please.