next-theme / hexo-theme-next

🎉 Elegant and powerful theme for Hexo.
https://theme-next.js.org
Other
2.46k stars 437 forks source link

style generated unusually as noscript #534

Closed Nicksxs closed 2 years ago

Nicksxs commented 2 years ago

Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。

Issue Checklist


Expected behavior

预期应该正常展示

Actual behavior

异常生成了 style.css,并且将 noscript 中的 margin-top 带了进来

Steps to reproduce the behavior

hexo: 6.2.0 hexo-cli: 4.3.0 NexT version 8.12.1 hexo generate

Environment Information

Node.js and NPM Information

node -v    v16.13.1
npm -v 8.12.1

Package dependencies Information

├── hexo-admin@2.3.0
├── hexo-clean-css@2.0.0
├── hexo-deployer-git@3.0.0
├── hexo-filter-optimize@0.3.1
├── hexo-generator-archive@1.0.0
├── hexo-generator-baidu-sitemap@0.1.9
├── hexo-generator-category@1.0.0
├── hexo-generator-feed@3.0.0
├── hexo-generator-index@2.0.0
├── hexo-generator-searchdb@1.4.0
├── hexo-generator-sitemap@3.0.1
├── hexo-generator-tag@1.0.0
├── hexo-html-minifier@1.0.0
├── hexo-leancloud-counter-security@1.5.0
├── hexo-related-popular-posts@5.0.1
├── hexo-renderer-ejs@2.0.0
├── hexo-renderer-marked@5.0.0
├── hexo-renderer-stylus@2.1.0
├── hexo-server@3.0.0
├── hexo-tag-cloud@2.1.2
├── hexo-uglify@2.0.0
├── hexo@6.2.0

Hexo Configuration

theme: next

NexT Configuration

 # Reduce padding / margin indents on devices with narrow width.
-mobile_layout_economy: false
+mobile_layout_economy: true

 # ---------------------------------------------------------------

 font:
-  enable: false
+  enable: true

   # Uri of fonts host, e.g. https://fonts.googleapis.com (Default).
   host:
@@ -437,7 +445,7 @@ font:
   global:
     external: true
     family: Lato
-    size:
+    size: 1.2

   # Font settings for site title (.site-title).
   title:
@@ -460,6 +468,7 @@ font:
   codes:
     external: true
     family:
+    size: 0.6

# ---------------------------------------------------------------
@@ -526,7 +535,7 @@ pjax: false

 # FancyBox is a tool that offers a nice and elegant way to add zooming functionality for images.
 # For more information: https://fancyapps.com/fancybox/
-fancybox: false
+fancybox: true

 # A JavaScript library for zooming images like Medium.
 # Warning: Do not enable both `fancybox` and `mediumzoom`.
@@ -535,7 +544,7 @@ mediumzoom: false

 # Vanilla JavaScript plugin for lazyloading images.
 # For more information: https://apoorv.pro/lozad.js/demo/
-lazyload: false
+lazyload: true

 # Pangu Support
 # For more information: https://github.com/vinta/pangu.js
@@ -546,7 +555,7 @@ pangu: false
 # For more information: https://getquick.link
 # Front-matter variable (nonsupport home archive).
 quicklink:
-  enable: false
+  enable: true

@@ -742,16 +750,16 @@ algolia_search:
 # Local Search
 # Dependencies: https://github.com/next-theme/hexo-generator-searchdb
 local_search:
-  enable: false
+  enable: true
   # If auto, trigger search by changing input.
   # If manual, trigger search by pressing enter key or search button.
   trigger: auto
   # Show top n results per article, show all results by setting to -1
   top_n_per_article: 1
   # Unescape html strings to the readable one.
-  unescape: false
+  unescape: true
   # Preload the search data when the page loads.
-  preload: false
+  preload: true

 # ---------------------------------------------------------------
@@ -840,7 +848,7 @@ mermaid:
 # Use Animate.css to animate everything.
 # For more information: https://animate.style
 motion:
-  enable: true
+  enable: false

Other Information

welcome[bot] commented 2 years ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

stevenjoezhang commented 2 years ago

https://github.com/next-theme/hexo-theme-next/issues/535 这个一样, 暂时禁用一下 hexo-filter-optimize 插件,再试试

Nicksxs commented 2 years ago

这样好像可以了,但是为什么呢,hexo-filter-optimize 是不是需要升级下

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.