Skip to content

Commit

Permalink
Merge branch 'release/1.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Jan 24, 2017
2 parents eace59a + 79ba0a8 commit 7da70e9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.3.0
## 01/24/2017

1. [](#bugfix)
* Update header.html.twig. Makes requests protocol independent, so no more errors that the social content is loaded over an insecure network

# v1.2.0
## 09/09/2016

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Landio
version: 1.2.0
version: 1.3.0
description: "Land.io is a carefully crafted landing page template built on Bootstrap 4, designed by Peter Finlan and developed by Taty Grassini."
icon: group
author:
Expand Down
6 changes: 3 additions & 3 deletions templates/partials/header.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
<script type="text/javascript">
{% if site.socialcount.facebook_url %}
// Facebook Shares Count
$.getJSON( 'http://graph.facebook.com/?id={{ site.socialcount.url }}', function( fbdata ) {
$.getJSON( '//graph.facebook.com/?id={{ site.socialcount.url }}', function( fbdata ) {
$('#facebook-count').text(fbdata.shares)
});
{% endif %}
{% if site.socialcount.twitter_url %}
// Twitter Shares Count
$.getJSON( 'http://cdn.api.twitter.com/1/urls/count.json?url={{ site.socialcount.url }}&callback=?', function( twitdata ) {
$.getJSON( '//cdn.api.twitter.com/1/urls/count.json?url={{ site.socialcount.url }}&callback=?', function( twitdata ) {
$('#twitter-count').text(twitdata.count)
});
{% endif %}
{% if site.socialcount.linkedin_url %}
// LinkedIn Shares Count
$.getJSON( 'http://www.linkedin.com/countserv/count/share?url={{ site.socialcount.url }}&callback=?', function( linkdindata ) {
$.getJSON( '//www.linkedin.com/countserv/count/share?url={{ site.socialcount.url }}&callback=?', function( linkdindata ) {
$('#linkedin-count').text(linkdindata.count)
});
{% endif %}
Expand Down

0 comments on commit 7da70e9

Please sign in to comment.