Skip to content

Commit

Permalink
fix: 修复低版本nodejs不支持replaceAll的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lete114 committed Apr 14, 2022
1 parent 5c2c171 commit e1d8fe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layout/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="post-meta-wrap">
<span class="post-meta-date">
<i class="far fa-calendar-alt"></i>
<span> <%= date(post.date, "YYYY-MM-DD" ).replaceAll('-','.') %></span>
<span> <%= date(post.date, "YYYY-MM-DD" ).replace(/-/g,'.') %></span>
</span>
<% if(post.categories.length!=0){ %>
<span class="post-categorie">
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-mengd",
"version": "1.8.0",
"version": "1.8.1",
"description": "A simple, lightweight Hexo theme",
"main": "package.json",
"scripts": {},
Expand Down

0 comments on commit e1d8fe2

Please sign in to comment.