Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
chore(layout): add title to navbar/footer links
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Jul 14, 2018
1 parent cad0c35 commit a21d403
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ common:
nav:
next: 'Next'
prev: 'Prev'
search: 'Search'
toc: 'Table of Contents'
article:
read_more: 'Read More'
read: 'read'
Expand Down
2 changes: 2 additions & 0 deletions languages/zh-cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ common:
nav:
next: '下一页'
prev: '上一页'
search: '搜索'
toc: '目录'
article:
read_more: '阅读更多'
read: '读完'
Expand Down
2 changes: 1 addition & 1 deletion layout/common/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="columns is-mobile is-multiline is-centered">
<% for (let name in get_config('footer_links')) { %>
<% let link = get_config('footer_links')[name]; %>
<a class="column is-narrow has-text-black" href="<%= typeof(link) === 'string' ? link : link.url%>">
<a class="column is-narrow has-text-black" title="<%= name %>" href="<%= typeof(link) === 'string' ? link : link.url%>">
<% if (typeof(link) === 'string') { %>
<%= name %>
<% } else { %>
Expand Down
6 changes: 3 additions & 3 deletions layout/common/navbar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
<% } %>
<div class="navbar-menu navbar-end">
<% if (has_config('search')) { %>
<a class="navbar-item search" href="javascript:;">
<a class="navbar-item search" title="<%= __('nav.search') %>" href="javascript:;">
<i class="fas fa-search"></i>
</a>
<% } %>
<% if (has_config('toc') && get_config('toc') === true) { %>
<div class="navbar-item is-hoverable has-dropdown is-hidden-mobile is-hidden-tablet-only toc">
<a class="navbar-item">
<a class="navbar-item" title="<%= __('nav.toc') %>">
<i class="fa fa-list"></i>
</a>
<div class="navbar-dropdown is-right">
Expand All @@ -63,7 +63,7 @@
<% if (has_config('navbar_links')) {
for (let name in get_config('navbar_links')) {
let link = get_config('navbar_links')[name]; %>
<a class="navbar-item" href="<%= typeof(link) === 'string' ? link : link.url%>">
<a class="navbar-item" title="<%= name %>" href="<%= typeof(link) === 'string' ? link : link.url%>">
<% if (typeof(link) === 'string') { %>
<%= name %>
<% } else { %>
Expand Down

0 comments on commit a21d403

Please sign in to comment.