Skip to content

Commit

Permalink
Allow journal key in the publication template
Browse files Browse the repository at this point in the history
  • Loading branch information
h4iku authored and mallamanis committed Jul 22, 2024
1 parent 3f529da commit bb2af21
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion _layouts/publication.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="page">
<h1 class="page-title">{{ page.title }}</h1>
<h5>{{ page.authors }}. {{ page.conference }} {{ page.year }}</h5>
<h5>{{ page.authors }}. {{ page.conference | default: page.journal }} {{ page.year }}</h5>
<p>
{% for additional_link in page.additional_links %}
[<a href="{{ additional_link.url }}" target="_blank">{{ additional_link.name }}</a>]
Expand Down
6 changes: 3 additions & 3 deletions _publications/template
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
layout: publication
title: "Add title here"
authors: FirstName LastName, FirstName LastName
conference: Optional
conference: Optional # OR journal
year: 2000
additional_links:
- {name: "ArXiV", url: "https://arxiv.org/abs/xxxx.xxxxxx"}
- {name: "Dataset", url: "https://blah/blah"}
- {name: "ArXiV", url: "https://arxiv.org/abs/xxxx.xxxxxx"}
- {name: "Dataset", url: "https://blah/blah"}
tags: ["dataset"]
---
Abstract here
13 changes: 7 additions & 6 deletions contributing.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ Contributions of new or missing publications are very welcome. Alternative categ

### Adding a publication
To add a publication (new or missing), create a file in the `_publications` folder. The name of the file should follow the structure `lastnameYEARfirstword.markdown` where `lastname` is the last name of the first author and `firstword` is the first non-punctuation word of the work's title. Within each file, follow the structure shown in the other files. Once the file is added, the work will appear in the "All Papers" section.
<pre>

```yaml
---
layout: publication
title: The title of the Publication
authors: F. M. LastName, F. M. LastName, ...
conference: AbbreviatedNameOfConference
conference: AbbreviatedNameOfConference # Or journal: AbbreviatedNameOfJournal
year: YEAR
additional_links:
- {name: "ArXiV", url: "http://arxiv.org/abs/XXXX.YYYY"}
- {name: "website", url: "http://paperwebsite.com"}
- {name: "code", url: "https://github.com/path-to/code"}
- {name: "ArXiV", url: "http://arxiv.org/abs/XXXX.YYYY"}
- {name: "website", url: "http://paperwebsite.com"}
- {name: "code", url: "https://github.com/path-to/code"}
tags: ["tag1", "tag2"]
---
Text of abstract goes here.
</pre>
```

The `additional_links` are optional and arbitrary and they will appear on the page referring to this work. Feel free to add as many additional links as needed.

Expand Down

0 comments on commit bb2af21

Please sign in to comment.