Skip to content

Commit f0abf9c

Browse files
committed
Translate sidebar header
1 parent c7d5931 commit f0abf9c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

themes/vue/layout/partials/sidebar.ejs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
<%- partial('partials/main_menu') %>
44
</ul>
55
<div class="list">
6-
<h2><%- type.charAt(0).toUpperCase() + type.slice(1) %></h2>
6+
<% if (type === 'guide') { %>
7+
<h2>ガイド</h2>
8+
<% } else if (type === 'api') { %>
9+
<h2>API</h2>
10+
<% } else if (type === 'examples') { %>
11+
<h2></h2>
12+
<% } %>
713
<ul class="menu-root">
814
<% site.pages.find({type: type}).sort('order').each(function (p) { %>
915
<li><a href="/<%- p.path %>" class="sidebar-link<%- page.title === p.title ? ' current' : '' %>"><%- p.title %></a></li>

0 commit comments

Comments
 (0)