---
permalink: /blog/json.json
eleventyExcludeFromCollections: true
metadata:
    title: "Garrett's Blog"
    description: "Write-ups and musings by Garrett Mills, often technical, sometimes not."
    language: en
    base: "https://garrettmills.dev"
    author:
        name: "Garrett Mills"
        email: "shout@garrettmills.dev"
---
{
	"version": "https://jsonfeed.org/version/1.1",
	"title": "{{ metadata.title }}",
	"language": "{{ metadata.language }}",
	"home_page_url": "{{ metadata.base | addPathPrefixToFullUrl }}",
	"feed_url": "{{ permalink | htmlBaseUrl: metadata.base }}",
	"description": "{{ metadata.description }}",
	"icon": "{{ metadata.base }}/assets/favicon/apple-touch-icon.png",
	"authors": [
		{
			"name": "{{ metadata.author.name }}",
			"url": "{{ metadata.base }}/#about"
		}
	],
	"items": [
		{%- for post in collections.blog %}
			{%- capture absolutePostUrl %}{{ post.url | htmlBaseUrl: metadata.base }}{% endcapture %}
			{
				"id": "{{ absolutePostUrl }}",
				"url": "{{ absolutePostUrl }}",
				"title": "{{ post.data.title }}",
				"content_html": {% if post.content %}{{ post.content | renderTransforms: post.data.page, metadata.base | json }}{% else %}""{% endif %},
				"date_published": "{{ post.date | dateToRfc3339 }}",
				"date_modified": "{{ post.date | dateToRfc3339 }}",
				"author": {
					"name": "{{ metadata.author.name }}",
					"url": "{{ metadata.base }}/#about"
				}
			}
			{% unless forloop.last %},{% endunless %}
		{%- endfor %}
	]
}
