Skip to content

Commit

Permalink
added social sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
lodsb committed Jun 21, 2015
1 parent 170df2f commit 5a2c897
Show file tree
Hide file tree
Showing 20 changed files with 1,871 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ email: lodsb(at)lodsb.org
short-description: Hello World
description: XXX
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://yourdomain.com" # the base hostname & protocol for your site
url: "http://lodsb.org" # the base hostname & protocol for your site


# Build settings
Expand Down
6 changes: 3 additions & 3 deletions _includes/common-imports.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
<link rel="import" href="{{" /bower_components/neon-animation/neon-animations.html" | prepend: site.baseurl }}">
<link rel="import" href="{{" /bower_components/neon-animation/neon-animation-runner-behavior.html" | prepend: site.baseurl }}">

<link rel="import" href="{{" main-page.html" | prepend: site.baseurl }}">
<link rel="import" href="{{" music-page.html" | prepend: site.baseurl }}">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="import" href="{{" /main-page.html" | prepend: site.baseurl }}">
<link rel="import" href="{{" /music-page.html" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{" /css/font-awesome.min.css" | prepend: site.baseurl }}">
33 changes: 32 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,37 @@
<script src="{{ "/bower_components/webcomponentsjs/webcomponents.js" | prepend: site.baseurl }}"></script>

<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/css/common.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/css/common.css" | prepend: site.baseurl }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />

<!-- Social Sharing Plugin -->
<script type="text/javascript" src="{{ "/js/jquery.min.js" | prepend: site.baseurl }}"></script>
<script type="text/javascript" src="{{ "/js/jquery.socialshareprivacy.min.js" | prepend: site.baseurl }}"></script>
<script type="application/x-social-share-privacy-settings">
{"path_prefix":"/",
"layout":"line",
"image":"img",
"css_path": "{{ "css/jquery.socialshareprivacy.min.css" | prepend: site.baseurl }}",
"services":{
"buffer":{"status":false},
"delicious":{"status":false},
"disqus":{"status":false},
"flattr":{"status":false},
"hackernews":{"status":false},
"linkedin":{"status":false},
"mail":{"status":false},
"pinterest":{"status":false},
"reddit":{"status":false},
"stumbleupon":{"status":false},
"xing":{"status":false},
"fbshare":{"status":false}
}
}
</script>

<script type="text/javascript">
$(document).ready(function () {
$('.share').socialSharePrivacy();
});
</script>
10 changes: 10 additions & 0 deletions _includes/social-sharing.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- Social Sharing -->
<div data-social-share-privacy='true'></div>
<script type="text/javascript">
(function () {var s = document.createElement('script');
var t = document.getElementsByTagName('script')[0];
s.type = 'text/javascript';
s.async = true;
s.src = '/js/jquery.socialshareprivacy.min.autoload.js';
t.parentNode.insertBefore(s, t);})();
</script>
1 change: 1 addition & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
<div style="width: 50%; padding: 20px; background: #FFF; margin-left: auto ;
margin-right: auto;">
{{content}}
{% include social-sharing.html %}
</div>
</div>
1 change: 1 addition & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<div style="width: 100%; padding-top: 20px;">
<div style="float: left; width: 78%; background: #FFF; padding: 10px;">
{{ content }}
{% include social-sharing.html %}
</div>

<div style="float: right; width: 18%; background: #FFF;">
Expand Down
Loading

0 comments on commit 5a2c897

Please sign in to comment.