Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions layouts/bibliography/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,7 @@ <h1>{{ .Title }}</h1>
{{- end -}}
</p>
<p>
<strong>View document:</strong> {{ with .Params.url_source }}
<a href="{{ . | safeURL }}" target="_blank" rel="noopener noreferrer">{{ . }}</a>
{{- else -}}
No URL to the document is available.
{{- end -}}
<br>
</p>
<p>
<strong>Abstract:</strong>
<strong>Abstract</strong>
<br>
{{- with .Params.abstract -}}
{{- . | htmlEscape | markdownify -}}
Expand Down Expand Up @@ -201,11 +193,20 @@ <h1>{{ .Title }}</h1>
{{ end }}
{{- end -}}
</p>
<p>
{{- if .Params.url_source -}}
<a class="btn btn-primary btn-sm"
href="{{ .Params.url_source | safeURL }}"
target="_blank" rel="noopener noreferrer">View</a>
{{ else }}
No URL to the document is available.
{{ end }}
</p>
<p>
{{- if .Params.zotero_url -}}
<a class="btn btn-primary btn-sm"
href="{{ .Params.zotero_url | safeURL }}"
target="_blank" rel="noopener noreferrer">View on Zotero</a>
target="_blank" rel="noopener noreferrer">Zotero Record</a>
{{- end -}}
{{- /* Build Zotero API params (group id + item key + style) */ -}}
{{- $gid := site.Params.zotero_group_id -}}
Expand Down Expand Up @@ -267,7 +268,7 @@ <h1>{{ .Title }}</h1>
}
.citation-header { display:flex; justify-content:space-between; align-items:center; padding:.75rem 1rem; border-bottom:1px solid #eee; }
.citation-dismiss{ background:none; border:0; font-size:1.25rem; line-height:1; cursor:pointer; }
.citation-close
.citation-close
.citation-tabs { display:flex; gap:.25rem; padding:.5rem 1rem; border-bottom:1px solid #eee; }
.tab-btn {
border: 1px solid #ddd; background:#f8f9fa; border-radius:4px; padding:.35rem .6rem; cursor:pointer;
Expand Down