chore(recent-activity.liquid): carry featured post marker over to recent activity

This commit is contained in:
Cory Dransfeldt 2025-04-05 21:50:37 -07:00
parent 4cf80298ef
commit 22e8d1b126
No known key found for this signature in database
4 changed files with 26 additions and 18 deletions

34
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "1.1.12", "version": "1.2.12",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "1.1.12", "version": "1.2.12",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"minisearch": "^7.1.2", "minisearch": "^7.1.2",
@ -1046,14 +1046,14 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/cacheable": { "node_modules/cacheable": {
"version": "1.8.9", "version": "1.8.10",
"resolved": "https://registry.npmjs.org/cacheable/-/cacheable-1.8.9.tgz", "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-1.8.10.tgz",
"integrity": "sha512-FicwAUyWnrtnd4QqYAoRlNs44/a1jTL7XDKqm5gJ90wz1DQPlC7U2Rd1Tydpv+E7WAr4sQHuw8Q8M3nZMAyecQ==", "integrity": "sha512-0ZnbicB/N2R6uziva8l6O6BieBklArWyiGx4GkwAhLKhSHyQtRfM9T1nx7HHuHDKkYB/efJQhz3QJ6x/YqoZzA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"hookified": "^1.7.1", "hookified": "^1.8.1",
"keyv": "^5.3.1" "keyv": "^5.3.2"
} }
}, },
"node_modules/call-bind-apply-helpers": { "node_modules/call-bind-apply-helpers": {
@ -1084,9 +1084,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001709", "version": "1.0.30001712",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001709.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001712.tgz",
"integrity": "sha512-NgL3vUTnDrPCZ3zTahp4fsugQ4dc7EKTSzwQDPEel6DMoMnfH2jhry9n2Zm8onbSR+f/QtKHFOA+iAQu4kbtWA==", "integrity": "sha512-MBqPpGYYdQ7/hfKiet9SCI+nmN5/hp4ZzveOJubl5DTAMa5oggjAuoi0Z4onBpKPFI2ePGnQuQIzF3VxDjDJig==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@ -1825,9 +1825,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.5.130", "version": "1.5.132",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.130.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.132.tgz",
"integrity": "sha512-Ou2u7L9j2XLZbhqzyX0jWDj6gA8D3jIfVzt4rikLf3cGBa0VdReuFimBKS9tQJA4+XpeCxj1NoWlfBXzbMa9IA==", "integrity": "sha512-QgX9EBvWGmvSRa74zqfnG7+Eno0Ak0vftBll0Pt2/z5b3bEGYL6OUXLgKPtvx73dn3dvwrlyVkjPKRRlhLYTEg==",
"dev": true, "dev": true,
"license": "ISC" "license": "ISC"
}, },
@ -2111,15 +2111,15 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/flat-cache": { "node_modules/flat-cache": {
"version": "6.1.7", "version": "6.1.8",
"resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.7.tgz", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.8.tgz",
"integrity": "sha512-qwZ4xf1v1m7Rc9XiORly31YaChvKt6oNVHuqqZcoED/7O+ToyNVGobKsIAopY9ODcWpEDKEBAbrSOCBHtNQvew==", "integrity": "sha512-R6MaD3nrJAtO7C3QOuS79ficm2pEAy++TgEUD8ii1LVlbcgZ9DtASLkt9B+RZSFCzm7QHDMlXPsqqB6W2Pfr1Q==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"cacheable": "^1.8.9", "cacheable": "^1.8.9",
"flatted": "^3.3.3", "flatted": "^3.3.3",
"hookified": "^1.7.1" "hookified": "^1.8.1"
} }
}, },
"node_modules/flatted": { "node_modules/flatted": {

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "1.1.12", "version": "1.2.12",
"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",
"engines": { "engines": {

View file

@ -5,6 +5,7 @@ WITH activity_data AS (
p.title, p.title,
p.content AS description, p.content AS description,
p.url AS url, p.url AS url,
p.featured AS featured,
NULL AS author, NULL AS author,
NULL AS image, NULL AS image,
NULL AS rating, NULL AS rating,
@ -24,6 +25,7 @@ WITH activity_data AS (
l.title, l.title,
l.description, l.description,
l.link AS url, l.link AS url,
NULL AS featured,
l.author, l.author,
NULL AS image, NULL AS image,
NULL AS rating, NULL AS rating,
@ -45,6 +47,7 @@ WITH activity_data AS (
) AS title, ) AS title,
b.description, b.description,
b.url AS url, b.url AS url,
NULL AS featured,
NULL AS author, NULL AS author,
b.image, b.image,
b.rating, b.rating,
@ -67,6 +70,7 @@ WITH activity_data AS (
) AS title, ) AS title,
m.description, m.description,
m.url AS url, m.url AS url,
NULL AS featured,
NULL AS author, NULL AS author,
m.image, m.image,
m.rating, m.rating,
@ -87,6 +91,7 @@ WITH activity_data AS (
CONCAT(c.artist->>'name', ' at ', c.venue->>'name_short') AS title, CONCAT(c.artist->>'name', ' at ', c.venue->>'name_short') AS title,
c.concert_notes AS description, c.concert_notes AS description,
NULL AS url, NULL AS url,
NULL AS featured,
NULL AS author, NULL AS author,
NULL AS image, NULL AS image,
NULL AS rating, NULL AS rating,

View file

@ -12,6 +12,9 @@
{%- for item in items -%} {%- for item in items -%}
<article class="{{ item.type }}"> <article class="{{ item.type }}">
<aside> <aside>
{%- if item.featured -%}
{% tablericon "star" %}
{%- endif -%}
<time datetime="{{ item.content_date }}"> <time datetime="{{ item.content_date }}">
{{ item.content_date | date:"%B %e, %Y" }} {{ item.content_date | date:"%B %e, %Y" }}
</time> </time>