Skip to content

Commit 6c105d2

Browse files
committed
initial commit
0 parents  commit 6c105d2

File tree

15 files changed

+193
-0
lines changed

15 files changed

+193
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_site

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sourcefu.com

_config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
destination: _site
2+
server: auto
3+
markdown: rdiscount
4+
rdiscount:
5+
extensions: [autolink]
6+
authors:
7+
pdurbin:
8+
display_name: Philip Durbin
9+
something_to_iterate_over: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]

_includes/breadcrumbs-begin.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<div id="bread">
2+
<ul>

_includes/breadcrumbs-end.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
</ul>
2+
</div>

_includes/breadcrumbs.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{% include breadcrumbs-begin.html %}
2+
3+
{% comment %}
4+
based on http://stackoverflow.com/questions/9612235/what-are-some-good-ways-to-implement-breadcrumbs-on-a-jekyll-site/9633517#9633517
5+
{% endcomment %}
6+
7+
{% capture url_parts %}{{ page.url | remove: "/index.html" | replace: '/', " " }}{% endcapture %}
8+
{% capture num_levels_deep %}{{ url_parts | number_of_words | minus: 1 }}{% endcapture %}
9+
{% capture remaining_parts %}{{ url_parts }}{% endcapture %}
10+
{% assign growing_path="" %}
11+
12+
{% if num_levels_deep == "-1" %}
13+
<li><a href="/">home</a> &nbsp; </li>
14+
{% else %}
15+
<li><a href="/">home</a> &#187; </li>
16+
{% for unused in site.something_to_iterate_over limit: num_levels_deep %}
17+
18+
{% capture first_of_remaining %}{{ remaining_parts | truncatewords: 1, '' }}{% endcapture %}
19+
{% capture growing_path %}{{ growing_path }}/{{ first_of_remaining }}{% endcapture %}
20+
21+
<li><a href="{{growing_path}}">{{ first_of_remaining }}</a> &#187; </li>
22+
23+
{% comment %}
24+
<li>(remaining_parts: {{remaining_parts}}, first_of_remaining: {{first_of_remaining}}, growing_path: {{growing_path}}) <a href="{{growing_path}}">{{ first_of_remaining }}</a> &#187; </li>
25+
{% endcomment %}
26+
27+
{% capture remaining_parts %}{{ remaining_parts | remove_first: first_of_remaining }}{% endcapture %}
28+
29+
{% endfor %}
30+
{% endif %}
31+
32+
{% include breadcrumbs-end.html %}

_includes/topics.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- Bash: http://gnu.org/software/bash
2+
- Design patterns: http://en.wikipedia.org/wiki/Software_design_pattern
3+
- Git: http://git-scm.com
4+
- Haskell: http://haskell.org
5+
- Java: http://oracle.com/technetwork/java/javase/documentation
6+
- JavaScript: http://en.wikipedia.org/wiki/JavaScript
7+
- NoSQL: http://en.wikipedia.org/wiki/NoSQL
8+
- Perl: http://perl.org
9+
- PHP: http://php.net
10+
- Python: http://python.org
11+
- R: http://r-project.org
12+
- Ruby: http://ruby-lang.org
13+
- SQL: http://en.wikipedia.org/wiki/SQL
14+
- Vagrant: http://vagrantup.com

_layouts/default.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2+
"http://www.w3.org/TR/html4/loose.dtd">
3+
<html>
4+
<head>
5+
<title>{{ page.title }}</title>
6+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7+
<meta name="viewport" content="width=device-width">
8+
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
9+
<link rel="stylesheet" href="/master.css" type="text/css">
10+
</head>
11+
<body>
12+
{% include breadcrumbs.html %}
13+
<h1>{{ page.title }}</h1>
14+
{{ content }}
15+
</body>
16+
</html>

_layouts/post.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2+
"http://www.w3.org/TR/html4/loose.dtd">
3+
<html>
4+
<head>
5+
<title>{{ page.title }}</title>
6+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7+
<meta name="viewport" content="width=device-width">
8+
<link rel="stylesheet" href="/master.css" type="text/css">
9+
</head>
10+
<body>
11+
{% include breadcrumbs-begin.html %}
12+
<li><a href="/">home</a> &#187; </li>
13+
{% include breadcrumbs-end.html %}
14+
<h1>{{ page.title }}</h1>
15+
<font size=-1>{{ page.date | date:"%Y-%m-%d" }} by <a href="/members/{{page.author}}">{{ site.authors[page.author]display_name }}</a></font>
16+
{{ content }}
17+
</body>
18+
</html>

favicon.ico

Whitespace-only changes.

0 commit comments

Comments
 (0)