Skip to content

Commit

Permalink
修复游玩时间显示错误(#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Mar 30, 2023
1 parent 1d590c2 commit 6b4fcee
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
.history
.history/
data/
2 changes: 1 addition & 1 deletion lib/templates/template.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>
<div class="steam-game-meta">
<span class="steam-game-info-time">
<%= __('totalHours',item.playtime_forever) %>
<%= __('totalHours', (item.playtime_forever / 60).toFixed(1)) %>
</span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ i18n.set('zh-CN', {
end: '尾页'
});

module.exports.i18n = i18n;
module.exports.i18n = i18n;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-steam-games",
"version": "1.3.1",
"version": "1.3.2",
"description": "Hexo Steam games page",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6b4fcee

Please sign in to comment.