Closed gaotianxiang closed 7 years ago
Thanks for the enhancement!
Hi, This seems to be broken in the current version. On the demo website, clicking on "cite" gives a 404 error.
@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.
@gcushen, ah it is indeed working perfectly when hosting the demo website locally. Sorry for the false bug report.
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.
Is there a way to change the text of "cite" button from "cite" to "Bibtex" or something else?
Is there a way to change the text of "cite" button from "cite" to "Bibtex" or something else?
You can modify the language pack
Done, thanks for the suggestion 😄
A 'Cite' button will be automatically generated when a Bibtex file, such as
my-paper.bib
, is placed instatic/files/citations/
folder. Note that the Bibtex filename should match the name of your publication Markdown file incontent/publication/
, such that you may havecontent/publication/**my-paper**.md
andstatic/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 .