6
6
<div class="w-full md:mt-8 mt-8 prose-dark max-w-none text-gray-200">
7
7
<h1 class="text-5xl text-white md:mt-8 mt-16 "><strong>Blog</strong></h1>
8
8
<h3 class="text-gray-400 mt-4">A personal blog about my perception of everything that exists.</h3>
9
-
10
-
11
-
9
+
10
+
11
+
12
12
<h2 class="text-4xl text-white mt-8 mb-8"><strong>All Posts</strong></h2>
13
13
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
+ ]);
18
18
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 ();
22
22
?>
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>
41
23
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
+ }
43
44
}
44
- }
45
- ?>
45
+ ?>
46
46
47
47
</div>
48
48
49
49
<?php
50
- get_footer (); ?>
51
-
50
+ get_footer (); ?>
0 commit comments