Comments (4)
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.
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.
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.
Great! Many thanks for the fast implementation!
Regards, Frank
from hugo-theme-bootstrap4-blog.
Related Issues (20)
- publisher missing in structured data HOT 2
- Header title link does not follow base URL
- If you rebuild the css, visitors to your site do not get the new css file if they have the old css file cached. HOT 4
- Css Entire page shifts out of alignment. HOT 2
- theme/layhouts/_default/list.html HOT 1
- Tag and category links missing trailing slash
- Character escape issue with schema dot org and Google Crawler HOT 1
- How to add background image to the site? HOT 1
- Create relative links only HOT 2
- Font awesome icon availability HOT 3
- Project zip file being detected as virus HOT 2
- Can't tip you with BAT tokens :) HOT 4
- custom head not working HOT 2
- params are not optional HOT 1
- Did not add PrismJS very well HOT 4
- Recommended way to customize CSS on the theme? HOT 2
- dropdown menu does not work HOT 1
- Please include the tables CSS HOT 1
- Support for Submenus HOT 2
- Why does the build version of this theme doesn't look like the live one? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-bootstrap4-blog.