Skip to content

Commit 7c596b6

Browse files
committedJul 30, 2024
将aside内容包裹在nav元素中以提高网页结构语义化
此次修改将aside标签内的内容包裹到了nav标签中,这样做可以增强网页的结构语义化,使网页内容的层次更加清晰,有利于搜索引擎的抓取和用户的理解。同时,这种结构上的优化还有助于提高网页的可访问性和可用性,为用户提供更好的浏览体验。
1 parent 99f6886 commit 7c596b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎theme/template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h1 id="header"><a href="~/index.html">ABlog</a></h1>
7979
</svg>
8080
</header>
8181
<div id="app" class="markdown-body">
82-
<aside id="content">{{content}}</aside>
82+
<aside id="content"><nav>{{content}}</nav></aside>
8383
<main id="main" class="markdown-body">
8484
{{markdown}}
8585
<hr />

0 commit comments

Comments
 (0)