Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tokkonopapa committed Aug 14, 2012
1 parent ca2150d commit b54ab3b
Show file tree
Hide file tree
Showing 94 changed files with 80,996 additions and 0 deletions.
44 changes: 44 additions & 0 deletions 404.html
@@ -0,0 +1,44 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Not Found :(</title>
<style>
::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }
html { padding: 30px 10px; font-size: 20px; line-height: 1.4; color: #737373; background: #f0f0f0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, input { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
body { max-width: 500px; _width: 500px; padding: 30px 20px 50px; border: 1px solid #b3b3b3; border-radius: 4px; margin: 0 auto; box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff; background: #fcfcfc; }
h1 { margin: 0 10px; font-size: 50px; text-align: center; }
h1 span { color: #bbb; }
h3 { margin: 1.5em 0 0.5em; }
p { margin: 1em 0; }
ul { padding: 0 0 0 40px; margin: 1em 0; }
.container { max-width: 380px; _width: 380px; margin: 0 auto; }
/* google search */
#goog-fixurl ul { list-style: none; padding: 0; margin: 0; }
#goog-fixurl form { margin: 0; }
#goog-wm-qt, #goog-wm-sb { border: 1px solid #bbb; font-size: 16px; line-height: normal; vertical-align: top; color: #444; border-radius: 2px; }
#goog-wm-qt { width: 220px; height: 20px; padding: 5px; margin: 5px 10px 0 0; box-shadow: inset 0 1px 1px #ccc; }
#goog-wm-sb { display: inline-block; height: 32px; padding: 0 10px; margin: 5px 0 0; white-space: nowrap; cursor: pointer; background-color: #f5f5f5; background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1); background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1); background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1); background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1); -webkit-appearance: none; -moz-appearance: none; appearance: none; *overflow: visible; *display: inline; *zoom: 1; }
#goog-wm-sb:hover, #goog-wm-sb:focus { border-color: #aaa; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); background-color: #f8f8f8; }
#goog-wm-qt:focus, #goog-wm-sb:focus { border-color: #105cb6; outline: 0; color: #222; }
input::-moz-focus-inner { padding: 0; border: 0; }
</style>
</head>
<body>
<div class="container">
<h1>Not found <span>:(</span></h1>
<p>Sorry, but the page you were trying to view does not exist.</p>
<p>It looks like this was the result of either:</p>
<ul>
<li>a mistyped address</li>
<li>an out-of-date link</li>
</ul>
<script>
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
</script>
<script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
</div>
</body>
</html>
76 changes: 76 additions & 0 deletions Rakefile
@@ -0,0 +1,76 @@
task :default => :server

desc 'migrate from wordpress export(xml)'
task :migrate,:export_file do |t,args|
require "./_import/wordpress_xml.rb"
Jekyll::WordpressXml.process(args[:export_file])
end

desc 'compass preview'
task :preview do
system("compass watch & jekyll --pygments --auto --server")
end

desc 'Clean up generated site'
task :clean do
cleanup
end

desc 'Build site with Jekyll'
task :build => :clean do
compass
jekyll
end

desc 'Start server with --auto'
task :server => :clean do
compass
jekyll('--server --auto')
end

desc 'Build and deploy'
task :deploy => :build do
sh 'rsync -rtzh --progress --delete _site/ username@servername:/var/www/websitename/'
end

desc 'Check links for site already running on localhost:4000'
task :check_links do
begin
require 'anemone'
root = 'http://localhost:4000/'
Anemone.crawl(root, :discard_page_bodies => true) do |anemone|
anemone.after_crawl do |pagestore|
broken_links = Hash.new { |h, k| h[k] = [] }
pagestore.each_value do |page|
if page.code != 200
referrers = pagestore.pages_linking_to(page.url)
referrers.each do |referrer|
broken_links[referrer] << page
end
end
end
broken_links.each do |referrer, pages|
puts "#{referrer.url} contains the following broken links:"
pages.each do |page|
puts " HTTP #{page.code} #{page.url}"
end
end
end
end

rescue LoadError
abort 'Install anemone gem: gem install anemone'
end
end

def cleanup
sh 'rm -rf _site'
end

def jekyll(opts = '')
sh 'jekyll ' + opts
end

def compass(opts = '')
sh 'compass compile -c config.rb --force ' + opts
end
72 changes: 72 additions & 0 deletions _config.yml
@@ -0,0 +1,72 @@
# standard jekyll configuration
source: .
destination: ./_site
plugins: ./_plugins
pygments: true
markdown: rdiscount
exclude: ['Rakefile', 'README.md']

# global configuration
lang: ja
url: http://USERNAME.github.com

# configuration required for some pages
baseurl: /
title: My Site Title
description: Jekyll Responsive Bootstrap
author: USERNAME
email: USERNAME@example.com

# configuration for blog
blog_base: /blog/
blog_title: My Blog Title
blog_description: This is my blog
permalink: /blog/:year/:month/:title/

# configuration for project
project_base: /project/
project_title: My Project Title
project_description: This is my project

paginate: 10
page_columns: 3
asides: [asides/about.html, asides/search.html, asides/styles.html, asides/recent_posts.html, asides/tag_clouds.html, asides/tweets.html]

# configuration for asides/recent_posts.html
recent_posts: 5

# configration for color theme
# Default, Amelia, United, Superhero, Spruce, Spacelab, Slate, Simplex, Readable, Journal, Cyborg, Cerulean
color_theme: Default

# configuration for JavaScript
# if you use 'asides/styles.html' then set it as 'false'
js_bottom: false

# configuration for ehancements, uncomment to enable

disqus:
shortname: tokkonopapa
comment_count: false

google_analytics:
account: UA-XXXXX-X

google_plus_one:
size: medium

# feedburner:
# id: feedburnerid

twitter:
username: tokkonopapa
count: 5
show_replies: false
show_follower_count: false
follow_button: true
tweet_button: true

hatena: true

# github:
# username: ghusername
4 changes: 4 additions & 0 deletions _includes/asides/about.html
@@ -0,0 +1,4 @@
<section id="sidebar-about" class="well">
<h1><i class="icon-user"></i>About Me</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante.</p>
</section>
13 changes: 13 additions & 0 deletions _includes/asides/recent_posts.html
@@ -0,0 +1,13 @@
<section id="sidebar-recent-posts" class="well">
<h1><i class="icon-file"></i>Recent Posts</h1>
<ul id="recent_posts" class="nav nav-list">
{% for post in site.posts limit: site.recent_posts %}
<li class="post"><p>
<a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a>
{% if site.disqus.shortname and site.disqus.comment_count %}<br /><a href="{{ root_url }}{{ post.url }}#disqus_thread" data-disqus-identifier="{{ post.url }}" class="disqus-comment_count">Comments</a>{% endif %}
</p></li>
{% unless forloop.last %}
<li class="divider"></li>
{% endunless %}{% endfor %}
</ul>
</section>
9 changes: 9 additions & 0 deletions _includes/asides/search.html
@@ -0,0 +1,9 @@
<section id="sidebar-search" class="well input-append">
<form class="form-search form-horizontal" action="http://google.com/search" method="get">
<input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}">
<input type="text" name="q" class="input-medium search-query" placeholder="Search">
<button class="btn btn-inverse" type="submit">
<span class="icon-search icon-white"></span>
</button>
</form>
</section>
21 changes: 21 additions & 0 deletions _includes/asides/styles.html
@@ -0,0 +1,21 @@
<section id="sidebar-styles" class="well">
<h1><i class="icon-tint"></i>Change Styles</h1>
<form class="form-horizontal">
<div class="controls">
<select id="style-select">
<option>Default</option>
<option>Amelia</option>
<option>Cerulean</option>
<option>Cyborg</option>
<option>Journal</option>
<option>Readable</option>
<option>Simplex</option>
<option>Slate</option>
<option>Spacelab</option>
<option>Spruce</option>
<option>Superhero</option>
<option>United</option>
</select>
</div>
</form>
</section>
4 changes: 4 additions & 0 deletions _includes/asides/tag_clouds.html
@@ -0,0 +1,4 @@
<section id="sidebar-tags" class="well">
<h1><i class="icon-tags"></i>Tag Clouds</h1>
{{ tag_clouds }}
</section>
4 changes: 4 additions & 0 deletions _includes/asides/tweets.html
@@ -0,0 +1,4 @@
<section id="sidebar-tweets" class="well">
<h1><i class="icon-globe"></i>Recent Tweets</h1>
<ul id="tweets" class="nav nav-list"><li><p>Reading twitter timeline...</p></li></ul>
</section>
20 changes: 20 additions & 0 deletions _includes/bottom.html
@@ -0,0 +1,20 @@
{% if site.disqus.shortname %}{% if page.comments or site.disqus.comment_count %}
<script>
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ site.disqus.shortname }}';
var disqus_identifier = /* '{{ site.url }}' + */ '{{ page.url }}';
var disqus_url = '{{ site.url }}{{ page.url }}';
var disqus_developer = 1; /* for test on local server */

/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var add = function(disqus_script) {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}
{% if page.comments %} add('embed.js');{% endif %}
{% if site.disqus.comment_count %} add('count.js');{% endif %}
})();
</script>
{% endif %}{% endif %}
31 changes: 31 additions & 0 deletions _includes/head.html
@@ -0,0 +1,31 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">

