1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-06-26 16:13:45 +02:00
hugo-theme-bootstrap4-blog/layouts
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
..
_default layouts/_default/single.html: Simplify sharing icon logic 2017-01-21 19:16:57 +02:00
partials Add Schema.org implementation based on JSON-LD 2017-01-20 15:58:30 +02:00
404.html First commit with initial theme 2016-08-28 16:22:32 +03:00
robots.txt Add robots.txt template 2016-09-21 22:37:39 +03:00