Git Product home page Git Product logo

Comments (7)

gcushen avatar gcushen commented on July 17, 2024 1

The permalink format is a general Hugo setting. You can add the following near the top of your config.toml, and it should give you the format that you are after:

[permalinks]
    post = "/:year/:month/:slug"

from hugo-blox-builder.

GuangchuangYu avatar GuangchuangYu commented on July 17, 2024

this is will make it easy to get disqus comments.

from hugo-blox-builder.

GuangchuangYu avatar GuangchuangYu commented on July 17, 2024

it works. thanks.

from hugo-blox-builder.

GuangchuangYu avatar GuangchuangYu commented on July 17, 2024

Hi, the permalinks works, but it seems that the setting of disqus is not correct.

For example, it the post, http://guangchuangyu.github.io/2015/12/use-emoji-font-in-r/

screenshot 2016-05-19 09 25 30

After setting the permalinks back to what it was, the count of sharethis was back, but the disqus comments are missing.

The url is indeed correct. I click the comment link and it go to the correct page.

I can guarantee you by the following screenshot.

screenshot 2016-05-19 09 26 30

from hugo-blox-builder.

GuangchuangYu avatar GuangchuangYu commented on July 17, 2024

this screenshot may give you some hints.

screenshot 2016-05-19 10 59 44

from hugo-blox-builder.

gcushen avatar gcushen commented on July 17, 2024

This is really a separate question now, and appears to be unrelated to the Academic theme.

The Academic theme does not directly implement any Disqus code, it uses the Hugo implementation documented at https://gohugo.io/extras/comments/ . On that page, it states you can also include disqus_identifier, disqus_title, and disqus_url settings in the preamble (+++ section) of your posts/pages. Perhaps doing so will fix the new issue you reported. Otherwise, I suggest you search the Hugo Forum as many people there are using Hugo's Disqus plugin: http://discuss.gohugo.io/

Note that I do not use Disqus myself (although I hope to add it to my own website shortly).

from hugo-blox-builder.

GuangchuangYu avatar GuangchuangYu commented on July 17, 2024

I follow the guide in https://gohugo.io/extras/comments/ to create a disqus.html in partial folder, and the comments were back.

Thanks again.

from hugo-blox-builder.

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.