Skip to content

Commit

Permalink
fix horizontal margin for blogs on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarfors committed Sep 18, 2024
1 parent 662bb7c commit 85cc8ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blog.templ
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ templ blogs(posts []*Post, tags map[string]TagStatus) {
}

templ blog(post *Post) {
<div class="relative overflow-x-hidden">
<section class="container mx-auto">
<div class="relative overflow-x-hidden container mx-auto">
<section>
<h1 class="v-h1 text-center">{ post.Title }</h1>
<div class="mt-4 flex flex-wrap gap-x-2 justify-center">
for tag := range post.Tags {
Expand Down Expand Up @@ -126,7 +126,7 @@ templ blog(post *Post) {
<hr class="border-1 border-v-gray"/>
</article>
</div>
<section class="container mx-auto">
<section>
<div class="v-h2">
<h2 class="">Read similar posts</h2>
</div>
Expand Down

0 comments on commit 85cc8ab

Please sign in to comment.