Updated share button
This commit is contained in:
parent
9fa3af2be1
commit
4fab660eee
@ -9,7 +9,7 @@
|
|||||||
<a href="/" class="back-to-blog" title="Return to all posts">←</a>
|
<a href="/" class="back-to-blog" title="Return to all posts">←</a>
|
||||||
|
|
||||||
<h2 class="post-title" itemprop="name headline">
|
<h2 class="post-title" itemprop="name headline">
|
||||||
<a class="post-link" href="{{ path }}">{{ title }}</a> {{> share }}
|
<a class="post-link" href="{{ path }}">{{ title }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="post-meta feather_type">
|
<div class="post-meta feather_type">
|
||||||
@ -63,7 +63,7 @@
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
navigator.share({
|
navigator.share({
|
||||||
title: document.title,
|
title: document.title,
|
||||||
url: window.location.url
|
url: window.location.href
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user