Skip to content

Commit

Permalink
Reduce files and keep only those required at runtime 5af4a18
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyib committed Jan 25, 2021
1 parent 9820a52 commit 2b1ca15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-stun",
"version": "2.6.1",
"version": "2.6.2",
"description": "A beautiful & simple theme for Hexo",
"homepage": "https://liuyib.github.io",
"scripts": {
Expand Down Expand Up @@ -29,7 +29,7 @@
"commitizen": "^4.2.2",
"commitlint-config-cz": "^0.13.2",
"cz-customizable": "^6.3.0",
"eslint": "^7.18.0",
"eslint": "^7.17.0",
"husky": "^4.3.6",
"standard": "^14.3.4",
"standard-version": "^9.1.0"
Expand Down
3 changes: 1 addition & 2 deletions scripts/filters/post-heading.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ hexo.extend.filter.register(
return match
}

var filterHtml = (html.replace(/<[^>]+>/gim, '') || '').trim()
return `
<${tName} id="${id}" ${attrBegin} ${attrEnd}>
<a href="#${id}" class="heading-link"><i class="${theme.icon &&
theme.icon.post_heading}"></i></a>${filterHtml}</${tName}>
theme.icon.post_heading}"></i></a>${html}</${tName}>
`
})
},
Expand Down

0 comments on commit 2b1ca15

Please sign in to comment.