summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/js/fuji.js22
-rw-r--r--assets/scss/_fuji-style/_content.scss2
2 files changed, 13 insertions, 11 deletions
diff --git a/assets/js/fuji.js b/assets/js/fuji.js
index fbd0359..4bc9d56 100644
--- a/assets/js/fuji.js
+++ b/assets/js/fuji.js
@@ -98,17 +98,19 @@ document.querySelector('.btn .btn-toggle-mode').addEventListener('click', () =>
// update medium background
updateMeidumTheme(mediumInst);
// switch comment area theme
- // only works after comment area are initialized
+ // if this page has comment area
let commentArea = document.querySelector('.post-comment');
- let commentStatus = document.querySelector('span.post-comment-notloaded').getAttribute('style');
- if (commentStatus) {
- if (commentArea.getAttribute('data-comment') === 'utterances') {
- updateUtterancesTheme(document.querySelector('.post-comment iframe'));
- }
- if (commentArea.getAttribute('data-comment') === 'disqus') {
- DISQUS.reset({
- reload: true,
- });
+ if (commentArea) {
+ // if comment area loaded
+ if (document.querySelector('span.post-comment-notloaded').getAttribute('style')) {
+ if (commentArea.getAttribute('data-comment') === 'utterances') {
+ updateUtterancesTheme(document.querySelector('.post-comment iframe'));
+ }
+ if (commentArea.getAttribute('data-comment') === 'disqus') {
+ DISQUS.reset({
+ reload: true,
+ });
+ }
}
}
});
diff --git a/assets/scss/_fuji-style/_content.scss b/assets/scss/_fuji-style/_content.scss
index 92190a6..03add33 100644
--- a/assets/scss/_fuji-style/_content.scss
+++ b/assets/scss/_fuji-style/_content.scss
@@ -53,7 +53,7 @@
.post-meta-archive {
display: flex;
align-items: center;
- margin: 0.5rem 0.1rem 1rem 0.1rem; // little space
+ margin: 0.5rem 0.1rem 0 0.1rem; // little space
flex-wrap: wrap;
span:not(:last-child) {