Explorar o código

Add social `sharing` setting to `config.toml`

George Cushen %!s(int64=9) %!d(string=hai) anos
pai
achega
703a6af3b2
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 3 0
      exampleSite/config.toml
  2. 1 1
      layouts/partials/share.html

+ 3 - 0
exampleSite/config.toml

@@ -26,6 +26,9 @@ googleAnalytics = ""
   # Enable global LaTeX math rendering? If false, you can enable it locally on a per page basis.
   math = false
 
+  # Enable native social sharing buttons?
+  sharing = true
+
   # Link custom CSS and JS assets (relative to /static/css and /static/js respectively)
   custom_css = []
   custom_js  = []

+ 1 - 1
layouts/partials/share.html

@@ -1,4 +1,4 @@
-{{ if not .Site.Params.disable_sharing }}
+{{ if .Site.Params.sharing }}
 <div class="share-box">
     <ul class="share">
         <li>