mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
feat(sharing): Improved front page FB share
This commit is contained in:
@@ -34,6 +34,15 @@ function($scope, $rootScope, User, $http, Notification, ApiUrl) {
|
||||
// Twitter
|
||||
$.getScript('https://platform.twitter.com/widgets.js');
|
||||
|
||||
// Facebook
|
||||
(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
|
||||
/* Google Content Experiments
|
||||
if (window.env.NODE_ENV === 'production') {
|
||||
$.getScript('//www.google-analytics.com/cx/api.js?experiment=boVO4eEyRfysNE5D53nCMQ', function(){
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
footer.footer(ng-controller='FooterCtrl')
|
||||
div(id='fb-root')
|
||||
.container
|
||||
.row
|
||||
.col-sm-3
|
||||
@@ -63,7 +64,7 @@ footer.footer(ng-controller='FooterCtrl')
|
||||
table
|
||||
tr
|
||||
td
|
||||
a.addthis_button_facebook_like(fb:like:layout='button_count')
|
||||
.fb-like(data-href='https://habitica.com/', data-layout='button', data-action='like', data-show-faces='true', data-share='true')
|
||||
tr
|
||||
td
|
||||
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=Improve+yourself+in+the+land+of+Habitica!&via=habitica&url=https://habitica.com/&count=none')=env.t('tweet')
|
||||
|
||||
@@ -12,11 +12,13 @@ html(ng-app='habitrpg', ng-controller='RootCtrl')
|
||||
meta(name='author', content='')
|
||||
meta(name='geo.placename', content='')
|
||||
meta(name='viewport', content='width=device-width, maximum-scale=1')
|
||||
meta(property='og:title', content='')
|
||||
meta(property='og:description', content='')
|
||||
meta(property='og:url', content='')
|
||||
meta(property='og:image', content='')
|
||||
meta(property='og:site_name', content='')
|
||||
meta(property='og:url', content='https://habitica.com/')
|
||||
meta(property='og:type', content='website')
|
||||
meta(property='og:title', content='Habitica: Your Life the Role Playing Game')
|
||||
meta(property='og:description', content='Habitica is a free habit building and productivity app that treats your real life like a game. With in-game rewards and punishments to motivate you and a strong social network to inspire you, Habitica can help you achieve your goals to become healthy, hard-working, and happy.')
|
||||
meta(property='og:site_name', content='Habitica')
|
||||
meta(property='og:image', content='https://s3.amazonaws.com/habitica-assets/assets/gryphon_logo.png')
|
||||
meta(property='fb:app_id', content='128307497299777')
|
||||
meta(name='twitter:card' content='summary')
|
||||
meta(name='twitter:site' content='@habitica')
|
||||
meta(name='twitter:title' content='Habitica: Your Life the Role Playing Game')
|
||||
|
||||
Reference in New Issue
Block a user