Skip to content

Commit

Permalink
Initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
subsonic committed Jan 31, 2014
0 parents commit 3862536
Show file tree
Hide file tree
Showing 50 changed files with 1,913 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
_site
18 changes: 18 additions & 0 deletions 404.html
@@ -0,0 +1,18 @@
---
layout: page
title: "404 - File Not Found"
comments: false
sharing: false
footer: true
---

<h1>Whoops! Could not find that page.</h1>
<p>
Hi there, I recently migrated my blog to a new platform and may have broken
a lot of links inadverdently.
</p>
<p>
If you don't mind, please
<a href="https://github.com/Haacked/haacked.com/issues/new">log an issue</a>
with the URL you were trying to reach and where you found the URL. Thanks!
</p>
1 change: 1 addition & 0 deletions CNAME
@@ -0,0 +1 @@
subsonic.wekeroad.com
7 changes: 7 additions & 0 deletions Gemfile
@@ -0,0 +1,7 @@
source 'https://rubygems.org'
gem 'github-pages'

group :test do
gem "html-proofer"
gem "rake"
end
12 changes: 12 additions & 0 deletions README.md
@@ -0,0 +1,12 @@
# Haacked.com

This is my blog. There are many like it, but this one is mine.

## Testing

[HTML::Proofer](https://github.com/gjtorikian/html-proofer) is set up to validate all links within the project. You can run this locally to ensure that your changes are valid:

```shell
bundle install
bundle exec rake test
```
9 changes: 9 additions & 0 deletions RakeFile
@@ -0,0 +1,9 @@
require "html/proofer"

`chcp 65001`

task :test do
sh "bundle exec jekyll build --trace"
# ignore href="#" for the "Copy to clipboard" button
HTML::Proofer.new("./_site", :href_ignore => ["#"]).run
end
29 changes: 29 additions & 0 deletions _config.yml
@@ -0,0 +1,29 @@
#
# Blog Settings
#
author: Rob Conery
description: Subsonic 3.0 Documentation Site
url: http://subsonic.github.io
title: 'Subsonic'
subtitle: "A Super High-fidelity Batman Utility Belt that works up your Data Access (using Linq in 3.0), throws in some much-needed utility functions, and generally speeds along your dev cycle"
gravatar_url: http://media.wekeroad.com/SubSonicSMall.png
subscribe_rss: http://subsonic.github.io/atom.xml

# Github repositories
github_user: subsonic
github_repo_url: https://github.com/subsonic/SubSonic-3.0/

# Twitter
twitter_user: robconery
twitter_tweet_button: true

#
# Jekyll Settings
#
markdown: redcarpet
redcarpet:
extensions: ["tables"]
#permalink: /archive/:year/:month/:day/:title/
paginate: 20
paginate_path: "page/:num"
category_dir: categories
23 changes: 23 additions & 0 deletions _includes/archive_post.html
@@ -0,0 +1,23 @@
{% capture date %}{{ post.date }}{% endcapture %}
{% capture this_year %}{{ date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
{% unless forloop.first %}
</ul>
{% endunless %}
<h2 class="year">{{ date | date: "%Y" }}</h2>
<ul>
{% endunless %}
<li>
<h3 class="title"><a href="{{ post.url }}">{{post.title}}</a></h3>
<div class="meta">
<span class="date"><time datetime="{{ date | datetime | date_to_xmlschema }}" itemprop="datePublished">{{ date | date: "%b %e" }}</time></span>
{% if post.categories.length > 0 %}
<span class="tags">{% include post/categories.html %}</span>
{% endif %}
{% if site.disqus_short_name and post.comments == true and site.disqus_show_comment_count == true %}
{% include post/comments_link.html %}
{% endif %}
<span class="edit">{% include post/edit.html %}</span>
</div>
</li>
13 changes: 13 additions & 0 deletions _includes/article.html
@@ -0,0 +1,13 @@
{% if index %}
<h1 class="title" itemprop="name"><a href="{{ post.url }}" itemprop="url">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
{% include post/meta.html %}
<div class="entry-content" itemprop="articleBody">
{{ content | excerpt }}
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
{% if excerpted == 'true' %}<a href="{{ post.url }}" class="more-link">{{ site.excerpt_link }}</a>{% endif %}
</div>
{% else %}
<h1 class="title" itemprop="name">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
{% include post/meta.html %}
<div class="entry-content" itemprop="articleBody">{{ content }}</div>
{% endif %}
15 changes: 15 additions & 0 deletions _includes/banner.html
@@ -0,0 +1,15 @@
{% if site.twitter_user and site.twitter_tweet_count > 0 %}
<div id="banner" class="inner">
<div class="container">
<ul class="feed"></ul>
</div>
<small><a href="http://twitter.com/{{ site.twitter_user }}">{{ site.twitter_user }}</a> @ <a href="http://twitter.com">Twitter</a></small>
<div class="loading">Loading...</div>
</div>
<script src="{{ root_url }}/javascripts/twitter.js"></script>
<script type="text/javascript">
(function($){
$('#banner').getTwitterFeed('{{ site.twitter_user }}', {{ site.twitter_tweet_count }}, {{ site.twitter_show_replies }});
})(jQuery);
</script>
{% endif %}
27 changes: 27 additions & 0 deletions _includes/custom/category_feed.xml
@@ -0,0 +1,27 @@
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

<title><![CDATA[{% if site.titlecase %}{{ page.title | titlecase | cdata_escape }}{% else %}{{ page.title | cdata_escape }}{% endif %} | {{ site.title | cdata_escape }}]]></title>
<link href="{{ site.url }}/{{ page.feed_url }}" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/</id>
<author>
<name><![CDATA[{{ site.author | strip_html }}]]></name>
{% if site.email %}<email><![CDATA[{{ site.email }}]]></email>{% endif %}
</author>
<generator uri="http://octopress.org/">Octopress</generator>

{% for post in site.categories[page.category] limit: 5 %}
<entry>
<title type="html"><![CDATA[{% if site.titlecase %}{{ post.title | titlecase | cdata_escape }}{% else %}{{ post.title | cdata_escape }}{% endif %}]]></title>
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ post.id }}</id>
<content type="html"><![CDATA[{{ post.content | expand_urls: site.url | markdownify | cdata_escape }}]]></content>
</entry>
{% endfor %}
</feed>
27 changes: 27 additions & 0 deletions _includes/disqus.html
@@ -0,0 +1,27 @@
{% comment %} Load script if disquss comments are enabled and `page.comments` is either empty (index) or set to true {% endcomment %}
{% if site.disqus_short_name and page.comments != false %}
<script type="text/javascript">
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 = '{% if page.disqus_identifier %}{{ page.disqus_identifier}}{% else %}{{ site.url }}{{ page.url }}{% endif %}';
var disqus_url = '{{ site.url }}{{ page.url }}';
var disqus_script = 'embed.js';
{% endif %}
(function () {
{% if page.comments == true %}
var embedScript = document.createElement('script');
embedScript.type = 'text/javascript';
embedScript.async = true;
embedScript.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(embedScript);
{% endif %}
var countScript = document.createElement('script');
countScript.type = 'text/javascript';
countScript.async = true;
countScript.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(countScript);
}());
</script>
{% endif %}
7 changes: 7 additions & 0 deletions _includes/footer.html
@@ -0,0 +1,7 @@
<p>
Copyright &copy; {{ site.time | date: "%Y" }} - {{ site.author }} Blog content licensed under the Creative Commons <a href="http://creativecommons.org/licenses/by/2.5/">CC BY 2.5</a> | <a href="/privacy">privacy</a> | <a href="/articles/blogtegrity">blogtegrity</a>
</p>
<img id="feedburner-count" src="http://feedproxy.google.com/~fc/haacked?bg=FFFFFF&amp;fg=999999&amp;anim=0" alt="Reader count" />

{% include disqus.html %}
{% include twitter_sharing.html %}
13 changes: 13 additions & 0 deletions _includes/google_analytics.html
@@ -0,0 +1,13 @@
{% if site.google_analytics_tracking_id %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ site.google_analytics_tracking_id }}']);
_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>
{% endif %}
36 changes: 36 additions & 0 deletions _includes/head.html
@@ -0,0 +1,36 @@
<!DOCTYPE HTML>
{% if site.lang %}
<html lang="{{ site.lang }}">
{% else %}
<html>
{% endif %}
<head>
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
<meta name="author" content="{{ site.author }}">

