-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
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
写一个 if (is_post()) 在 localhost:4000 的 post 页面正常显示,deploy 后完全不显示 #3483
Comments
if (is_post())
在 localhost:4000 正常,发布后不正常
if (is_post())
在 localhost:4000 正常,发布后不正常
Would you please try to delete |
多次执行 |
Duplicate #2897 |
Would you please check this comment. And please try to confirm Thanks :) |
Thank you very much for your help, but I am still confused. My theme is ocean, the problem in <ul class="list-inline">
<% if (is_home()) { %>
<li><i class="fe fe-bar-chart"></i> <span id="busuanzi_value_site_pv"></span></li>
<%} %>
<li><i class="fe fe-smile-alt"></i> <span id="busuanzi_value_site_uv"></span></li>
<% if (is_post()) { %>
<li><i class="fe fe-bookmark"></i> <span id="busuanzi_value_page_pv"></span></li>
<%} %>
</ul> The localhost:4000 home page is displayed normally, <ul class="list-inline">
<li><i class="fe fe-bar-chart"></i> <span id="busuanzi_value_site_pv">9934130</span></li>
<li><i class="fe fe-smile-alt"></i> <span id="busuanzi_value_site_uv">604750</span></li>
</ul> After the deploy, |
@zhwangart I can't reproduce it... Please see below. It seems correct. |
I have not solved this bug, Could it be because of the hexo version? |
The discussion of |
添加不蒜子计数器,写
if (is_post())
在 localhost:4000 的 post 页面正常显示,deploy 到 github 上则完全不显示,这是什么问题?代码如下:The text was updated successfully, but these errors were encountered: