Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Place "Cite" button after custom links #389

Closed
BenjaminBorn opened this issue Nov 20, 2017 · 2 comments
Closed

Place "Cite" button after custom links #389

BenjaminBorn opened this issue Nov 20, 2017 · 2 comments

Comments

@BenjaminBorn
Copy link

First of all, thank you so much for this great project.

I really like the new cite feature. However, right now the cite button is placed after the built-in urls but in front of any custom urls. Is there a way to move it to the end of the line?

@tobiasgerstenberg
Copy link

You can get the desired behavior by moving lines 14-21 (pasted below) in file /themes/academic/layouts/partials/publication_links.html the to bottom of the file:

{{ $directory := "static/files/citations/" }} {{ $filename := printf "%s%s.bib" $directory $.File.TranslationBaseName }} {{ if fileExists $filename }} <button type="button" class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}} js-cite-modal" data-filename="{{ printf "files/citations/%s.bib" $.File.TranslationBaseName | relURL }}"> {{ i18n "btn_cite" }} </button> {{ end }}

@BenjaminBorn
Copy link
Author

Perfect. Thanks for the quick help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants