Skip to content
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

Disqus 設定後不能正常建置 #52

Closed
mosdeo opened this issue Jun 16, 2018 · 1 comment
Closed

Disqus 設定後不能正常建置 #52

mosdeo opened this issue Jun 16, 2018 · 1 comment

Comments

@mosdeo
Copy link
Contributor

mosdeo commented Jun 16, 2018

我的設置是這樣

## comments -- 评论框
### disqus
disqus_shortname: mosdeo-github-io
### duoshuo
duoshuo_shortname:
### gitment
gitment:

hexo g 每一篇文章都會出現如下錯誤

ERROR /home/LKY/mosdeo_github_io/themes/ylion/layout/layout.ejs:1
 >> 1| <%- partial('_partial/head') %>
    2| <body id="<%= "404 Not Found" === (page.title && page.title.trim()) ? 'error-page' : 'normal'%>">
    3| <%- partial('_partial/_head-sections/IE',null,{cache: !config.relative_link}) %>
    4| <div id="wrap">

/home/LKY/mosdeo_github_io/themes/ylion/layout/_partial/head.ejs:17
    15|     <%- partial('_head-sections/title') %>
    16|     <%- partial('_head-sections/style') %>
 >> 17|     <%- partial('_head-sections/script') %>
    18|     <%- partial('_thirdParty/baidu_an') %>
    19|     <%- partial('_thirdParty/google_analytics') %>
    20| </head>

/home/LKY/mosdeo_github_io/themes/ylion/layout/_partial/_head-sections/script.ejs:24
    22| <!--<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>-->
    23|
 >> 24| <% if(theme.gitment.enable && is_post()){ %>
    25| <%- js("/js/thirdParty/gitment.browser.min.js") %>
    26| <script>
    27|   var labels = "<%= theme.gitment.labels %>";

Cannot read property 'enable' of null
@GeekaholicLin
Copy link
Owner

GeekaholicLin commented Jul 9, 2018

@mosdeo 把配置改成下面的试试:

## comments -- 评论框
### disqus
disqus_shortname: mosdeo-github-io
### duoshuo
duoshuo_shortname:
### gitment
gitment:
  - enable: false

@mosdeo mosdeo closed this as completed Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants