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.91k forks source link

Wrong staticref URL in docs #2299

Closed petzi53 closed 3 years ago

petzi53 commented 3 years ago

In the section Link to a file, the doc says

{{% staticref "uploads/cv.pdf" "newtab" %}}Download my CV{{% /staticref %}}

but correct would be

{{% staticref "files/cv.pdf" "newtab" %}}Download my CV{{% /staticref %}}

as is correctly written in the section Example: creating a Curriculum Vitae page

gcushen commented 3 years ago

It's just an example in the documentation - there is no right or wrong folder name, it's down to user preference :)

In the latest Academic starter template, the default folder for user uploads is named static/uploads/.

Thanks for the feedback, we can use the same folder name in each example to avoid confusion.

petzi53 commented 3 years ago

Thank you for your explanation. I thought already that the different names have to do with user preferences. But it turned out that static/uploads did not work for me, whereas static/files did. So I thought I might report it. As I understand, it should have worked in both cases, but it didn't. I do not know why this was the case.