We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
模板文件 layout/post.swig,div#disqus_thread 没有父容器,应该将 div#comments.comments 放在 {% if page.comments %} 下方。
layout/post.swig
div#disqus_thread
div#comments.comments
{% if page.comments %}
{% if page.comments %} {% if (config.duoshuo and config.duoshuo.shortname) or config.duoshuo_shortname %} <div class="comments" id="comments"> <div class="ds-thread" data-thread-key="{{ page.path }}" data-title="{{ page.title }}" data-url="{{ page.permalink }}"> </div> </div> {% elseif config.disqus_shortname %} <div id="disqus_thread"> <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> </div> {% endif %} {% endif %}
改为
{% if page.comments %} <div class="comments" id="comments"> {% if (config.duoshuo and config.duoshuo.shortname) or config.duoshuo_shortname %} <div class="ds-thread" data-thread-key="{{ page.path }}" data-title="{{ page.title }}" data-url="{{ page.permalink }}"> </div> {% elseif config.disqus_shortname %} <div id="disqus_thread"> <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> </div> {% endif %} </div> {% endif %}
Bower 令人诟病的一点是它下载了整个源码,而实际可用文件大概也就 min.css 和 min.js。所幸后来找到了 main-bower-files,结合 Gulp 只将所需文件拷贝到静态资源目录中,例如从 bower_components 拷贝到 vendor ,同时 ignore bower_components。使用例子可见 bower.json 和 gulpfile.js。
min.css
min.js
bower_components
vendor
使用了一下确实能起到精简文件的作用,可以尝试 : )
The text was updated successfully, but these errors were encountered:
👍
Sorry, something went wrong.
Bug: Fixed incorrect wrapper of comment system. #22
9577471
对于 Hexo 主题,Bower package 的简化好像没有太大作用,因为里面的大多数文件还是必须的。
Merge pull request iissnan#22 from wafer-li/patch-1
57a03be
Fix misleading description of gitment
New Crowdin translations (iissnan#22)
26f238a
No branches or pull requests
评论处的小BUG
模板文件
layout/post.swig
,div#disqus_thread
没有父容器,应该将div#comments.comments
放在{% if page.comments %}
下方。改为
简化 bower
Bower 令人诟病的一点是它下载了整个源码,而实际可用文件大概也就
min.css
和min.js
。所幸后来找到了 main-bower-files,结合 Gulp 只将所需文件拷贝到静态资源目录中,例如从bower_components
拷贝到vendor
,同时 ignorebower_components
。使用例子可见 bower.json 和 gulpfile.js。使用了一下确实能起到精简文件的作用,可以尝试 : )
The text was updated successfully, but these errors were encountered: