-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
The context $.Site is not available in the following lines:
hugo-cite/layouts/partials/bibliography/bibliography-list.html
Lines 23 to 24 in ca42411
| {{- if $.Site.Params.citationStyle }} | |
| {{- $citationStyle = $.Site.Params.citationStyle }} |
This is because only
$.references was passed as a context to this template: hugo-cite/layouts/shortcodes/bibliography.html
Lines 99 to 100 in ca42411
| {{- $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 }}
Metadata
Metadata
Assignees
Labels
No labels