chore: formatting

This commit is contained in:
Cory Dransfeldt 2024-08-10 14:43:09 -07:00
parent 3f7eb184b1
commit 189c5b90d5
No known key found for this signature in database
3 changed files with 14 additions and 14 deletions

View file

@ -1,21 +1,21 @@
{
"version": "https://jsonfeed.org/version/1",
"title": "{{ title }}",
"home_page_url": "{{ permalink | absoluteUrl: globals.url }}",
"feed_url": "{{ permalink | absoluteUrl: globals.url }}.json",
"description": "{{ description }}",
"icon": "https://cdn.coryd.dev/{{ globals.feed_image }}?class=w200&v={% appVersion %}",
"favicon": "https://cdn.coryd.dev/{{ globals.favicon_ico }}?class=w50&v={% appVersion %}",
"title": "{{ title | escape }}",
"home_page_url": "{{ permalink | absoluteUrl: globals.url | escape }}",
"feed_url": "{{ permalink | absoluteUrl: globals.url | escape }}.json",
"description": "{{ description | escape }}",
"icon": "https://cdn.coryd.dev/{{ globals.feed_image | escape }}?class=w200&v={% appVersion %}",
"favicon": "https://cdn.coryd.dev/{{ globals.favicon_ico | escape }}?class=w50&v={% appVersion %}",
"items": [
{%- assign entries = data | normalizeEntries: 20 -%}
{%- for entry in entries -%}
{
"id": "{{ entry.url | encodeAmp }}",
"url": "{{ entry.url | encodeAmp }}",
"title": "{{ entry.title | escape }}{%- if entry.authors %} via {{ entry.authors.name }}{%- endif %}{%- if entry.rating %} ({{ entry.rating }}){%- endif %}",
"content_text": "{{ entry.excerpt | escape }}",
"id": "{{ entry.url | encodeAmp | escape }}",
"url": "{{ entry.url | encodeAmp | escape }}",
"title": "{{ entry.title | escape }}{%- if entry.authors %} via {{ entry.authors.name | escape }}{%- endif %}{%- if entry.rating %} ({{ entry.rating | escape }}){%- endif %}",
"content_text": "{{ entry.excerpt | escape | replace: '\"', '\\"' }}",
"date_published": "{{ entry.date | stringToRFC822Date }}"
}}{% if forloop.last == false %},{% endif %}
}{% if forloop.last == false %},{% endif %}
{%- endfor %}
]
}