mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2025-01-12 05:58:23 +01:00
Add Papers page
This commit is contained in:
parent
fe9114355e
commit
cf1452fc12
@ -37,10 +37,10 @@ theme = "beautifulhugo"
|
||||
url = "multipledataset"
|
||||
weight = 3
|
||||
|
||||
#[[menu.main]]
|
||||
# name = "Papers"
|
||||
# url = "papers"
|
||||
# weight = 4
|
||||
[[menu.main]]
|
||||
name = "Papers"
|
||||
url = "papers"
|
||||
weight = 4
|
||||
|
||||
[[menu.main]]
|
||||
name = "About"
|
||||
|
37
content/papers.html
Normal file
37
content/papers.html
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "Papers"
|
||||
date: 2019-09-30 11:30
|
||||
draft: false
|
||||
---
|
||||
<script src="/scripts/data.js" type="text/javascript"></script>
|
||||
<script src="/scripts/loadAllData.js" type="text/javascript"></script>
|
||||
<script src="/scripts/getFullDataPath.js" type="text/javascript"></script>
|
||||
<script src="/scripts/getTextFromFile.js" type="text/javascript"></script>
|
||||
<script src="/scripts/trueTypeOf.js" type="text/javascript"></script>
|
||||
<script src="/scripts/uniq.js"></script>
|
||||
<script src="/scripts/websiteFile.js"></script>
|
||||
<script src="https://cdn.rawgit.com/larsgw/citation.js/archive/citation.js/citation-0.4.0-9.js" type="text/javascript"></script>
|
||||
{{< getDataFilesName >}}
|
||||
<script>
|
||||
window.onload = async function () {
|
||||
var div=document.getElementById("papers_div")
|
||||
var Cite = require("citation-js")
|
||||
var dois =uniq(Object.values(await loadAllData()).flat().map(d => d.DOI))
|
||||
for (doi of dois) {
|
||||
var publi = await Cite.async(doi.string)
|
||||
var output = publi.format('bibliography', {
|
||||
format: 'html',
|
||||
template: 'apa',
|
||||
lang: 'en-US'
|
||||
})
|
||||
lnk = document.createElement("a")
|
||||
lnk.innerHTML = output
|
||||
lnk.target = '_blank'
|
||||
lnk.href = doi.url
|
||||
div.appendChild(lnk)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div id="papers_div">
|
||||
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user