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

Publications disappear when multilingual support is added #1851

Closed JVAQUEROM closed 4 years ago

JVAQUEROM commented 4 years ago

Description of the bug

I have made a website with Academic hugo theme, with two languages (english and spanish). If I put the publications section only in the content/publication/ folder. However, when I copy it to content/es/publication, some publications disappear. Which publications disappear seems pretty random. The index.xml file seems to not have all the publications, although they are in the public/ folder. Notice this is happening with R blogdown package, although I don't think it is related to that.

To Reproduce

Steps to reproduce the behavior:

  1. Create a few publications (in my case, some of the have the same first author and year, a total of ~8).
  2. Build the site.
  3. See that all the publications are there.
  4. Copy the publications to the Spanish version of the web (content/es/publication). content/es/publication/_index.md is adaptaded to spanish
  5. Build the website.
  6. Click in "Quickly discover relevant content by filtering publications. "
  7. You will only find that some of the publications, not all (4-5 out of the 8).

Expected behavior

One would expect all the publications to appear.

Technical details:

gcushen commented 4 years ago

If publications are disappearing, then the issue is likely related to Blogdown or Hugo. Wowchemy/Academic relies on Hugo to generate the files. Blogdown wraps Hugo, so any issue in Blogdown can be propagated down. Consider raising the issue there.