Skip to content

Commit

Permalink
throw error on unknown bibliography sort
Browse files Browse the repository at this point in the history
  • Loading branch information
joksas committed Aug 18, 2023
1 parent f82e8e7 commit f3126a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/get-bibentries.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

{{ else if (eq $sorting "json_order")}}
{{ $bibliography = $bibentries }}
{{ else }}
{{ errorf "Unknown bibliography sorting: \"%s\". Please check https://github.com/joksas/hugo-simplecite#bibliography" $sorting }}
{{ end }}

{{ else }}
Expand Down

0 comments on commit f3126a3

Please sign in to comment.