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

Bibliography list does not respect custom styles #56

Open
nikhilweee opened this issue Apr 5, 2022 · 0 comments
Open

Bibliography list does not respect custom styles #56

nikhilweee opened this issue Apr 5, 2022 · 0 comments

Comments

@nikhilweee
Copy link

The context $.Site is not available in the following lines:

{{- if $.Site.Params.citationStyle }}
{{- $citationStyle = $.Site.Params.citationStyle }}

This is because only $.references was passed as a context to this template:
{{- $bibParams := dict "references" $references }}
{{- partial "bibliography/bibliography-list.html" $bibParams }}

An easy fix is to add another key in the context dictionary:

{{- $bibParams := dict "references" $references "Site" $.Site }}
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

1 participant