diff --git a/src/components/BlogHero.svelte b/src/components/BlogHero.svelte
index ff14067..56cb7b1 100644
--- a/src/components/BlogHero.svelte
+++ b/src/components/BlogHero.svelte
@@ -1,5 +1,7 @@
@@ -69,13 +72,17 @@
p-10
"
>
-
-
+
+
{#each authors as author, i}
{author.authors_id.name || ''}{#if i < (authors.length-1)}, {/if}
{/each}
-
{date}
+
+
+ ·
+
+
diff --git a/src/components/Cards/ArticleCard.svelte b/src/components/Cards/ArticleCard.svelte
index e9d1115..c9ff228 100644
--- a/src/components/Cards/ArticleCard.svelte
+++ b/src/components/Cards/ArticleCard.svelte
@@ -1,12 +1,12 @@
@@ -28,7 +28,7 @@
{/each}
{/if}
- {date}
+
\ No newline at end of file
diff --git a/src/components/HumanDate.svelte b/src/components/HumanDate.svelte
new file mode 100644
index 0000000..772aab5
--- /dev/null
+++ b/src/components/HumanDate.svelte
@@ -0,0 +1,13 @@
+
+
+{finalDate}
\ No newline at end of file
diff --git a/src/components/ReadingTime.svelte b/src/components/ReadingTime.svelte
new file mode 100644
index 0000000..66824d7
--- /dev/null
+++ b/src/components/ReadingTime.svelte
@@ -0,0 +1,12 @@
+
+
+Tiempo de lectura: {minutos} minutos
\ No newline at end of file
diff --git a/src/routes/aviso-de-privacidad/+page.svelte b/src/routes/aviso-de-privacidad/+page.svelte
index 2a346f2..7df5654 100644
--- a/src/routes/aviso-de-privacidad/+page.svelte
+++ b/src/routes/aviso-de-privacidad/+page.svelte
@@ -1,19 +1,13 @@
{@html aviso.content}
-
Ultima actualización: {date_updated}
+
Ultima actualización:
diff --git a/src/routes/blog/+page.svelte b/src/routes/blog/+page.svelte
index bf18f6d..9259d09 100644
--- a/src/routes/blog/+page.svelte
+++ b/src/routes/blog/+page.svelte
@@ -14,9 +14,10 @@
slug={blog.highlight_post.slug}
title={blog.highlight_post.title}
tag={blog.highlight_post.tags[0]}
- date={new Date(blog.highlight_post.date_created).toLocaleString('es-MX')}
+ date={blog.highlight_post.date_published || blog.highlight_post.date_created}
image={`https://content.codeandomexico.org/assets/${blog.highlight_post.post_image}`}
authors={blog.highlight_post.authors}
+ content={blog.highlight_post.content}
/>
@@ -27,7 +28,7 @@
title={post.title}
tag={post.tags[0]}
authors={post.authors}
- date={new Date(post.date_created).toLocaleString('es-MX')}
+ date={post.date_published || post.date_created}
image={`https://content.codeandomexico.org/assets/${post.post_image}`}
/>
{/each}
diff --git a/src/routes/blog/[slug]/+page.svelte b/src/routes/blog/[slug]/+page.svelte
index 15173d1..07789f4 100644
--- a/src/routes/blog/[slug]/+page.svelte
+++ b/src/routes/blog/[slug]/+page.svelte
@@ -1,4 +1,6 @@
@@ -13,20 +15,22 @@
-
-
{post.title}
+
+
{post.title}
{#if post.authors}
-
Por
+
Por
{#each post.authors as author, i }
{author.authors_id.name || ''}{#if i < (post.authors.length-1)}, {/if}
{/each}
{/if}
-
{new Date(post.date_created).toLocaleString('es-MX')}
+
+ ·
+
+
{@html post.content}
+
\ No newline at end of file