summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-06-08 15:21:51 -0400
committerJules Laplace <jules@okfoc.us>2015-06-08 15:21:51 -0400
commit61eba61e64ca2daec8ade071eaf5ef632b819018 (patch)
tree9fd73654e49fbe8dfdaafb8604873510c661a6fd
parentf8e74cf7e9faddc5d28e6139d95ab25f1605e5ce (diff)
fb share
-rw-r--r--site/public/assets/javascripts/_env.js4
-rw-r--r--site/templates/index.liquid5
2 files changed, 4 insertions, 5 deletions
diff --git a/site/public/assets/javascripts/_env.js b/site/public/assets/javascripts/_env.js
index 6748409..7ee9255 100644
--- a/site/public/assets/javascripts/_env.js
+++ b/site/public/assets/javascripts/_env.js
@@ -747,11 +747,13 @@ var Share = {
// var msg = $(".postname").html()
// var url = "https://www.facebook.com/share.php?u=" + encodeURIComponent(link) + "&t=" + encodeURIComponent(msg)
// window.open(url, "_blank")
+
+ var picture = $(".gallery img").first().attr("src") || ($(".gallery .underlay").css('background-image') || "").replace("url(","").replace(")","") || "http://twohustlers.com/assets/images/2H_LOGOMARK.png"
FB.ui({
method: 'feed',
link: window.location.href,
caption: $(".postname").html(),
- picture: $(".gallery img").first().attr("src"),
+ picture: picture,
}, function(response){});
},
diff --git a/site/templates/index.liquid b/site/templates/index.liquid
index 8dbac5c..a609ceb 100644
--- a/site/templates/index.liquid
+++ b/site/templates/index.liquid
@@ -67,15 +67,12 @@ WEBSITE BY OKFOCUS, http://okfoc.us, Internet Legends.
<meta name="google" content="notranslate">
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-<meta name="description" content="Two Hustlers is a creative collective of radical thinkers, designers and storytellers. We build transformative experiences for passionate brands.">\
+<meta name="description" content="Two Hustlers is a creative collective of radical thinkers, designers and storytellers. We build transformative experiences for passionate brands.">
<meta property="og:url" content="http://twohustlers.com"/>
<meta property="og:site_name" content="Two Hustlers" />
<meta property="og:title" content="TWOHUSTLERS">
<meta property="og:type" content="website">
-<meta property="og:image" content="http://twohustlers.com/assets/images/2H_LOGOMARK.png">
-<meta property="og:url" content="http://twohustlers.com/">
<meta property="og:image" content="https://ltho.s3.amazonaws.com/twohustlers%2F0fa87125-e5b2-4020-8646-1155aba96250.jpg" />
-<meta property="og:site_name" content="TWOHUSTLERS">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">