Git Product home page Git Product logo

Comments (4)

alanorth avatar alanorth commented on July 30, 2024

Yes, I could see how someone might want to turn off sharing icons on a page/post basis. I will have to think about how to do this, trying to keep all of the possible combinations of variables and simplicity in mind!

from hugo-theme-bootstrap4-blog.

alanorth avatar alanorth commented on July 30, 2024

Ok, I think I can make the logic in layouts/_default/single.html more simple if I make the sharing icons a simple on/off thing, rather than allowing for hiding certain icons (because this is another variable scope and had to be tested in an annoying way).

How do you feel about a simple config / frontmatter option like this?

sharingicons = false

It would default on (to show icons), unless turned off in the site config or frontmatter.

from hugo-theme-bootstrap4-blog.

alanorth avatar alanorth commented on July 30, 2024

Ok, I decided to implement this as above. Now it works like this: sharing icons are enabled by default, but you can set sharingicons = false in the site's config or in individual page/post frontmatter to toggle the setting there. Thanks for the idea, and the opportunity to simplify the template logic a bit.

See: 2459ad9

from hugo-theme-bootstrap4-blog.

fte378 avatar fte378 commented on July 30, 2024

Great! Many thanks for the fast implementation!

Regards, Frank

from hugo-theme-bootstrap4-blog.

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.