Skip to content

Commit

Permalink
Some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Mar 27, 2020
1 parent 57df1a9 commit c115c5e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .github/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,3 @@ lockThreads:
setTimeInHours: 72
replyComment: >
This thread is being locked due to exceeding the toxicity minimums. cc/ @theme-next/next
# =============================================================================================== #
# Configuration for todo-bot - https://github.com/JasonEtco/todo
todo:
label: '🗒 To-Do'
1 change: 0 additions & 1 deletion languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ post:
modified: Modified
edit: Edit this post
in: In
more: more
read_more: Read more
untitled: Untitled
sticky: Sticky
Expand Down
2 changes: 1 addition & 1 deletion layout/_partials/search/localsearch.swig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<i class="fa fa-search"></i>
</span>
<div class="search-input-container">
<input autocomplete="off" autocorrect="off" autocapitalize="off"
<input autocomplete="off" autocapitalize="off"
placeholder="{{ __('search.placeholder') }}" spellcheck="false"
type="search" class="search-input">
</div>
Expand Down
2 changes: 1 addition & 1 deletion layout/_scripts/pjax.swig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var pjax = new Pjax({
});

window.addEventListener('pjax:success', () => {
document.querySelectorAll('script[pjax], script#page-configurations, #pjax script').forEach(element => {
document.querySelectorAll('script[data-pjax], script#page-configurations, #pjax script').forEach(element => {
var code = element.text || element.textContent || element.innerHTML || '';
var parent = element.parentNode;
parent.removeChild(element);
Expand Down
2 changes: 1 addition & 1 deletion scripts/filters/locals.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ hexo.extend.filter.register('template_locals', locals => {
// Creative Commons
locals.ccURL = 'https://creativecommons.org/' + (theme.creative_commons.license === 'zero' ? 'publicdomain/zero/1.0/' : 'licenses/' + theme.creative_commons.license + '/4.0/') + (theme.creative_commons.language || '');
// PJAX
locals.pjax = theme.pjax ? ' pjax' : '';
locals.pjax = theme.pjax ? ' data-pjax' : '';
});
2 changes: 1 addition & 1 deletion source/css/_common/components/post/post-header.styl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

&:hover {
color: black;
color: $sidebar-highlight;
}
}
}
Expand Down

0 comments on commit c115c5e

Please sign in to comment.