Skip to content

Commit 8aa3308

Browse files
committed
style: 为标题使用 <H1> 标签
1 parent f9fb6f8 commit 8aa3308

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

archives.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="PAP" id="archives">
1111
<div id="page-banner" class="PAP-banner">
1212
<div>
13-
<h2 itemprop="name headline"><?php $this->title() ?></h2>
13+
<h1 itemprop="name headline"><?php $this->title() ?></h1>
1414
</div>
1515
</div>
1616
<div id="archives-content">

link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="PAP-banner-mask"></div>
1818
<?php endif; ?>
1919
<div>
20-
<h2 itemprop="name headline"><?php $this->title() ?></h2>
20+
<h1 itemprop="name headline"><?php $this->title() ?></h1>
2121
</div>
2222
</div>
2323
<div class="post-content PAP-content" itemprop="articleBody">

page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="PAP-banner-mask"></div>
1414
<?php endif; ?>
1515
<div>
16-
<h2 itemprop="name headline"><?php $this->title() ?></h2>
16+
<h1 itemprop="name headline"><?php $this->title() ?></h1>
1717
</div>
1818
</div>
1919
<div id="page-content" class="PAP-content" itemprop="articleBody">

post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="PAP-banner-mask"></div>
2020
<?php endif; ?>
2121
<div>
22-
<h2 itemprop="name headline"><?php $this->title() ?></h2>
22+
<h1 itemprop="name headline"><?php $this->title() ?></h1>
2323
<p><?php echo G::getSemanticDate($this->created); ?> · <?php $this->category(' · '); ?> · <?php echo G::getPostView($this); ?>次阅读</p>
2424
</div>
2525
</div>

static/css/G.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ h3.archive-title {
925925
div {
926926
width: 100%;
927927

928-
h2 {
928+
h1 {
929929
font-size: 2rem;
930930
color: @color_7;
931931
font-weight: 200;
@@ -956,12 +956,12 @@ h3.archive-title {
956956
left: 1.5rem;
957957
}
958958

959-
h2 {
959+
h1 {
960960
opacity: 0.85;
961961
font-size: 1.5rem;
962962
}
963963

964-
h2,
964+
h1,
965965
p,
966966
p a {
967967
text-align: left;

0 commit comments

Comments
 (0)