From a29d3e525f8aacee4bae9a0adc8b985e9269701f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Argel=20Ram=C3=ADrez=20Reyes?= Date: Wed, 29 Dec 2021 00:45:41 -0600 Subject: [PATCH] Added automatic converter from .bib found in https://github.com/tlienart/Franklin.jl/issues/555\#issuecomment-706748299 --- _assets/pub.md | 4 +++ research/index.md | 79 ++--------------------------------------------- utils.jl | 5 ++- 3 files changed, 10 insertions(+), 78 deletions(-) create mode 100644 _assets/pub.md diff --git a/_assets/pub.md b/_assets/pub.md new file mode 100644 index 0000000..c51da3b --- /dev/null +++ b/_assets/pub.md @@ -0,0 +1,4 @@ +--- +nocite: | + @ramirezreyesSpontaneousCyclogenesisRadiative2021a, +... diff --git a/research/index.md b/research/index.md index 279e545..a4eb831 100644 --- a/research/index.md +++ b/research/index.md @@ -1,77 +1,2 @@ -# Research - - - -~~~ -
- -
-~~~ +## Peer-reviewed papers +{{pub}} diff --git a/utils.jl b/utils.jl index 20eea28..1085882 100644 --- a/utils.jl +++ b/utils.jl @@ -33,7 +33,7 @@ end twitter="", gscholar="", github="", linkedin="", email="") io = IOBuffer() write(io, html("
")) - isempty(name) || write(io, html("

$name

")) + isempty(name) || write(io, html("

$name

")) isempty(job) || write(io, html("

$job

")) if !isempty(link) if isempty(linkname) @@ -297,6 +297,9 @@ function hfun_allposts() return show_posts(all_posts(), byyear=true) end +function hfun_pub() + read(`pandoc -f markdown+yaml_metadata_block+citations+raw_html -C _assets/pub.md --bibliography=_assets/MyAuthoredPapers.bib --mathjax`,String) +end # --------------------------------- # # Working with Javascript Libraries #