Initial WordPress theme
This commit is contained in:
14
index.php
Normal file
14
index.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php get_header(); ?>
|
||||
<div class="pt-24 min-h-screen bg-apple-grey">
|
||||
<div class="max-w-4xl mx-auto px-4 md:px-6 py-16">
|
||||
<?php if (have_posts()): while (have_posts()): the_post(); ?>
|
||||
<article class="bg-white p-6 rounded-2xl shadow-sm mb-6">
|
||||
<h2 class="text-2xl font-bold text-apple-dark mb-3"><a href="<?php the_permalink(); ?>" class="hover:text-apple-blue"><?php the_title(); ?></a></h2>
|
||||
<p class="text-gray-500"><?php the_excerpt(); ?></p>
|
||||
</article>
|
||||
<?php endwhile; gx_pagination(); else: ?>
|
||||
<div class="text-center py-20 text-gray-500">暂无内容</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user