Skip to content

Commit

Permalink
fix #25
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Mar 1, 2023
1 parent 4eaf577 commit 2c06596
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion layout/common/group.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h4 class="text-gray"><i class="linecons-tag" style="margin-right: 7px;" id="<%= e.name %>"></i><%= e.name %></h4>
<h4 class="text-gray"><i class="linecons-tag" style="margin-right: 7px;" id="<%= e.name.replace(/[\s]+/g, '-') %>"></i><%= e.name %></h4>
<div class="row">
<% menus.forEach(function(menu) { %>
<div class="col-sm-3">
Expand Down
4 changes: 2 additions & 2 deletions layout/common/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<% if (e.submenu) { %>
<a class="fas fa-angle-down" style="cursor: pointer;">
<% } else { %>
<a href="#<%= e.name %>" class="smooth">
<a href="#<%= e.name.replace(/[\s]+/g, '-') %>" class="smooth">
<% } %>
<i class="<%= e.icon %>"></i>
<span class="title"><%= e.name %></span>
Expand All @@ -33,7 +33,7 @@
<ul style="display: <%= setting.expandAll ? "block" : "none" %>;">
<% e.submenu.forEach(function(e) { %>
<li>
<a href="#<%= e.name %>" class="smooth">
<a href="#<%= e.name.replace(/[\s]+/g, '-') %>" class="smooth">
<i class="<%= e.icon %>"></i>
<span class="title"><%= e.name %></span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-webstack",
"version": "2.1.0",
"version": "2.1.1",
"description": "A hexo theme based on webstack.",
"keywords": [
"hexo",
Expand Down

0 comments on commit 2c06596

Please sign in to comment.