diff --git a/src/components/Library.astro b/src/components/Library.astro index 9f32933..c3f18e6 100644 --- a/src/components/Library.astro +++ b/src/components/Library.astro @@ -84,24 +84,34 @@ const {postDivSelector, skipSave = false} = Astro.props; const image = html.querySelector('meta[property="cozy:image"]')?.getAttribute('content'); const url = html.querySelector('meta[property="cozy:url"]')?.getAttribute('content'); const source = html.querySelector('meta[property="cozy:source"]')?.getAttribute('content'); + const published = html.querySelector('meta[property="cozy:published"]')?.getAttribute('content'); const postCard = `
+
${ image ? ` -
${title} | ${description} -
` - : '' + : '' } +
- ${ - source ? ` -

${source}

- ` - : '' - } +
+ ${ + source ? ` +

${source}

+ ` + : '' + } + ${ + published ? ` +

${new Date(published).toLocaleDateString()}

+ ` + : '' + } + +

${title}

${ description ? ` @@ -118,22 +128,18 @@ const {postDivSelector, skipSave = false} = Astro.props;