From c35316f1cbde1adfc5f493be98e25e75184dca04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Winterhalter?= Date: Tue, 29 Oct 2024 15:13:47 +0100 Subject: [PATCH] More file types --- README.md | 2 ++ pandoc/paper.lua | 4 ++++ src/index.md | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/README.md b/README.md index eded40d..e9aedf8 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,8 @@ assume them to be empty otherwise), while the other fields (`venue`, `year`, * `img` * `zip` * `slides` + * `link` + * `git` ## Sharing files diff --git a/pandoc/paper.lua b/pandoc/paper.lua index 3f73290..c3ef466 100644 --- a/pandoc/paper.lua +++ b/pandoc/paper.lua @@ -88,6 +88,10 @@ function paper(data) icon = "" elseif type == "slides" then icon = "" + elseif type == "link" then + icon = "" + elseif type == "git" then + icon = "" else icon = "" end diff --git a/src/index.md b/src/index.md index bed3c93..9692307 100644 --- a/src/index.md +++ b/src/index.md @@ -98,6 +98,12 @@ papers: - text: Bibtex type: bib src: foo.bib + - text: Some link + type: link + src: fake.link.xyz + - text: Repo + type: git + src: github.com ``` ``` json {.paper}