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

publication: add bibtex option to publication links #302

Closed gaotianxiang closed 7 years ago

gcushen commented 7 years ago

Done, thanks for the suggestion 😄

A 'Cite' button will be automatically generated when a Bibtex file, such as my-paper.bib, is placed in static/files/citations/ folder. Note that the Bibtex filename should match the name of your publication Markdown file in content/publication/, such that you may have content/publication/**my-paper**.md and static/files/citations/**my-paper**.bib.

Refer to the latest demo (https://sourcethemes.com/academic/) and example site code (https://github.com/gcushen/hugo-academic/tree/master/exampleSite) for an example.

If using a non-English translation, you may need to update the translation file in themes/academic/i18n/ as new language items have been added: https://github.com/gcushen/hugo-academic/commit/3d4884a9f045a5895746e5bca694ec230574fcf2#diff-916a95a0463ea1bd7c2d26bd73fbc9b2 .

gaotianxiang commented 7 years ago

Thanks for the enhancement!

hogtave commented 6 years ago

Hi, This seems to be broken in the current version. On the demo website, clicking on "cite" gives a 404 error.

gcushen commented 6 years ago

@hogtave thanks for reporting this. However, the code is not broken. The demo website is not hosted by us, it is hosted by Hugo team - and they may not have uploaded the citation file for security reasons, leading to the error in their demo of Academic.

hogtave commented 6 years ago

@gcushen, ah it is indeed working perfectly when hosting the demo website locally. Sorry for the false bug report.

EOneita commented 6 years ago

Is there a simple way to remove the cite button altogether? I have removed the citation files but the button remains. I've searched through the .md files but so far seem to be missing a way to set that to false.

dhruvpatel108 commented 3 years ago

Is there a way to change the text of "cite" button from "cite" to "Bibtex" or something else?

rodrigoalcarazdelaosa commented 3 years ago

Is there a way to change the text of "cite" button from "cite" to "Bibtex" or something else?

You can modify the language pack