{% capture description %}
{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}
{% endcapture %}
<meta name="description" content="{{ description }}">
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}

<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml">
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' }}{% endif %}{% endcapture %}
<link rel="canonical" href="{{ canonical }}">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,400italic,600,700,800' rel='stylesheet' type='text/css'>
<link href="/favicon.png" rel="shortcut icon">
<link href="/css/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/code.css" type="text/css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="/js/slash.js" async></script>

{% include google_analytics.html %}
</head>
25 changes: 25 additions & 0 deletions _includes/header.html
@@ -0,0 +1,25 @@
<div style="margin-bottom: 32px">
<img src="http://media.wekeroad.com/SubSonicSMall.png" alt="">
</div>
<hgroup>
{% if site.subtitle %}
<h2>{{ site.subtitle }}</h2>
{% endif %}
</hgroup>
<nav id="main-nav">{% include navigation.html %}</nav>
<nav id="sub-nav">
<div class="social">
{% if site.email %}
<a class="email" href="mailto:{{ site.email }}" title="Email">Email</a>
{% endif %}
{% if site.twitter_user %}
<a class="twitter" href="http://twitter.com/{{ site.twitter_user }}" title="Twitter">Twitter</a>
{% endif %}
{% if site.github_user %}
<a class="github" href="https://github.com/{{ site.github_user }}" title="GitHub">GitHub</a>
{% endif %}
{% if site.subscribe_rss %}
<a class="rss" href="{{ site.subscribe_rss }}" title="RSS">RSS</a>
{% endif %}
</div>
</nav>
12 changes: 12 additions & 0 deletions _includes/navigation.html
@@ -0,0 +1,12 @@
<ul class="main-navigation">
<li><a href="/about/">about</a></li>
<li><a href="/archive">archives</a></li>
</ul>

