summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-12-15 11:30:57 +0800
committerGitHub <noreply@github.com>2019-12-15 11:30:57 +0800
commit4dbc21fae8b160278550b18516173e4efdfd796b (patch)
tree8d5093b0421de6fa7b55744f6ff06a2af1a2c633 /index.php
parent8efde6f9b407eabc6f663e450fa1682d6c0b70ac (diff)
✏️ Perf: 规范代码,增加注释
Diffstat (limited to 'index.php')
-rw-r--r--index.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/index.php b/index.php
index 57cf10d..e57565e 100644
--- a/index.php
+++ b/index.php
@@ -12,14 +12,13 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('includes/head.php');
$this->need('includes/header.php');
?>
-
<main class="main-container container">
- <div class="post-list">
+ <div class="post-list"><!-- 文章循环开始 -->
<?php while($this->next()): ?>
<br />
- <!-- 电脑端卡片 -->
- <div class="post-item large-screen">
- <div class="container-fluid"><div class="row">
+ <!-- 电脑端卡片 -->
+ <div class="post-item large-screen">
+ <div class="container-fluid"><div class="row">
<div class="col-md-6 post-banner-box">
<a href="<?php $this->permalink(); ?>" class="post-link">
<div class="post-banner">
@@ -65,16 +64,15 @@ $this->need('includes/header.php');
</div>
</a>
</div>
- <br />
+ <br />
<?php endwhile; ?>
<!-- 文章分页 -->
<div class="post-pagenav">
- <span class="post-pagenav-left"><?php $this->pageLink('<i class="iconfont icon-chevron-left"></i>'); ?></span>
+ <span class="post-pagenav-left"><?php $this->pageLink('<i class="iconfont icon-chevron-left"></i>'); ?></span>
<span class="post-pagenav-right"><?php $this->pageLink('<i class="iconfont icon-chevron-right"></i>','next'); ?></span>
</div>
- </div>
+ <!-- 文章循环结束 --></div>
</main>
<!-- 防止找不到 owo 容器而报错 -->
<div style="display:none" class="OwO"></div>
-
<?php $this->need('includes/footer.php'); ?>