66<div class="w-full md:mt-8 mt-8 prose-dark max-w-none text-gray-200">
77 <h1 class="text-5xl text-white md:mt-8 mt-16 "><strong>Blog</strong></h1>
88 <h3 class="text-gray-400 mt-4">A personal blog about my perception of everything that exists.</h3>
9-
10-
11-
9+
10+
11+
1212 <h2 class="text-4xl text-white mt-8 mb-8"><strong>All Posts</strong></h2>
1313
14- <?php
15- $ post_query = new WP_Query ([
16- 'post_type ' => 'post ' ,
17- ]);
14+ <?php
15+ $ post_query = new WP_Query ([
16+ 'post_type ' => 'post ' ,
17+ ]);
1818
19- if ($ post_query ->have_posts () ) {
20- while ($ post_query ->have_posts () ) {
21- $ post_query ->the_post ();
19+ if ($ post_query ->have_posts ()) {
20+ while ($ post_query ->have_posts ()) {
21+ $ post_query ->the_post ();
2222 ?>
23-
24-
25- <a href="<?php the_permalink (); ?> " class="w-full">
26- <div class="mb-8">
27- <div class="flex flex-col justify-between md:flex-row">
28- <h4 class="w-full mb-2 text-lg font-medium md:text-xl text-gray-100">
29- <?php the_title (); ?>
30- </h4>
31- </div>
32- <p class="text-gray-400">
33- <?php
34-
35- $ excerpt = apply_filters ( 'the_content ' , get_the_excerpt () );
36- echo wp_trim_words ( $ excerpt , 30 );
37- ?>
38- </p>
39- </div>
40- </a>
4123
42- <?php
24+
25+ <a href="<?php the_permalink (); ?> " class="w-full">
26+ <div class="mb-8">
27+ <div class="flex flex-col justify-between md:flex-row">
28+ <h4 class="w-full mb-2 text-lg font-medium md:text-xl text-gray-100">
29+ <?php the_title (); ?>
30+ </h4>
31+ </div>
32+ <p class="text-gray-400">
33+ <?php
34+
35+ $ excerpt = apply_filters ('the_content ' , get_the_excerpt ());
36+ echo wp_trim_words ($ excerpt , 30 );
37+ ?>
38+ </p>
39+ </div>
40+ </a>
41+
42+ <?php
43+ }
4344 }
44- }
45- ?>
45+ ?>
4646
4747</div>
4848
4949<?php
50- get_footer (); ?>
51-
50+ get_footer (); ?>
0 commit comments