Skip to content

Bibliography list does not respect custom styles #56

@nikhilweee

Description

@nikhilweee

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 }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions