diff --git a/_includes/citation.liquid b/_includes/citation.liquid
new file mode 100644
index 0000000..35bd9e3
--- /dev/null
+++ b/_includes/citation.liquid
@@ -0,0 +1,26 @@
+
+
or as a BibTeX entry:
+ +{% capture citation_code -%} +```bibtex +@article{ {{- site.last_name | downcase }}{{ page.date | date: "%Y" }}{{ page.title | slugify }}, + title = { {{- page.title -}} }, + author = { {{- site.last_name }}, {{ site.first_name }}{% if site.middle_name %} {{ site.middle_name }}{% endif -%}}, + {%- if site.title != 'blank' %}journal = { {{- site.title -}} },{% endif %} + year = { {{- page.date | date: "%Y" -}} }, + month = { {{- page.date | date: "%b" -}} }, + url = { {{- site.url }}{{ page.url -}} } +} +``` +{%- endcapture %} +{{ citation_code | markdownify }} diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 869d94c..ccb659c 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -69,6 +69,10 @@ layout: default + {% if page.citation %} + {% include citation.liquid %} + {% endif %} + {% if page.related_publications %}