mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
Add share links at bottom of page
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
<script src="{{ .Site.BaseURL }}js/progressively.min.js" defer></script>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.share }}
|
||||
<script src="{{ .Site.BaseURL }}js/social-share-kit.min.js" defer></script>
|
||||
{{ end }}
|
||||
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
|
||||
<script>
|
||||
@@ -28,5 +32,11 @@
|
||||
{{ if .Site.Params.progressively }}
|
||||
progressively.init({delay: 30, throttle: 50});
|
||||
{{ end }}
|
||||
{{ if .Site.Params.share }}
|
||||
SocialShareKit.init({
|
||||
url: '{{ .Permalink }}',
|
||||
text: '{{ .Title }}'
|
||||
});
|
||||
{{ end }}
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user