Skip to content

Commit

Permalink
Update post_footer.html
Browse files Browse the repository at this point in the history
  • Loading branch information
grinsted committed Nov 21, 2024
1 parent 2b7d2c3 commit 416da17
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions layouts/partials/post_footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{ with .Params.citation }}
<span class="article-citation" style="font-size:small">
{{ . | replaceRE "\\S+?(10\\.\\d{4,9}/\\S+)\\.?" "<a href='https://doi.org/$1'>$1</a>" | safeHTML }}
</span>
<div class="article-citation" style="font-size:.9em; font-style:italic; margin: min(2rem, 1vw)">
<b>Citation:</b>
{{ . | replaceRE "\\S+?(10\\.\\d{4,9}/[^ ,.:]+)[\\.,]?" "<a href='https://doi.org/$1'>$1</a>" | safeHTML }}
</div>
{{ end }}

0 comments on commit 416da17

Please sign in to comment.