Skip to content

Commit bb2af21

Browse files
h4ikumallamanis
authored andcommitted
Allow journal key in the publication template
1 parent 3f529da commit bb2af21

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Diff for: _layouts/publication.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<div class="page">
66
<h1 class="page-title">{{ page.title }}</h1>
7-
<h5>{{ page.authors }}. {{ page.conference }} {{ page.year }}</h5>
7+
<h5>{{ page.authors }}. {{ page.conference | default: page.journal }} {{ page.year }}</h5>
88
<p>
99
{% for additional_link in page.additional_links %}
1010
[<a href="{{ additional_link.url }}" target="_blank">{{ additional_link.name }}</a>]

Diff for: _publications/template

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
layout: publication
33
title: "Add title here"
44
authors: FirstName LastName, FirstName LastName
5-
conference: Optional
5+
conference: Optional # OR journal
66
year: 2000
77
additional_links:
8-
- {name: "ArXiV", url: "https://arxiv.org/abs/xxxx.xxxxxx"}
9-
- {name: "Dataset", url: "https://blah/blah"}
8+
- {name: "ArXiV", url: "https://arxiv.org/abs/xxxx.xxxxxx"}
9+
- {name: "Dataset", url: "https://blah/blah"}
1010
tags: ["dataset"]
1111
---
1212
Abstract here

Diff for: contributing.markdown

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@ Contributions of new or missing publications are very welcome. Alternative categ
88

99
### Adding a publication
1010
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.
11-
<pre>
11+
12+
```yaml
1213
---
1314
layout: publication
1415
title: The title of the Publication
1516
authors: F. M. LastName, F. M. LastName, ...
16-
conference: AbbreviatedNameOfConference
17+
conference: AbbreviatedNameOfConference # Or journal: AbbreviatedNameOfJournal
1718
year: YEAR
1819
additional_links:
19-
- {name: "ArXiV", url: "http://arxiv.org/abs/XXXX.YYYY"}
20-
- {name: "website", url: "http://paperwebsite.com"}
21-
- {name: "code", url: "https://github.com/path-to/code"}
20+
- {name: "ArXiV", url: "http://arxiv.org/abs/XXXX.YYYY"}
21+
- {name: "website", url: "http://paperwebsite.com"}
22+
- {name: "code", url: "https://github.com/path-to/code"}
2223
tags: ["tag1", "tag2"]
2324
---
2425
Text of abstract goes here.
25-
</pre>
26+
```
2627

2728
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.
2829

0 commit comments

Comments
 (0)