Skip to content

Commit a87dafb

Browse files
committed
add <main> tag into <body> and move "markdown-body" class to <main> tag to make a vertical scroll bar appeared for long articles.
1 parent 151adf7 commit a87dafb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

main.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@ const templateBodyContent = `
6969
<title>{{.Name}}</title>
7070
<link href="/assets/gfm/gfm.css" media="all" rel="stylesheet" type="text/css" />
7171
</head>
72-
<body class="markdown-body">
73-
{{.Body}}</body>
72+
<body>
73+
<main class="markdown-body">
74+
{{.Body}}
75+
</main>
76+
</body>
7477
</html>
7578
`
7679

0 commit comments

Comments
 (0)