Skip to content

Commit ab11479

Browse files
authored
Merge pull request #48 from CodeandoMexico/feat/authors
fixed margin
2 parents 6a47d98 + 0592f09 commit ab11479

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

src/routes/blog/[slug]/+page.svelte

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@
1111
<meta property="og:image" content={`https://content.codeandomexico.org/assets/${post.post_image}`} />
1212
</svelte:head>
1313

14-
<section class="container m-auto p-3 prose">
15-
<h1 class="text-center font-bold">{post.title}</h1>
16-
<p class="text-center">Por
17-
{#each post.authors as author, i }
18-
<span>{author.authors_id.name || ''}{#if i < (post.authors.length-1)}, {/if}</span>
19-
{/each}
20-
</p>
21-
<p class="text-center text-sm text-gray-400">{new Date(post.date_created).toLocaleString('es-MX')}</p>
22-
</section>
23-
<img src={`https://content.codeandomexico.org/assets/${post.post_image}`} alt="Imagen de blog" class="w-full max-h-[450px] object-cover" />
24-
<section class="container m-auto p-3 prose prose-blockquote:text-2xl prose-blockquote:border-green-400">
14+
<section class="my-10">
15+
16+
<div class="container m-auto p-3 prose">
17+
<h1 class="text-center font-bold">{post.title}</h1>
18+
<p class="text-center">Por
19+
{#each post.authors as author, i }
20+
<span>{author.authors_id.name || ''}{#if i < (post.authors.length-1)}, {/if}</span>
21+
{/each}
22+
</p>
23+
<p class="text-center text-sm text-gray-400">{new Date(post.date_created).toLocaleString('es-MX')}</p>
24+
</div>
25+
<img src={`https://content.codeandomexico.org/assets/${post.post_image}`} alt="Imagen de blog" class="w-full max-h-[450px] object-cover" />
26+
<div class="container m-auto p-3 prose prose-blockquote:text-2xl prose-blockquote:border-green-400">
2527
<p>{@html post.content}</p>
26-
</section>
28+
</div>
29+
30+
</section>

0 commit comments

Comments
 (0)