{% if site.description %}
<section class="aboutme">
<p>
{{ site.description }}
</p>
</section>
{% endif %}
1 change: 1 addition & 0 deletions _includes/post/categories.html
@@ -0,0 +1 @@
{{ page.categories | join: ', ' }}{{ post.categories | join: ', ' }}
7 changes: 7 additions & 0 deletions _includes/post/comments_link.html
@@ -0,0 +1,7 @@
{% if post.disqus_identifier %}
{% assign disqus_identifier = post.disqus_identifier %}
{% else %}
{% assign disqus_identifier = page.disqus_identifier %}
{% endif %}

<span class="comments"><a href="{{ post.url }}#disqus_thread"{% if disqus_identifier %} data-disqus-identifier="{{ disqus_identifier }}"{% endif %}>comments</a></span>
7 changes: 7 additions & 0 deletions _includes/post/date.html
@@ -0,0 +1,7 @@
{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %}
{% capture has_date %}{{ date | size }}{% endcapture %}

{% if has_date != '0' %}
{% capture time %}<time datetime="{{ date | datetime | date_to_xmlschema }}" {% if updated %}data-updated="true"{% endif %} itemprop="datePublished">{{ date | date: "%B %e, %Y" }}</time>{% endcapture %}
{% endif %}

1 change: 1 addition & 0 deletions _includes/post/disqus_thread.html
@@ -0,0 +1 @@
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
7 changes: 7 additions & 0 deletions _includes/post/edit.html
@@ -0,0 +1,7 @@
{% if post.url %}
{% assign path = post.path %}
{% else %}
{% assign path = page.path %}
{% endif %}

<a href="{{ site.github_repo_url }}edit/gh-pages/{{ path }}">edit</a>
8 changes: 8 additions & 0 deletions _includes/post/meta.html
@@ -0,0 +1,8 @@
<div class="meta">
<span class="date">{% include post/date.html %}{{ time }}</span>
<span class="tags">{% include post/categories.html %}</span>
{% if site.disqus_short_name and site.disqus_show_comment_count == true %}
{% include post/comments_link.html %}
{% endif %}
<span class="edit">{% include post/edit.html %}</span>
</div>
9 changes: 9 additions & 0 deletions _includes/post/sharing.html
@@ -0,0 +1,9 @@
<div class="share">
<div class="addthis_toolbox addthis_default_style ">
{% if site.twitter_tweet_button %}
<a class="addthis_button_tweet"></a>
{% endif %}
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid={{ site.addthis_profile_id }}"></script>
</div>
11 changes: 11 additions & 0 deletions _includes/twitter_sharing.html
@@ -0,0 +1,11 @@
{% if site.twitter_follow_button or site.twitter_tweet_button %}
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = '//platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
{% endif %}
7 changes: 7 additions & 0 deletions _layouts/category_index.html
@@ -0,0 +1,7 @@
---
layout: default
---

{% for post in site.categories[page.category] %}
{% include archive_post.html %}
{% endfor %}

0 comments on commit 3862536

Please sign in to comment.