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
$ brew install tree |
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
# amazon.rb - amazon affiliate links for jekyll | |
# assumes that you have a configuration variable called 'amazon_associate_id' with your associate id | |
# usage: {{ asin | amazon_product_href }} | |
# returns url of a product | |
# usage: {{ asin | amazon_image_href: 'M' }} | |
# returns image of the product, size argument can be S, M, or L, default M | |
# usage: {{ asin | amazon_product: 'A Product' }} |
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
--- | |
published: [true | false] | |
layout: post | |
date: Y-m-d HH:MM | |
title: [text] | |
series: [text] | |
description: [text] | |
categories: [text, text...] | |
tag: | |
- [text] |
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
fa_prefix: #default: fa | |
fa_exclude: |
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
ServerTokens ProductOnly | |
SercerRoot "/etc/httpd" | |
Timeout 60 | |
KeepAlive On | |
MaxKeepAliveRequests 100 | |
KeepAliveTimeout 10 | |
Listen 80 | |
#load modules |
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
$palettes: ( | |
'typo': ( | |
'base': ( | |
'normal': #E6ECF2, | |
'light' : #ffffff, | |
'dark' : #dddddd | |
), | |
'inverse': ( | |
'normal': #444444, |
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
# すべての行の先頭に日付を追加 | |
LC_ALL=C sed -i -e 's/^/2014\/12\/08,/g' 2014-12-08.csv | |
# 先頭行の項目名を日付に修正する | |
LC_ALL=C sed -i -e '1s/^2014\/12\/08/日付/g' 2014-12-08.csv | |
# 月ごとにCSVを結合する | |
cat 2014-12-*.csv > 2014-12.csv | |
# すべてのCSVを結合する |
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
module Jekyll | |
module Filters | |
def tag_order(tags, order, orderby='ASC') | |
# order | |
case order | |
when 'count' then | |
order_tags = tags.sort_by { | t, posts | posts.count } | |
end |
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
module Jekyll | |
class RenderFontAwesomeTag < Liquid::Tag | |
def initialize(tag_name, text, tokens) | |
super | |
@classes = text.split(' ') | |
end | |
def render(context) | |
# local vars |
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
--- | |
layout: default | |
--- | |
<h2 class="post_title">{{page.title}}</h2> | |
<ul> | |
{% for post in site.posts %} | |
{% for category in post.category %} | |
{% if category == page.category %} | |
<li class="archive_list"> | |
<time datetime='{{post.date | date: "%Y-%m-%d"}}'>{{post.date | date: "%m/%d/%y"}}</time> <a class="archive_list_article_link" href='{{post.url}}'>{{post.title}}</a> |
OlderNewer