2 Star 1 Fork 0

Marschild / AM-1

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
archive.php 2.68 KB
Copy Edit Raw Blame History
Marschild authored 2020-06-07 19:10 . update page navigator style
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title><?php bloginfo('name'); ?></title>
<?php wp_head(); ?>
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/styles/github.min.css">
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/highlight.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
</head>
<body id="body-home">
<div id="whole-page">
<?php get_header(); ?>
<div id="container-wrapper">
<div id="container-archive">
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
?>
<div class="post">
<div class="metainfo">
<h2>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h2>
<p class="postmetadata">
<?php
_e('Topics&#58; ');
the_category(', ');
?>
<?php
_e('&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;');
comments_popup_link('No Comment', '1 Comment', '% Comments');
_e('&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;');
the_date('Y-m-d');
?>
</p>
</div>
<div class="entry">
<?php
the_content('<div style="text-align:left">[Read more...]</div>', true);
?>
</div>
</div>
<?php endwhile; ?>
<div id="navigator">
<?php the_posts_pagination(array(
// 'prev_next' => false,
'type' => 'list',
'screen_reader_text' => ' ',
));
?>
</div>
<?php else : ?>
<h2>
<?php _e('Not Found :('); ?>
</h2>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>
</div>
</body>
</html>
PHP
1
https://gitee.com/marschild/AM-1.git
git@gitee.com:marschild/AM-1.git
marschild
AM-1
AM-1
master

Search