chore: fixes + update
This commit is contained in:
parent
ea67473957
commit
537109b071
14 changed files with 35 additions and 9 deletions
12
package-lock.json
generated
12
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "22.3.8",
|
"version": "22.3.9",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "22.3.8",
|
"version": "22.3.9",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cdransf/api-text": "^1.5.0",
|
"@cdransf/api-text": "^1.5.0",
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
"@supabase/supabase-js": "^2.45.1",
|
"@supabase/supabase-js": "^2.45.1",
|
||||||
"dotenv-flow": "^4.1.0",
|
"dotenv-flow": "^4.1.0",
|
||||||
"ics": "^3.7.6",
|
"ics": "^3.7.6",
|
||||||
"liquidjs": "^10.16.1",
|
"liquidjs": "^10.16.2",
|
||||||
"luxon": "^3.5.0",
|
"luxon": "^3.5.0",
|
||||||
"markdown-it": "^14.1.0",
|
"markdown-it": "^14.1.0",
|
||||||
"markdown-it-anchor": "^9.0.1",
|
"markdown-it-anchor": "^9.0.1",
|
||||||
|
@ -2278,9 +2278,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/liquidjs": {
|
"node_modules/liquidjs": {
|
||||||
"version": "10.16.1",
|
"version": "10.16.2",
|
||||||
"resolved": "https://registry.npmjs.org/liquidjs/-/liquidjs-10.16.1.tgz",
|
"resolved": "https://registry.npmjs.org/liquidjs/-/liquidjs-10.16.2.tgz",
|
||||||
"integrity": "sha512-1JFL/Y7ONoajrfwav37yuz5yQHU3+Pgz1XWsg9E/2T8Fp65KalNfMF8QZ3+tNETqGUIB66waOSLOi64niYZE9A==",
|
"integrity": "sha512-Lix6l2tO1nd4ua3RyTENOqzdzkIwRaX5fHiDX8DMOQz+VzT0/fXE0si526mqwSG18bh5YuUygpx26fbQeIt3+A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "22.3.8",
|
"version": "22.3.9",
|
||||||
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
"@supabase/supabase-js": "^2.45.1",
|
"@supabase/supabase-js": "^2.45.1",
|
||||||
"dotenv-flow": "^4.1.0",
|
"dotenv-flow": "^4.1.0",
|
||||||
"ics": "^3.7.6",
|
"ics": "^3.7.6",
|
||||||
"liquidjs": "^10.16.1",
|
"liquidjs": "^10.16.2",
|
||||||
"luxon": "^3.5.0",
|
"luxon": "^3.5.0",
|
||||||
"markdown-it": "^14.1.0",
|
"markdown-it": "^14.1.0",
|
||||||
"markdown-it-anchor": "^9.0.1",
|
"markdown-it-anchor": "^9.0.1",
|
||||||
|
|
|
@ -15,10 +15,15 @@
|
||||||
{%- assign entries = data | normalizeEntries: 20 -%}
|
{%- assign entries = data | normalizeEntries: 20 -%}
|
||||||
{%- for entry in entries -%}
|
{%- for entry in entries -%}
|
||||||
{%- assign summary = entry.content | strip_html | normalize_whitespace | escape -%}
|
{%- assign summary = entry.content | strip_html | normalize_whitespace | escape -%}
|
||||||
|
{%- assign utm_parameters = "utm_source=rss&utm_medium=feed&utm_campaign=" | append: utm_campaign -%}
|
||||||
{
|
{
|
||||||
"id": "{{ entry.url | encodeAmp | escape }}",
|
"id": "{{ entry.url | encodeAmp | escape }}",
|
||||||
"title": "{{ entry.title | escape }}{% if entry.authors %} via {{ entry.authors.name | escape }}{% endif %}{% if entry.rating %} ({{ entry.rating | escape }}){% endif %}",
|
"title": "{{ entry.title | escape }}{% if entry.authors %} via {{ entry.authors.name | escape }}{% endif %}{% if entry.rating %} ({{ entry.rating | escape }}){% endif %}",
|
||||||
"url": "{{ entry.url | encodeAmp | escape }}",
|
{%- if utm_campaign -%}
|
||||||
|
"url": "{{ entry.url | append: '?' | append: utm_parameters }}",
|
||||||
|
{%- else -%}
|
||||||
|
"url": "{{ entry.url | encodeAmp }}",
|
||||||
|
{%- endif -%}
|
||||||
"content_html": "{{ summary }}",
|
"content_html": "{{ summary }}",
|
||||||
"summary": "{{ summary }}",
|
"summary": "{{ summary }}",
|
||||||
{%- if entry.author -%}
|
{%- if entry.author -%}
|
||||||
|
|
|
@ -22,9 +22,14 @@
|
||||||
{%- if entry.authors %} via {{ entry.authors.name }}{%- endif -%}
|
{%- if entry.authors %} via {{ entry.authors.name }}{%- endif -%}
|
||||||
{%- if rating %} ({{ rating }}){%- endif -%}
|
{%- if rating %} ({{ rating }}){%- endif -%}
|
||||||
{%- endcapture -%}
|
{%- endcapture -%}
|
||||||
|
{%- assign utm_parameters = "utm_source=rss&utm_medium=feed&utm_campaign=" | append: utm_campaign -%}
|
||||||
<item>
|
<item>
|
||||||
<title><![CDATA[{{ entryTitle }}]]></title>
|
<title><![CDATA[{{ entryTitle }}]]></title>
|
||||||
|
{%- if utm_campaign -%}
|
||||||
|
<link>{{ entry.url | append: '?' | append: utm_parameters | encodeAmp }}</link>
|
||||||
|
{%- else -%}
|
||||||
<link>{{ entry.url | encodeAmp }}</link>
|
<link>{{ entry.url | encodeAmp }}</link>
|
||||||
|
{%- endif -%}
|
||||||
<pubDate>{{ entry.date | stringToRFC822Date }}</pubDate>
|
<pubDate>{{ entry.date | stringToRFC822Date }}</pubDate>
|
||||||
<guid isPermaLink="false">{{ entry.url | encodeAmp }}</guid>
|
<guid isPermaLink="false">{{ entry.url | encodeAmp }}</guid>
|
||||||
{%- if entry.image -%}
|
{%- if entry.image -%}
|
||||||
|
|
|
@ -9,4 +9,5 @@ permalink: "/feeds/all.json"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:collections.allContent
|
data:collections.allContent
|
||||||
updated:collections.allContent[0].date
|
updated:collections.allContent[0].date
|
||||||
|
appVersion:appVersion
|
||||||
%}
|
%}
|
|
@ -10,4 +10,6 @@ permalink: "/feeds/books.json"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:bookData
|
data:bookData
|
||||||
updated:bookData[0].date
|
updated:bookData[0].date
|
||||||
|
utm_campaign:"books_json_feed"
|
||||||
|
appVersion:appVersion
|
||||||
%}
|
%}
|
|
@ -9,4 +9,5 @@ permalink: "/feeds/links.json"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:links
|
data:links
|
||||||
updated:links[0].date
|
updated:links[0].date
|
||||||
|
appVersion:appVersion
|
||||||
%}
|
%}
|
|
@ -9,4 +9,6 @@ permalink: "/feeds/movies.json"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:movies.recentlyWatched
|
data:movies.recentlyWatched
|
||||||
updated:movies.recentlyWatched[0].lastWatched
|
updated:movies.recentlyWatched[0].lastWatched
|
||||||
|
utm_campaign:"movies_json_feed"
|
||||||
|
appVersion:appVersion
|
||||||
%}
|
%}
|
|
@ -9,4 +9,6 @@ permalink: "/feeds/posts.json"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:posts
|
data:posts
|
||||||
updated:posts[0].date
|
updated:posts[0].date
|
||||||
|
utm_campaign:"posts_json_feed"
|
||||||
|
appVersion:appVersion
|
||||||
%}
|
%}
|
|
@ -9,4 +9,5 @@ permalink: "/feeds/all"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:collections.allContent
|
data:collections.allContent
|
||||||
updated:collections.allContent[0].date
|
updated:collections.allContent[0].date
|
||||||
|
appVersion:appVersion
|
||||||
%}
|
%}
|
|
@ -10,4 +10,6 @@ permalink: "/feeds/books"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:bookData
|
data:bookData
|
||||||
updated:bookData[0].date
|
updated:bookData[0].date
|
||||||
|
utm_campaign:"books_feed"
|
||||||
|
appVersion:appVersion
|
||||||
%}
|
%}
|
|
@ -9,4 +9,5 @@ permalink: "/feeds/links"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:links
|
data:links
|
||||||
updated:links[0].date
|
updated:links[0].date
|
||||||
|
appVersion:appVersion
|
||||||
%}
|
%}
|
|
@ -9,4 +9,6 @@ permalink: "/feeds/movies"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:movies.recentlyWatched
|
data:movies.recentlyWatched
|
||||||
updated:movies.recentlyWatched[0].lastWatched
|
updated:movies.recentlyWatched[0].lastWatched
|
||||||
|
utm_campaign:"movies_feed"
|
||||||
|
appVersion:appVersion
|
||||||
%}
|
%}
|
|
@ -9,4 +9,6 @@ permalink: "/feeds/posts"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:posts
|
data:posts
|
||||||
updated:posts[0].date
|
updated:posts[0].date
|
||||||
|
utm_campaign:"posts_feed"
|
||||||
|
appVersion:appVersion
|
||||||
%}
|
%}
|
Reference in a new issue