2020-11-01 17:37:21 +00:00
|
|
|
{{ define "postactions" }}
|
2021-09-08 06:18:19 +00:00
|
|
|
<div id="post-actions">
|
2021-10-21 18:55:42 +00:00
|
|
|
<a href="https://www.addtoany.com/share#url={{ shorturl .Data }}{{ with .Data.RenderedTitle }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener noreferrer" class="button">{{ string .Blog.Lang "share" }}</a>
|
2021-09-08 06:18:19 +00:00
|
|
|
<a id="translateBtn" href="https://translate.google.com/translate?u={{ absolute .Data.Path }}" target="_blank" rel="nofollow noopener noreferrer" class="button">{{ string .Blog.Lang "translate" }}</a>
|
2021-04-12 20:16:41 +00:00
|
|
|
<script defer src="{{ asset "js/translate.js" }}"></script>
|
2021-03-18 11:13:17 +00:00
|
|
|
<button id="speakBtn" class="hide" data-speak="{{ string .Blog.Lang "speak" }}" data-stopspeak="{{ string .Blog.Lang "stopspeak" }}"></button>
|
2021-09-07 20:16:28 +00:00
|
|
|
{{ if .Data.TTS }}
|
|
|
|
<script defer src="{{ asset "js/tts.js" }}"></script>
|
|
|
|
{{ else }}
|
2021-04-12 20:16:41 +00:00
|
|
|
<script defer src="{{ asset "js/speak.js" }}"></script>
|
2021-09-07 20:16:28 +00:00
|
|
|
{{ end }}
|
2020-11-01 17:37:21 +00:00
|
|
|
</div>
|
2021-09-07 20:16:28 +00:00
|
|
|
{{ if .Data.TTS }}
|
|
|
|
<div class="p hide" id="tts">
|
|
|
|
<audio controls preload=none id="tts-audio"><source src="{{ .Data.TTS }}"/></audio>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2020-11-01 17:37:21 +00:00
|
|
|
{{ end }}
|