Update to site
This commit is contained in:
parent
3345fa5897
commit
b0bdfe2fe9
244 changed files with 11618 additions and 12 deletions
16
source/_includes/javascripts/delicious.html
Normal file
16
source/_includes/javascripts/delicious.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% if site.delicious_user %}
|
||||
<script src="//feeds.delicious.com/v2/json/{{ site.delicious_user }}?count={{ site.delicious_count }}&sort=date&callback=renderDeliciousLinks"></script>
|
||||
{% endif %}
|
||||
{% if site.pinboard_user %}
|
||||
<script>
|
||||
var linkroll = 'pinboard_linkroll'; //id target for pinboard list
|
||||
var pinboard_user = "{{ site.pinboard_user }}"; //id target for pinboard list
|
||||
var pinboard_count = {{ site.pinboard_count }}; //id target for pinboard list
|
||||
(function(){
|
||||
var pinboardInit = document.createElement('script');
|
||||
pinboardInit.async = true;
|
||||
pinboardInit.src = '{{ root_url }}/javascripts/pinboard.js';
|
||||
document.getElementsByTagName('head')[0].appendChild(pinboardInit);
|
||||
})();
|
||||
</script>
|
||||
{% endif %}
|
20
source/_includes/javascripts/disqus.html
Normal file
20
source/_includes/javascripts/disqus.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
{% if site.disqus_short_name and page.comments != false %}
|
||||
<script>
|
||||
var disqus_shortname = '{{ site.disqus_short_name }}';
|
||||
{% if page.comments == true %}
|
||||
{% comment %} `page.comments` can be only be set to true on pages/posts, so we embed the comments here. {% endcomment %}
|
||||
// var disqus_developer = 1;
|
||||
var disqus_identifier = '{{ site.url }}{{ page.url }}';
|
||||
var disqus_url = '{{ site.url }}{{ page.url }}';
|
||||
var disqus_script = 'embed.js';
|
||||
{% else %}
|
||||
{% comment %} As `page.comments` is empty, we must be on the index page. {% endcomment %}
|
||||
var disqus_script = 'count.js';
|
||||
{% endif %}
|
||||
(function () {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/' + disqus_script;
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
}());
|
||||
</script>
|
||||
{% endif %}
|
21
source/_includes/javascripts/github.html
Normal file
21
source/_includes/javascripts/github.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% if site.github_user %}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
if (!window.jXHR){
|
||||
var jxhr = document.createElement('script');
|
||||
jxhr.type = 'text/javascript';
|
||||
jxhr.src = '{{ root_url}}/javascripts/libs/jXHR.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(jxhr, s);
|
||||
}
|
||||
|
||||
github.showRepos({
|
||||
user: '{{site.github_user}}',
|
||||
count: {{site.github_repo_count}},
|
||||
skip_forks: {{site.github_skip_forks}},
|
||||
target: '#gh_repos'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="{{ root_url }}/javascripts/github.js"></script>
|
||||
{% endif %}
|
8
source/_includes/javascripts/google_analytics.html
Normal file
8
source/_includes/javascripts/google_analytics.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% if site.google_analytics_tracking_id %}
|
||||
<script>
|
||||
var _gaq=[['_setAccount','{{ site.google_analytics_tracking_id }}'],['_trackPageview']];
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
</script>
|
||||
{% endif %}
|
12
source/_includes/javascripts/scripts.html
Normal file
12
source/_includes/javascripts/scripts.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{% comment %}
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||
<script defer src="{{ root_url }}/javascripts/octopress.js"></script>
|
||||
{% endcomment %}
|
||||
|
||||
{% include javascripts/google_analytics.html %}
|
||||
{% include javascripts/disqus.html %}
|
||||
|
||||
{% if page.sidebar != false %}
|
||||
{% include javascripts/github.html %}
|
||||
{% include javascripts/delicious.html %}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue