Cite the blog post

Using blog post APA format: http://www.easybib.com/reference/guide/apa/website

Given this front matter, and this shortcode usage:

---
title: "Some Blog Title"
date: 2019-06-01T21:47:03-05:00
---

{{< cite last_name="Smith" first_name_initial="J" >}}

And this shortcode definition:

{{ $last_name := .Get "last_name" }}
{{ $first_name_initial := .Get "first_name_initial" }}
{{ $date_format := "2006, Jan 2" }}
{{ $publish_date := .Page.PublishDate.Format $date_format }}
{{ $title := .Page.Title }}
{{ $retrieve_date := now.Format $date_format }}
{{ $permalink := .Page.Permalink }}

<p>
  {{ printf "%s, %s. (%s). %s. Retrieved %s, from %s" $last_name $first_name_initial $publish_date $title $retrieve_date $permalink }}
</p>

It will output:

<p>
  Smith, J. (2019, Jun 1). Some Blog Title. Retrieved 2019, Jun 14, from http://example.org/
</p>
2 Likes