Skip to content

Commit

Permalink
修复修复bug(#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Feb 24, 2021
1 parent 45bc01d commit 7afe4e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion layout/common/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<% if (setting.busuanzi.enable) { %>
<script async src="<%- setting.js.busuanzi %>"></script>
<% } %>
<% if (setting.type!=="about") { %>
<% if (page.type!=="about") { %>
<%- js(setting.js.lozad) %>
<% } else { %>
<textarea tabindex="-1" style="position: absolute; top: -999px; left: 0px; right: auto; bottom: auto; border: 0px; padding: 0px; box-sizing: content-box; word-wrap: break-word; overflow: hidden; transition: none; height: 0px !important; min-height: 0px !important; font-family: Arimo, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 400; font-style: normal; letter-spacing: 0px; text-transform: none; word-spacing: 0px; text-indent: 0px; line-height: 18.5714px; width: 53px;" class="autosizejs" id="autosizejs"></textarea>
Expand Down
6 changes: 3 additions & 3 deletions layout/index.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% const isChildPage = page.type === 'child' %>
<% const setting = isChildPage ? Object.assign(theme, page) : theme %>
<% console.log(page.path) %>
<%# console.log(page.path) %>
<body class="page-body">
<div class="page-container">
<%- partial('common/header', {setting:setting}) %>
Expand All @@ -15,12 +15,12 @@
</li>
<li class="dropdown hover-line language-switcher">
<a href="/index.html" class="dropdown-toggle" data-toggle="dropdown">
<img src="/images/flags/<%= setting.flag.icon %>.png" alt="<%= setting.flag.icon %>" /> <%= setting.flag.name %>
<img src="<%- url_for('images/flags/' + setting.flag.icon + '.png') %>" alt="<%= setting.flag.icon %>" /> <%= setting.flag.name %>
</a>
<ul class="dropdown-menu languages">
<li class="active">
<a href="/index.html">
<img src="/images/flags/<%= setting.flag.icon %>.png" alt="<%= setting.flag.icon %>" alt="<%= setting.flag.icon %>" /> <%= setting.flag.name %>
<img src="<%- url_for('images/flags/' + setting.flag.icon + '.png') %>" alt="<%= setting.flag.icon %>" alt="<%= setting.flag.icon %>" /> <%= setting.flag.name %>
</a>
</li>
</ul>
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.0.2",
"version": "2.0.3",
"description": "A hexo theme based on webstack.",
"keywords": [
"hexo",
Expand Down

0 comments on commit 7afe4e1

Please sign in to comment.