forked from mlresearch/v102
-
Notifications
You must be signed in to change notification settings - Fork 1
/
citeproc.yaml
33 lines (33 loc) · 1.76 KB
/
citeproc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
layout: null
---
{% assign sorted = site.posts | sort: 'order' %}{% for post in sorted %}{% capture id %}{{ post.id | remove_first: '/' }}{% endcapture %}
- title: '{{ post.title | replace: "'", "''" }}'{% if post.abstract %}
abstract: '{{ post.abstract | replace: "'", "''"}}'{% endif %}
volume: {{ post.volume }}
URL: {{site.url}}{{site.baseurl}}{{ post.url }}{% if post.doi %}
DOI: {{ post.doi }}{% endif %}{% if post.pdf %}
PDF: {{ post.pdf }}{% endif %}
edit: https://github.com/{{ site.github_username }}/{% if site.github.repository %}{{ site.github.repository }}{% else %}{{ site.baseurl }}{% endif %}/edit/{% if site.github.repository contains 'github.io' %}master{% else %}gh-pages{% endif %}/{{ post.path }}{% if post.number %}
issue: {{ post.number }}{% endif %}{% if post.series %}
series: '{{ post.series }}'{% endif %}
container-title: '{{ post.container-title | replace: "'", "''" }}'
publisher: '{{ post.publisher | replace: "'", "''" }}'
author: {% for person in post.author %}
- family: {{ person.family }}
given: {{ person.given }}{% if person.orcid %}
orcid: {{ person.orcid }}{% endif %}{% endfor %}
editor: {% for person in site.editor %}
- family: {{ person.family }}
given: {{ person.given }}{% if person.orcid %}
orcid: {{ person.orcid }}{% endif %}{% endfor %}{% if post.address %}
address: {{ post.address }}{% endif %}
page: {{ post.page }}
id: {{ id }}{% if post.type %}
type: {{ post.type }}{% endif %}
issued:
date-parts: {% for date-part in post.issued.date-parts %}
- {{ date-part }}{% endfor %}{% if post.firstpage %}
firstpage: {{ post.firstpage }}{% endif %}{% if post.lastpage %}
lastpage: {{ post.lastpage }}{% endif %}{% if post.date %}
published: {{ post.date }}{% endif %}{% endfor %}