mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
Add social sharing
setting to config.toml
This commit is contained in:
parent
bd239c34dd
commit
703a6af3b2
2 changed files with 4 additions and 1 deletions
|
@ -26,6 +26,9 @@ googleAnalytics = ""
|
||||||
# Enable global LaTeX math rendering? If false, you can enable it locally on a per page basis.
|
# Enable global LaTeX math rendering? If false, you can enable it locally on a per page basis.
|
||||||
math = false
|
math = false
|
||||||
|
|
||||||
|
# Enable native social sharing buttons?
|
||||||
|
sharing = true
|
||||||
|
|
||||||
# Link custom CSS and JS assets (relative to /static/css and /static/js respectively)
|
# Link custom CSS and JS assets (relative to /static/css and /static/js respectively)
|
||||||
custom_css = []
|
custom_css = []
|
||||||
custom_js = []
|
custom_js = []
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{ if not .Site.Params.disable_sharing }}
|
{{ if .Site.Params.sharing }}
|
||||||
<div class="share-box">
|
<div class="share-box">
|
||||||
<ul class="share">
|
<ul class="share">
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue