Skip to content

Commit

Permalink
More file types
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoWinterhalter committed Oct 29, 2024
1 parent 83df11a commit c35316f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ assume them to be empty otherwise), while the other fields (`venue`, `year`,
* `img`
* `zip`
* `slides`
* `link`
* `git`

## Sharing files

Expand Down
4 changes: 4 additions & 0 deletions pandoc/paper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ function paper(data)
icon = "<i class=\"fa-solid fa-file-zipper\"></i>"
elseif type == "slides" then
icon = "<i class=\"fa-solid fa-file-powerpoint\"></i>"
elseif type == "link" then
icon = "<i class=\"fa-solid fa-link\"></i>"
elseif type == "git" then
icon = "<i class=\"fa-brands fa-git-alt\"></i>"
else
icon = "<i class=\"fa-solid fa-file\"></i>"
end
Expand Down
6 changes: 6 additions & 0 deletions src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit c35316f

Please sign in to comment.