hexo-theme-amane/layout/share/sharethis.ejs

8 lines
369 B
Plaintext

<% if (!has_config('share.install_url')) { %>
<div class="notification is-danger">
You need to set <code>install_url</code> to use ShareThis. Please set it in <code>_config.yml</code>.
</div>
<% } else { %>
<div class="sharethis-inline-share-buttons"></div>
<script type='text/javascript' src='<%= get_config('share.install_url') %>' async='async'></script>
<% } %>