Giter Club home page Giter Club logo

Comments (5)

ssbarnea avatar ssbarnea commented on August 16, 2024

Is clearly working for me with latest hugo and theme, see https://sbarnea.com -- look at JS console for errors.

from hugo-theme-pure.

SathyaBhat avatar SathyaBhat commented on August 16, 2024

@ssbarnea thank you - no JS console errors for me and I just updated netlify to use 0.62, no dice.

from hugo-theme-pure.

xiaoheiAh avatar xiaoheiAh commented on August 16, 2024

In this theme, disqus allow to be loaded in the local environment.You can take a debug.
Checkout if disqus.js be loaded.I tested it and worked for me.

from hugo-theme-pure.

SathyaBhat avatar SathyaBhat commented on August 16, 2024

Unfortunately disqus.js doesnt seem to be loaded, even though the partial is picked up

hugo --debug serve
...

DEBUG 2019/12/31 19:16:21 Add template file: name "partials/_script/comment.html", baseTemplatePath "", path "partials/_script/comment.html"

DEBUG 2019/12/31 19:16:21 Add template file: name "partials/post/category.html", baseTemplatePath "", path "partials/post/category.html"
..
INFO 2019/12/31 19:16:21 Using config file:
Building sites … INFO 2019/12/31 19:16:21 syncing static files to /

from hugo-theme-pure.

SathyaBhat avatar SathyaBhat commented on August 16, 2024

Ok, I found the problem. Most of my posts have

type: post

where this is present, the partials script for embedding is not entering the if condition and so disqus embed js is not added

https://github.com/xiaoheiAh/hugo-theme-pure/blob/master/layouts/partials/script.html#L63

changing mainSections in config.yml from "posts" to "post" means the condition is matched and this works again

from hugo-theme-pure.

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.