summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-12-15 11:41:06 +0800
committerGitHub <noreply@github.com>2019-12-15 11:41:06 +0800
commit9b6d32ecaac85cdc671b549f48ce5653dec52264 (patch)
tree92112a57db8b779ed634e58d0b8965a78aa2a008
parent4ef61a6580ae5c7d48a99387ee795a40dd388d3d (diff)
💡 Perf: 规范代码结构,添加注释
-rw-r--r--about.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/about.php b/about.php
index f37944f..2c912f6 100644
--- a/about.php
+++ b/about.php
@@ -11,13 +11,13 @@ $this->need('includes/header.php');
<div class="post-body">
<br><br><br>
<div class="about">
- <div class="about-avatar">
+ <div class="about-avatar"><!-- 头像(调用 gravatar)-->
<?php echo $this->author->gravatar(300); ?>
<?php if($this->fields->name==!''): ?>
<h2 class="about-name"><?php echo $this->fields->name(); ?></h2>
<?php endif; ?>
</div>
- <div class="about-social">
+ <div class="about-social"><!-- 社交按钮 -->
<?php if($this->fields->github==!''): ?>
<a href="https://github.com/<?php echo $this->fields->github(); ?>" target="_blank" title="GayHub"><i class="iconfont icon-github"></i></a>
<?php endif; ?>
@@ -34,9 +34,8 @@ $this->need('includes/header.php');
</div>
<div class="post-content page-content">
<?php $this->content(); ?>
- </div>
+ </div>
</div>
<?php $this->need('includes/comments.php'); ?>
</main>
-
-<?php $this->need('includes/footer.php'); ?> \ No newline at end of file
+<?php $this->need('includes/footer.php'); ?>