Skip to content

Commit

Permalink
Merge pull request #31 from f-dong/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
f-dong authored Aug 23, 2023
2 parents 1b757a8 + 08a1d57 commit 116887d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
14 changes: 7 additions & 7 deletions layout/includes/comment.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
<script>
const config = <%- JSON.stringify(theme.comment.config.gitalk) %>;
const gitalk = new Gitalk({
clientID: '<%= config.clientId %>',
clientSecret: '<%= config.clientSecret %>',
repo: '<%= config.repository %>',
owner: '<%= config.owner %>',
admin: ['<%= config.owner %>'],
clientID: config.clientId,
clientSecret: config.clientSecret,
repo: config.repository,
owner: config.owner,
admin: [config.owner],
id: location.pathname.slice(1, location.pathname.lastIndexOf('/')).substring(0, 49), // Ensure uniqueness and length less than 50
distractionFreeMode: false, // Facebook-like distraction free mode
createIssueManually: <%= config.createIssueManually %>
createIssueManually: config.createIssueManually ? true : false
});
gitalk.render('gitalk-container')
Expand All @@ -38,7 +38,7 @@
el: '#gitalk-container',
region: config.region,
path: location.pathname + (config.mark ? '?mark=' + config.mark : ''),
lang: "<%= config.language %>",
lang: config.language,
});
}
})()
Expand Down
2 changes: 2 additions & 0 deletions layout/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
<div class="post-content">
<%- page.content %>
</div>
<% if (theme.toc!==false) { %>
<div class="top-div">
<%- toc(page.content, {class: 'top-box',list_number:false,max_depth:3}) %>
</div>
<% } %>
</div>
</div>

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-minimalism",
"version": "1.3.6",
"version": "1.3.7",
"private": false,
"description": "a minimalist Hexo theme that is simple yet elegant, enabling your blog content to shine. Its powerful features also help you create a personalized blog that truly stands out.",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions scripts/helper/start-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ function cdnConfig() {
function renderPath(path) {
const config = cdnConfig();

path = path.replace(/^\//, '');

if (config.enable) {
switch (config.provider) {
case 'jsdelivr':
Expand Down

0 comments on commit 116887d

Please sign in to comment.