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

Author names shown in lowercase #1731

Closed cmcouto-silva closed 4 years ago

cmcouto-silva commented 4 years ago

Bug description

The authors' names from the publication widget get always showed in lowercase, even when I type the author's name capitalized or uppercased.

For instance: authors: ["Cainã M. Couto-Silva", "Robert Ford"] will be rendered as: cainã m couto-silva, robert ford in the Publication widget (Homepage)

Interesting, the academic theme's demo in the Hugo Template's page doesn't have the same behavior, so that I assume it's something related to an update, but I can't figure out how to fix it.

To reproduce

It's easy to reproduce that. We can do that even by installing with the github zip files or with Rstudio/blogdown (I tested, also using the demo from the exampleSite folder).

Expected behavior

Names in double quotes should be showed as they were written.

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

You might wish to check that your site isn't overriding any theme files and that all of the upgrade steps were followed, including renaming name to title in the author profiles.

cmcouto-silva commented 4 years ago

I have no theme other than Academic, and I've already downloaded the last available repo... It's interesting to note that I have no other author profile than mine, and would like to not use them for in the author names, since I'm using double quotes. Otherwise would require too much work to create author profile to everyone author from every paper. If that's the case, I think it could be a feature request...

cmcouto-silva commented 4 years ago

Another note: I've download the source website from a person who has the capitalized names for the authors in hers homepage publication widget, and when I render her site in my machine, they get lowercased... so it really should be something related to an update from hugo or the academic theme... test it please and u'll see. Anyway thanks for the awesome theme!

gcushen commented 4 years ago

I cannot reproduce the behaviour you mentioned with the current version (ff252a6 ) of Academic and Hugo v0.70.0 on Mac OS.

Academic does not lowercase author names itself - you can see the author code at https://github.com/gcushen/hugo-academic/blob/master/layouts/partials/page_metadata_authors.html

Can you recreate the behaviour by installing a completely new clean site using the latest master version of Academic? If so, then perhaps it's a bug in the version of Hugo which you're using...

Also, it would be helpful to know what you mean by "Academic Version: latest" - can you provide the exact commit?

It appears that the Hugo behaviour may vary depending on the underlying filesystem. So perhaps the cause is related to Hugo and the type of Linux filesystem you are using.

Did you have preserveTaxonomyNames to true in your config.toml and upgrade from a Hugo version prior to v0.55 as that might explain a few things - https://discourse.gohugo.io/t/do-not-titlecase-tags-in-taxonomy-pages/11815/15 . There appear to have been many related issues in the Hugo forums and Hugo Github.

cmcouto-silva commented 4 years ago

@gcushen, once you mentioned that your Hugo version is 0.70, I tried to update mine, then it works! Author names are now rendered as they are written. My Hugo's version is 0.72 now.

So I think this issue can be closed, it's not a bug, but it's worth to note that depending on the Hugo version this may happen (at least in my OS, I've tested different repos and theme installing). I really spent a lot of time trying to figure out this behavior...

To install Hugo I used: snap install hugo --channel=extended

Thanks again!