From d45cfed546262e18a25b06bd8d3fcb37e6ab5190 Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@gmail.com>
Date: Tue, 18 Aug 2020 13:39:09 -0500
Subject: [PATCH] Add citebadge to publications page

---
 layouts/custom/publications.html | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/layouts/custom/publications.html b/layouts/custom/publications.html
index 41a1a23..b2e02d7 100644
--- a/layouts/custom/publications.html
+++ b/layouts/custom/publications.html
@@ -1,5 +1,7 @@
 {{ partial "header.html" . }}
 
+<link rel="stylesheet" type="text/css" href="https://cdn.scite.ai/badge/scite-badge-latest.min.css">
+
 <div class="header">
     <h1>{{ .Title }}</h1>
     <h2>{{ .Description }}</h2>
@@ -38,6 +40,12 @@
             </div>
             <div class="column right">
                 <h3>{{.Params.pname}}</h3>
+                <div class="scite-badge"
+                    data-doi="{{.Params.doi}}"
+                    data-layout="horizontal"
+                    data-show-zero="true"
+                    data-show-labels="true">
+                </div>
             </div>
         </div>
         {{ if not (eq .Params.ppubmed "") }}
@@ -61,4 +69,6 @@
     </div>
 </div>
 
+<script async type="application/javascript" src="https://cdn.scite.ai/badge/scite-badge-latest.min.js"></script>
+
 {{ partial "footer.html" . }}
\ No newline at end of file
-- 
GitLab