From 4cfd00000184bf2c4b6017c02850a4e67d7db946 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 25 Jun 2019 21:21:14 +0100 Subject: [PATCH] feat(pub): Only generate Cite button when `cite.bib` is present Enables users to place other *.bib files in the folder, to be used for other purposes such as Blogdown bibliographies. Close #1157 --- layouts/partials/page_links.html | 2 +- layouts/partials/page_links_div.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/page_links.html b/layouts/partials/page_links.html index 94fd24bc..4e88aa4f 100644 --- a/layouts/partials/page_links.html +++ b/layouts/partials/page_links.html @@ -29,7 +29,7 @@ {{ i18n "btn_pdf" }} {{ end }} -{{ $resource := $page.Resources.GetMatch "*.bib" }} +{{ $resource := $page.Resources.GetMatch "cite.bib" }} {{ with $resource }}