Skip to content

Commit 2091942

Browse files
authored
Merge pull request #544 from EvanNotFound/dev
v2.8.5
2 parents 2dac003 + 56d72d8 commit 2091942

33 files changed

Lines changed: 13 additions & 13 deletions

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hexo-theme-redefine",
3-
"version": "2.8.4",
3+
"version": "2.8.5",
44
"private": false,
55
"description": "Redefine your writing with Hexo Theme Redefine.",
66
"scripts": {

scripts/helpers/recommendation-helpers.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,8 @@ function userInterface(recommendedArticles, cfg) {
358358
}
359359

360360
function itemInterface(item) {
361-
return `<a class="recommended-article-item" href="${
362-
hexo.config.root + item.path
363-
}" title="${item.title}" rel="bookmark">
361+
const url = hexo.extend.helper.get('url_for').call(hexo, item.path);
362+
return `<a class="recommended-article-item" href="${url}" title="${item.title}" rel="bookmark">
364363
<img src="${item.headimg}" alt="${item.title}" class="!max-w-none">
365364
<span class="title">${item.title}</span>
366365
</a>`;

scripts/modules/folding.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const postFolding = (args, content) => {
99
const renderedContent = hexo.render.renderSync({
1010
text: content,
1111
engine: 'markdown'
12-
}).split('\n').join('');
12+
});
1313

1414
// Replace heading tags with paragraph tags that have heading classes
1515
const processedContent = renderedContent.replace(
@@ -25,7 +25,7 @@ const postFolding = (args, content) => {
2525

2626
return `<details${styleAttr} data-header-exclude>
2727
<summary><i class="fa-solid fa-chevron-right"></i>${title} </summary>
28-
<div class='content'>
28+
<div class='content markdown-body'>
2929
${processedContent}
3030
</div>
3131
</details>`;

scripts/modules/note-large.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function postNoteLarge(args, content) {
5555
engine: "markdown",
5656
})}
5757
</div>
58-
<div class="notel-content">
58+
<div class="notel-content markdown-body">
5959
${hexo.render.renderSync({
6060
text: content,
6161
engine: "markdown",

scripts/modules/note.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function postNote(args, content) {
5151
}
5252

5353
return `
54-
<div class="note p-4 mb-4 rounded-small ${classes.join(" ")}">
54+
<div class="note p-4 mb-4 rounded-small markdown-body ${classes.join(" ")}">
5555
${icon}${hexo.render.renderSync({
5656
text: content,
5757
engine: "markdown",

source/css/common/markdown.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
width 100%
237237
overflow auto
238238
margin-bottom 1.2rem
239+
margin-top 1rem
239240
box-shadow var(--redefine-box-shadow-flat)
240241
border-radius $redefine-border-radius-medium
241242

0 commit comments

Comments
 (0)