Skip to content

Instantly share code, notes, and snippets.

@verlane
verlane / archive_post.html.diff
Created August 17, 2013 03:20
Octopress2 Slash-Theme
diff --git a/source/_includes/archive_post.html b/source/_includes/archive_post.html
index 79d740d..299aa56 100644
--- a/source/_includes/archive_post.html
+++ b/source/_includes/archive_post.html
@@ -3,12 +3,9 @@
{% unless year == this_year %}
{% assign year = this_year %}
{% unless forloop.first %}
- </section>
+ </section>
@verlane
verlane / disqus.html.diff
Created August 16, 2013 00:31
로컬에서 Disqus 댓글 입력창 비표시
diff --git a/source/_includes/disqus.html b/source/_includes/disqus.html
index 10565e8..905b4a9 100644
--- a/source/_includes/disqus.html
+++ b/source/_includes/disqus.html
@@ -12,10 +12,13 @@
{% comment %} As `page.comments` is empty, we must be on the index page. {% endcomment %}
var disqus_script = 'count.js';
{% endif %}
- (function () {
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
@verlane
verlane / index.html.diff
Created August 15, 2013 23:45
Liquid 2.6 (Octopress)
diff --git a/source/blog/archives/index.html b/source/blog/archives/index.html
index e4bc23c..6dbe91c 100644
--- a/source/blog/archives/index.html
+++ b/source/blog/archives/index.html
@@ -2,7 +2,7 @@
layout: default
title: Blog Archives
---
-
{% for post in site.posts reverse %}
@verlane
verlane / standardfilters.rb.diff
Last active December 21, 2015 03:19
Liquid 2.6 (Octopress)
diff --git a/lib/liquid/standardfilters.rb b/lib/liquid/standardfilters.rb
index b7f6418..70f10df 100644
--- a/lib/liquid/standardfilters.rb
+++ b/lib/liquid/standardfilters.rb
@@ -7,7 +7,6 @@ module Liquid
# Return the size of an array or of an string
def size(input)
-
input.respond_to?(:size) ? input.size : 0