Skip to content

Commit

Permalink
Only show button if doi is present
Browse files Browse the repository at this point in the history
  • Loading branch information
enridaga committed Jan 17, 2024
1 parent 808fd02 commit d4bb29f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _layouts/component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
---

<button onclick="toggleMetaData(this)">Metadata</button>
{% if page['doi'] %}
<button onclick="toggleApa(this)">Cite as</button>
<button onclick="toggleBibtex(this)">Bibtex</button>
{% endif %}

<div class="annotation-schema" id="metadata" style="display:none">

Expand Down

0 comments on commit d4bb29f

Please sign in to comment.