Last active
September 21, 2017 06:55
-
-
Save jimjam-slam/0db0a1efa40d12209eeb02cd9a2b18f8 to your computer and use it in GitHub Desktop.
Add an academic publication list to your academic blog.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="publist"> | |
<ul> | |
{% for post in site.categories.science %} | |
{% if post.work-type == 'Paper' %} | |
<li> | |
<a href="{% if post.ref-doi %}http://dx.doi.org/{{ post.ref-doi }}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}"><h2>{{ post.ref-authors }} ({{ post.ref-year }}).</h2></a> | |
<p>{{ post.ref-title }}. <em>{{ post.ref-journal}}</em>{% if post.ref-vol %}, {{ post.ref-vol }}{% endif %}. <a href="http://dx.doi.org/{{ post.ref-doi }}">doi: {{ post.ref-doi }}</a></p> | |
</li> | |
{% endif %} | |
{% endfor %} | |
<ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the YAML (front matter) block for an example paper (I didn't add it to the gist because Github formats it poorly):