Skip to content

Commit c35316f

Browse files
More file types
1 parent 83df11a commit c35316f

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ assume them to be empty otherwise), while the other fields (`venue`, `year`,
178178
* `img`
179179
* `zip`
180180
* `slides`
181+
* `link`
182+
* `git`
181183

182184
## Sharing files
183185

pandoc/paper.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ function paper(data)
8888
icon = "<i class=\"fa-solid fa-file-zipper\"></i>"
8989
elseif type == "slides" then
9090
icon = "<i class=\"fa-solid fa-file-powerpoint\"></i>"
91+
elseif type == "link" then
92+
icon = "<i class=\"fa-solid fa-link\"></i>"
93+
elseif type == "git" then
94+
icon = "<i class=\"fa-brands fa-git-alt\"></i>"
9195
else
9296
icon = "<i class=\"fa-solid fa-file\"></i>"
9397
end

src/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ papers:
9898
- text: Bibtex
9999
type: bib
100100
src: foo.bib
101+
- text: Some link
102+
type: link
103+
src: fake.link.xyz
104+
- text: Repo
105+
type: git
106+
src: github.com
101107
```
102108
103109
``` json {.paper}

0 commit comments

Comments
 (0)