Coder Social home page Coder Social logo

Comments (19)

ivan-nginx avatar ivan-nginx commented on May 26, 2024 1

out of the quote

And with httpS.

U are welcome.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

So, what version of NexT u use? Try to reproduce in clean v.6.0.0 without any 3rd-party plugins.

# Disqus
disqus:
  enable: true
  shortname: theme-next-test
  count: true

image

from hexo-theme-next.

qifengzhou avatar qifengzhou commented on May 26, 2024

Tried several things with information from other issues: from #792
/themes/next/layout/_third-party/comments/disqus.swig

  1. add 'https://'
    before: this.page.url = ’{{ page.permalink }}';
    after: this.page.url = 'https://' + ’{{ page.permalink }}';
  2. remove this.page.url = ’{{ page.permalink }}';

not working

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

HTTPS there is no problem, because disqus must work in localhost. There is screenshot from localhost, above.

Try to check disqus account. Mb some settings there is wrong or something like that.

from hexo-theme-next.

qifengzhou avatar qifengzhou commented on May 26, 2024

Thank you ivan-nginx.
I am not sure how to get the version information of NexT there?

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

https://qifengzhou.github.io - see in the bottom — u use v5.1.4

There is instructions on English or Chinese how to update from v5.1.x to v 6.0.x

from hexo-theme-next.

qifengzhou avatar qifengzhou commented on May 26, 2024

NexT version updated to v 6.0.x
-config.yml updated as above

Disqus

disqus:
enable: true
shortname: qifengzhou
count: true
Disqus is still not working.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

image
Please, check your admin disqus dashboard. Is there any comment?
Also, check general settings of your site. What pathes do u set there?

from hexo-theme-next.

qifengzhou avatar qifengzhou commented on May 26, 2024

There is no comments yet.
screen shot 2018-01-06 at 1 53 04 pm

General seetings
screen shot 2018-01-06 at 1 55 19 pm
screen shot 2018-01-06 at 1 55 58 pm

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

Well, u need to set up «Website URL» to https://qifengzhou.github.io.

from hexo-theme-next.

qifengzhou avatar qifengzhou commented on May 26, 2024

the website URL is set at the general setting of disqus site
screen shot 2018-01-06 at 2 01 01 pm
still not working.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

image


Try to:

  1. Change url in main Hexo config:
    # URL
    ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
    url: https://qifengzhou.github.io
  2. Regenerate/redeploy site (hexo clean && hexo g && hexo d).

from hexo-theme-next.

qifengzhou avatar qifengzhou commented on May 26, 2024

hexo clean
hexo g
hexo d

Still dont see disqus.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

@qifengzhou can u show your full Hexo root _config.yml?

from hexo-theme-next.

qifengzhou avatar qifengzhou commented on May 26, 2024

Hexo root _config.yml

# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: Qifeng Zhou
subtitle:
description: My thought and stuff
author: Qifeng Zhou
language: en
timezone: 


# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: ‘http://qifengzhou.github.io'
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace:
  
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
  path: ''
  per_page: 10
  order_by: -date
  
# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next-reloaded

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
  type: git
  repo: https://github.com/qifengzhou/qifengzhou.github.io.git
  branch: master

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: ‘http://qifengzhou.github.io'

See instructions above.

from hexo-theme-next.

qifengzhou avatar qifengzhou commented on May 26, 2024

Should I put the contents in the hexo root _config.yml?
34639983-512ce2f4-f2fb-11e7-949d-3bd81dffe4b3

I didnt get it here.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

@qifengzhou i repeat:

See instructions above.

from hexo-theme-next.

qifengzhou avatar qifengzhou commented on May 26, 2024

I see..
The url should be out of the quote.
Now it works.
Thank you @ivan-nginx

from hexo-theme-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.