Skip to content

Commit 229a4ce

Browse files
committed
feat: improve HTML semantics
1 parent 72af91a commit 229a4ce

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

script/component/DocumentPage.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ const DocumentPage = {
33
<div class="document">
44
<markdown-reader :file="readUrl" :hash="hash"></markdown-reader>
55
6-
<div class="contribute small">
6+
<footer class="contribute small">
77
{{$t("contribute")}} <a :href="editUrl">{{$t("edit")}}</a>
8-
</div>
8+
</footer>
99
</div>
1010
`,
1111
data: function() {

script/component/MainPage.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const MainPage = {
22
template: `<div>
3+
<header>
34
<nav class="navbar navbar-expand navbar-light">
45
<!--<img src="image/logo-large.png" width="10%" height="10%">-->
56
<a class="navbar-brand" href="/"><span class="brand-type">Type</span><span class="brand-orm">ORM</span></a>
@@ -70,8 +71,9 @@ const MainPage = {
7071
</form>-->
7172
</div>
7273
</nav>
74+
</header>
7375
<div class="panels">
74-
<div class="left-panel">
76+
<aside class="left-panel">
7577
<ul>
7678
<li v-for="link in links">
7779
<div v-if="link.links">
@@ -92,10 +94,10 @@ const MainPage = {
9294
</li>
9395
</ul>
9496
<div class="carbon-container" ref="carbon"></div>
95-
</div>
96-
<div class="right-panel">
97+
</aside>
98+
<main class="right-panel">
9799
<router-view></router-view>
98-
</div>
100+
</main>
99101
</div>
100102
</div>
101103
`,

script/component/MarkdownReader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const MarkdownReader = {
2-
template: `<div v-html="html"></div>`,
2+
template: `<section v-html="html"></section>`,
33
props: ["file", "hash"],
44
data: function() {
55
return {

0 commit comments

Comments
 (0)