<title>{% if page.title %}{{ page.title }} - {% endif %}{{ ENV_TITLE }}</title>
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ ENV_DESCRIPTION }}{% endif %}">
<meta name="author" content="{{ site.author }}">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
{% if site.feedburner %}
<link href="http://feeds.feedburner.com/{{ site.feedburner.id }}" rel="alternate" title="{{ site.blog_title }}" type="application/atom+xml">
{% else %}
<link href="{{ site.baseurl }}atom.xml" type="application/atom+xml" title="{{ site.blog_title }}">
<link href="{{ site.baseurl }}rss.xml" type="application/rss+xml" rel="alternate" title="{{ site.blog_title }}">
{% endif %}
<!-- Le styles -->
<link rel="stylesheet" href="{{ site.baseurl }}assets/css/{{ site.color_theme }}/bootstrap.min.css" id="jstyle">
<style>body { padding-top: 60px; padding-bottom: 40px; }</style>
<link rel="stylesheet" href="{{ site.baseurl }}assets/css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="{{ site.baseurl }}assets/css/style.css">
{% unless site.js_bottom %}{% include script.html %}{% endunless %}
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="{{ site.baseurl }}assets/js/libs/html5shiv.js"></script>
<![endif]-->

<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="{{ site.baseurl }}assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ site.baseurl }}assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ site.baseurl }}assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="{{ site.baseurl }}assets/ico/apple-touch-icon-57-precomposed.png">
24 changes: 24 additions & 0 deletions _includes/navbar.html
@@ -0,0 +1,24 @@
<header class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<h1 id="title"><a class="brand" href="{{ ENV_INDEX }}">{{ ENV_TITLE }}</a></h1>
<div class="btn-group pull-right">
<form class="navbar-search" action="http://google.com/search" method="get">
<input type="hidden" name="q" value="site:{{ site.url | domain_name }}">
<input type="text" name="q" class="input-medium search-query" placeholder="Search">
</form>
</div>
<nav class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="/">Top</a></li>
<li><a href="/blog/">Blog</a></li>
<li><a href="/project/">Project</a></li>
<li><a href="/about.html">About</a></li>
</ul>
</nav><!--/.nav-collapse -->
</div>
</header>
12 changes: 12 additions & 0 deletions _includes/pagenation.html
@@ -0,0 +1,12 @@
<aside class="pagination">
<header class="invisible">
<h1>Pagination</h1>
</header>
{% if paginator.previous_page == 1 %}
<span id="newer"><a href="/">Newer Entries</a></span>
{% elsif paginator.previous_page %}
<span id="newer"><a href="/page{{ paginator.previous_page }}">Newer Entries</a></span>
{% endif %}{% if paginator.next_page %}
<span id="older"><a href="/page{{ paginator.next_page }}">Older Entries</a></span>
{% endif %}
</aside>
8 changes: 8 additions & 0 deletions _includes/post/comment.html
@@ -0,0 +1,8 @@
{% if page.comments == true %}{% if site.disqus.shortname %}
<section>
<h2>Comments</h2>
<div id="disqus_thread"></div>
<noscript><p>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></p></noscript>
<p><a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a></p>
</section>
{% endif %}{% endif %}
11 changes: 11 additions & 0 deletions _includes/post/post_navi.html
@@ -0,0 +1,11 @@
<div class="prev_next post_nav">
{% if page.previous.url %}
<p class="previous">
&laquo;&nbsp;<a href="{{ page.previous.url }}" rel="previous" title="{{ page.previous.title }}">{{ page.previous.title | truncatewords: 15 }}</a>
</p>
{% endif %}{% if page.next.url %}
<p class="next">
<a href="{{ page.next.url }}" rel="next" title="{{ page.next.title }}">{{ page.next.title | truncatewords: 15 }}</a>&nbsp;&raquo;
</p>
{% endif %}
</div>
15 changes: 15 additions & 0 deletions _includes/post/related_posts.html
@@ -0,0 +1,15 @@
<div id="related-posts">
<h2>You might also like</h2>
<div>
{% for related in site.related_posts limit:5 %}
<div class="related-post">
<div class="image">
<img src="/images/posts/thumbnails/{{ related.image }}">
</div>
<div class="title">
<a href="{{ related.url }}/" target="_top">{{ related.title }}</a>
</div>
</div>
{% endfor %}
</div>
</div>
Empty file added _includes/post/socials.html
Empty file.

0 comments on commit b54ab3b

Please sign in to comment.