-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Santiago
committed
Feb 7, 2014
1 parent
44637e4
commit b53cceb
Showing
73 changed files
with
4,174 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
name: Santiago Archila | ||
markdown: redcarpet | ||
name: SA | ||
title: Santiago Archila | ||
description: "Santiago Archila - Software Engineer | Neuroscientist" | ||
url: "http://localhost:4000" | ||
|
||
port: 4000 | ||
pygments: true | ||
|
||
permalink: /:year/:month/:day/:title.html | ||
markdown: redcarpet | ||
|
||
owner: | ||
name: Santiago Archila | ||
twitter: tweetmeSanti |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script type="text/javascript"> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', '{{site.google_analytics}}']); | ||
_gaq.push(['_trackPageview']); | ||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- Disquss --> | ||
<script type="text/javascript"> | ||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ | ||
var disqus_shortname = '{{site.owner.disqus_shortname}}'; // required: replace example with your forum shortname | ||
|
||
/* * * DON'T EDIT BELOW THIS LINE * * */ | ||
(function() { | ||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
})(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>{% if page.title %}{{ page.title }} — {% endif %}{{ site.title}}</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
{% if page.title != "Archive (sidebar)" %} | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
{% endif %} | ||
<link href='http://fonts.googleapis.com/css?family=Poly:400,400italic' rel='stylesheet' type='text/css'> | ||
<link rel="stylesheet" media="screen, projection" href="{{site.url}}/res/screen.css" type="text/css"> | ||
<link rel="stylesheet" media="print" href="{{site.url}}/res/print.css" type="text/css"> | ||
|
||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:site" content="{{site.owner.twitter}}"> | ||
|
||
{% if page.title %} | ||
<meta property="og:title" content="{{ page.title }}"> | ||
{% if page.description %} | ||
<meta name="description" content="{{ page.description }}"> | ||
<meta name="og:description" content="{{ page.description }}"> | ||
{% else if content %} | ||
<meta name="description" content="{{ content | strip_html | truncatewords: 25 }}"> | ||
<meta name="og:description" content="{{ content | strip_html | truncatewords: 25 }}"> | ||
{% endif %} | ||
{% else %} | ||
<meta name="description" content="{{site.description}}"> | ||
{% endif %} | ||
|
||
<meta property="og:url" content="{{site.url}}/{{ page.url | remove_first:'index.html' }}"> | ||
<meta property="og:site_name" content="{{site.title}}"> | ||
<meta property="og:type" content="article"> | ||
<meta property="og:locale" content="en_GB" /> | ||
{% if page.date %} | ||
<meta property="article:published_time" content="{{ page.date | date: "%Y-%m-%d" }}"> | ||
{% endif %} | ||
<!-- Add custom CSS here --> | ||
<link href="{{site.url}}/assets/css/font-awesome.min.css" rel="stylesheet"> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
<script src="{{site.url}}/assets/js/jquery-1.10.2.js"></script> | ||
<script src="{{site.url}}/assets/js/simpleJekyllSearch.js"></script> | ||
|
||
<script type="text/javascript"> | ||
/* Jekyll Simple Search option */ | ||
|
||
$(document).ready(function() { | ||
$('.search-field').simpleJekyllSearch({ | ||
jsonFile: '{{site.url}}/search.json', | ||
searchResults: '.search-results', | ||
template: '<li><a href="{url}"><time datetime="{date}">{shortdate}</time> — {title}</a></li>', | ||
noResults: '<p>Nothing found.</p>' | ||
}); | ||
}); | ||
|
||
(function($, window, undefined) { | ||
|
||
var bs = { | ||
close: $(".icon-remove-sign"), | ||
searchform: $(".search-form"), | ||
canvas: $("body"), | ||
dothis: $('.dosearch') | ||
}; | ||
|
||
bs.dothis.on('click', function() { | ||
$('.search-wrapper').css({display: "block"}); | ||
bs.searchform.toggleClass('active'); | ||
bs.searchform.find('input').focus(); | ||
bs.canvas.toggleClass('search-overlay'); | ||
}); | ||
|
||
bs.close.on('click', function() { | ||
$('.search-wrapper').removeAttr('style'); | ||
bs.searchform.toggleClass('active'); | ||
bs.canvas.removeClass('search-overlay'); | ||
}); | ||
})(jQuery, window); | ||
|
||
/* page load */ | ||
(function(f) { | ||
var onload = function(f) { | ||
if (window.addEventListener) { | ||
window.addEventListener('DOMContentLoaded', f, false); | ||
} else { | ||
window.attachEvent('onload', f); | ||
} | ||
}; | ||
onload(function() { | ||
f(); | ||
if (window.addEventListener) { | ||
window.addEventListener('resize', f, false); | ||
} else { | ||
window.attachEvent('resize', f); | ||
} | ||
}); | ||
})(function() { | ||
var winw = window.innerWidth, w; //, width_thresholds = [680, 780]; | ||
w = window.__post_grid_width; | ||
|
||
if ((w !== undefined) && | ||
((w === 680 && winw < 680) || | ||
(w === 780 && winw >= 680 && winw < 780) || | ||
(w === 10000 && winw >= 780) | ||
) | ||
) | ||
{ | ||
// console.log('noop w:', w+ ', winw:', winw); | ||
return; | ||
} else { | ||
window.__post_grid_width = w = | ||
winw > 780 ? 10000 : | ||
winw > 680 ? 780 : | ||
680; | ||
// console.log('op w:', w); | ||
} | ||
|
||
var posts = document.getElementById('recent-posts'); | ||
var child_nodes = posts.childNodes, k, node, h, | ||
col_width, col0_y, col1_y, col1_x, | ||
origin = {x: 0, y: 0}, node_count = 0, is_col0, row0_max_y; | ||
|
||
posts.style.position = (window.__post_grid_width <= 680) ? null : 'relative'; | ||
|
||
for (k in child_nodes) { | ||
node = child_nodes[k]; | ||
if (node.nodeType === Node.ELEMENT_NODE) { | ||
if (node.className === 'breaker') { | ||
if (window.__post_grid_width <= 680) { | ||
node.style.height = null; | ||
} else { | ||
node.style.height = (Math.max(col0_y, col1_y) - row0_max_y) + 'px'; | ||
} | ||
break; | ||
} | ||
if (col0_y === undefined) { | ||
origin.x = node.offsetLeft; | ||
origin.y = node.offsetTop; | ||
col_width = node.clientWidth; | ||
col0_y = origin.y + node.clientHeight; | ||
row0_max_y = col0_y; | ||
} else { | ||
if (col1_y === undefined) { | ||
col1_y = origin.y + node.clientHeight; | ||
col1_x = origin.x + node.clientWidth; | ||
if (col1_y > row0_max_y) { | ||
row0_max_y = col1_y; | ||
} | ||
} else { | ||
if (window.__post_grid_width <= 680) { | ||
// console.log('Clear'); | ||
node.style.position = null; | ||
node.style.width = null; | ||
node.style.left = null; | ||
node.style.top = null; | ||
} else { | ||
is_col0 = (node_count % 2) === 0; | ||
node.style.position = 'absolute'; | ||
node.style.width = col_width + 'px'; | ||
if (is_col0) { | ||
node.style.left = origin.x + 'px'; | ||
node.style.top = col0_y + 'px'; | ||
col0_y += node.clientHeight; | ||
} else { | ||
node.style.left = col1_x + 'px'; | ||
node.style.top = col1_y + 'px'; | ||
col1_y += node.clientHeight; | ||
} | ||
} | ||
// console.dir(node); | ||
} | ||
} | ||
++node_count; | ||
} | ||
} | ||
|
||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
|
||
<title>{{ page.title }}</title> | ||
<style type="text/css" media="screen"> | ||
body { | ||
background:white; color:#020202; | ||
font:13px georgia, serif; | ||
line-height:1.4; | ||
font-weight: lighter; | ||
text-rendering: optimizelegibility; | ||
} | ||
div.breaker { clear:both; } | ||
img { border:none; vertical-align:bottom; } | ||
hr { height:1px; border:none; background-color:#ddd; } | ||
h1,h2,h3,h4 { | ||
font-family: 'Helvetica Neue', helvetica, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
{{ content }} | ||
{% include analytics.html %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>{{ page.title }}</title> | ||
<meta name="viewport" content="width=device-width"> | ||
<!DOCTYPE HTML> | ||
<html lang="en" prefix="og: http://ogp.me/ns#"> | ||
{% include head.html %} | ||
<body{% if page.wide_layout %} class="wide"{% endif %}> | ||
|
||
<!-- syntax highlighting CSS --> | ||
<link rel="stylesheet" href="/css/syntax.css"> | ||
<!--<div id="wrapper">--> | ||
<div class="search-wrapper"> | ||
<div class="search-form"> | ||
<input type="text" class="search-field" placeholder="Search..."> | ||
<i class="fa fa-times icon-remove-sign"></i> | ||
<ul class="search-results post-list"></ul><!-- /.search-results --> | ||
</div><!-- /.search-form --> | ||
</div><!-- ./search-wrapper --> | ||
|
||
<!-- Custom CSS --> | ||
<link rel="stylesheet" href="/css/main.css"> | ||
<iframe id="sidebar"></iframe> | ||
<header> | ||
<h1 class="logo" id="blog-title"><a href="{{site.url}}">{{ site.name }}</a></h1> | ||
<ul class="navigation"> | ||
<li><a href="{{site.url}}/archive/"{% if page.url contains "/archive/" %}class="active"{% endif %} title="Archived articles">Archive</a></li> | ||
<!-- <li><a href="{{site.url}}/about/"{% if page.url contains "/about/" %}class="active"{% endif %}>About me</a></li> --> | ||
</ul> | ||
</header> | ||
|
||
</head> | ||
<body> | ||
{{ content }} | ||
|
||
<div class="site"> | ||
<div class="header"> | ||
<h1 class="title"><a href="/">{{ site.name }}</a></h1> | ||
<a class="extra" href="/">home</a> | ||
</div> | ||
|
||
{{ content }} | ||
{% if paginator.page %} | ||
<div id="paginator" class="content"> | ||
{% if paginator.next_page %} | ||
<a href="{{site.url}}/page{{ paginator.next_page }}/">Older entries</a> | ||
{% endif %} | ||
{% if paginator.previous_page %} | ||
<a href="{{site.url}}/page{{ paginator.previous_page }}/">Newer entries</a> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
|
||
<div class="footer"> | ||
{% unless page.no_footer %} | ||
<footer> | ||
<div class="contact"> | ||
<p> | ||
Santiago Archila<br /> | ||
Neuroscientist | Software Engineer<br /> | ||
Software Engineer | Neuroscientist<br /> | ||
[email protected] | ||
</p> | ||
</div> | ||
|
@@ -37,8 +49,12 @@ <h1 class="title"><a href="/">{{ site.name }}</a></h1> | |
<a href="https://twitter.com/tweetmeSanti">twitter.com/tweetmeSanti</a><br /> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<p>Powered by Jekyll - <a href="http://github.com/nadjetey/redcup">Redcup</a> Theme</p> | ||
</footer> | ||
{% endunless %} | ||
|
||
{% include disqus.html %} | ||
{% include analytics.html %} | ||
{% include pagescript.html %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: default | ||
--- | ||
<div class="content"> | ||
{{ content }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
--- | ||
layout: default | ||
--- | ||
<h2>{{ page.title }}</h2> | ||
<p class="meta">{{ page.date | date_to_string }}</p> | ||
<div class="post"> | ||
{{ content }} | ||
<div class="content{% if page.photo_url %} photo-post{% endif %}"> | ||
<div class="post single"> | ||
{% unless page.photo_url %} | ||
<h1>{{ page.title }}</h1> | ||
<info datetime="{{ page.date | date: "%Y-%m-%d" }}"> | ||
{{ page.date | date: "%b %d, %Y" }} | ||
</info> | ||
{% endunless %} | ||
<div class="body">{{ content }}</div> | ||
<!-- <div class="breaker"></div> --> | ||
<div class="breaker"></div> | ||
</div> | ||
|
||
<div class="comments container"> | ||
<div id="disqus_thread"></div> | ||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> | ||
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> | ||
</div> | ||
</div> | ||
|
Oops, something went wrong.