1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-25 19:54:31 +01:00
hugo-theme-bootstrap4-blog/layouts/_default
Alan Orth 2459ad9567
layouts/_default/single.html: Simplify sharing icon logic
Allowing users to select specific icons they want to show makes the
configuration and logic a bit tricky. A user brought up the case of
disabling sharing icons on certain pages/posts, and it was actaully
not possible without adding lots of extra logic, not to mention the
pain of having to test all possible configurations.

Instead, it is much simpler to just allow sharing icons to be either
on or off as desired in the site config or page/post frontmatter:

  sharingicons = false

Otherwise, sharing icons default to being enabled, as this is most
in line with what would be expected on a "blog".
2017-01-21 19:16:57 +02:00
..
baseof.html Add Schema.org implementation based on JSON-LD 2017-01-20 15:58:30 +02:00
list.html Add Schema.org implementation based on JSON-LD 2017-01-20 15:58:30 +02:00
single.html layouts/_default/single.html: Simplify sharing icon logic 2017-01-21 19:16:57 +02:00
summary.html Add Vim Modeline Comments to Files (#18) 2016-11-24 14:33:56 +02:00