Layout improvements
- Tagline - Share buttons - JSON LD - Tags - Style Fixes
This commit is contained in:
parent
cd5751ef14
commit
b607c6857a
11 changed files with 317 additions and 18 deletions
2
static/js/jquery.min.js
vendored
Normal file
2
static/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
48
static/js/soho.js
Normal file
48
static/js/soho.js
Normal file
|
@ -0,0 +1,48 @@
|
|||
$(document).ready(function(){
|
||||
|
||||
$(".twitter-share-button").click(function (e) {
|
||||
e.preventDefault();
|
||||
var self = $(this);
|
||||
var url = encodeURIComponent(self.data("url"));
|
||||
var text = encodeURIComponent(self.data("text"));
|
||||
|
||||
window.open(`https://twitter.com/intent/tweet?text=${text}&url=${url}`, "_blank").focus();
|
||||
});
|
||||
|
||||
$(".linkedin-share-button").click(function (e) {
|
||||
e.preventDefault();
|
||||
var self = $(this);
|
||||
var url = encodeURIComponent(self.data("url"));
|
||||
// var text = encodeURIComponent(self.data("text"));
|
||||
|
||||
window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${url}`, "_blank").focus();
|
||||
});
|
||||
|
||||
$(".facebook-share-button").click(function (e) {
|
||||
e.preventDefault();
|
||||
var self = $(this);
|
||||
var url = encodeURIComponent(self.data("url"));
|
||||
// var text = encodeURIComponent(self.data("text"));
|
||||
|
||||
window.open(`https://www.facebook.com/sharer/sharer.php?u=${url}`, "_blank").focus();
|
||||
});
|
||||
|
||||
$(".telegram-share-button").click(function (e) {
|
||||
e.preventDefault();
|
||||
var self = $(this);
|
||||
var url = encodeURIComponent(self.data("url"));
|
||||
var text = encodeURIComponent(self.data("text"));
|
||||
|
||||
window.open(`https://t.me/share/url?url=${url}&text=${text}`, "_blank").focus();
|
||||
});
|
||||
|
||||
$(".pinterest-share-button").click(function (e) {
|
||||
e.preventDefault();
|
||||
var self = $(this);
|
||||
var url = encodeURIComponent(self.data("url"));
|
||||
var text = encodeURIComponent(self.data("text"));
|
||||
|
||||
window.open(`https://pinterest.com/pin/create/button/?url=${url}&media=&description=${text}`, "_blank").focus();
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue