diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..cc1cc72 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,34 @@ +GEM + remote: http://rubygems.org/ + specs: + albino (1.3.3) + posix-spawn (>= 0.3.6) + classifier (1.3.3) + fast-stemmer (>= 1.0.0) + directory_watcher (1.4.1) + fast-stemmer (1.0.1) + fleakr (0.7.1) + hpricot (>= 0.6.164) + loggable (>= 0.2.0) + hpricot (0.8.6) + jekyll (0.11.2) + albino (~> 1.3) + classifier (~> 1.3) + directory_watcher (~> 1.1) + kramdown (~> 0.13) + liquid (~> 2.3) + maruku (~> 0.5) + kramdown (0.13.7) + liquid (2.3.0) + loggable (0.3.0) + maruku (0.6.0) + syntax (>= 1.0.0) + posix-spawn (0.3.6) + syntax (1.0.0) + +PLATFORMS + ruby + +DEPENDENCIES + fleakr + jekyll diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..c53dbb9 --- /dev/null +++ b/_config.yml @@ -0,0 +1,6 @@ +permalink: pretty + +server: true +server_port: 8080 + +baseurl: / diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..5e71126 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,5 @@ +--- +layout: default +--- + +{{ content }} diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..35a25d9 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,13 @@ +
+

{{ page.title }}

+ + {% for flickr_url in page.flickr %} + {{ flickr_url | flickr_image }} + {% endfor %} + + {{ page.content }} + + +
diff --git a/_plugins/flickr.rb b/_plugins/flickr.rb new file mode 100644 index 0000000..e040de7 --- /dev/null +++ b/_plugins/flickr.rb @@ -0,0 +1,27 @@ +require 'liquid' +require 'fleakr' + +Fleakr.api_key = "eae5ede55c1eda160c12f097f1abdf8f" +Fleakr.shared_secret = "acf9b9a1bd0e256b" +Fleakr.auth_token = "72157630069599284-647e005942e54f22" + +CACHED_IMAGES = {} + +module Flickr + def flickr_image(url) + return "#{image_object(url).title}" + end + + def flickr_medium_image(url) + return "#{image_object(url).title}" + end + + private + + def image_object(url) + CACHED_IMAGES[url] ||= Fleakr.resource_from_url(url) + end +end + +Liquid::Template.register_filter(Flickr) + diff --git a/_posts/2012-06-06-FlickrTest.md b/_posts/2012-06-06-FlickrTest.md new file mode 100644 index 0000000..0498320 --- /dev/null +++ b/_posts/2012-06-06-FlickrTest.md @@ -0,0 +1,7 @@ +--- +layout: post +title: LIONS HEAD +flickr: +- http://www.flickr.com/photos/yyolk/5923911658 +--- +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. diff --git a/_site/2012/06/06/FlickrTest/index.html b/_site/2012/06/06/FlickrTest/index.html new file mode 100644 index 0000000..9bfe3ee --- /dev/null +++ b/_site/2012/06/06/FlickrTest/index.html @@ -0,0 +1,14 @@ +
+

LIONS HEAD

+ + + LIONS HEAD + + + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + + + +
diff --git a/_site/Gemfile b/_site/Gemfile new file mode 100644 index 0000000..4300c11 --- /dev/null +++ b/_site/Gemfile @@ -0,0 +1,4 @@ +source :rubygems + +gem 'jekyll' +gem 'fleakr' diff --git a/_site/Gemfile.lock b/_site/Gemfile.lock new file mode 100644 index 0000000..cc1cc72 --- /dev/null +++ b/_site/Gemfile.lock @@ -0,0 +1,34 @@ +GEM + remote: http://rubygems.org/ + specs: + albino (1.3.3) + posix-spawn (>= 0.3.6) + classifier (1.3.3) + fast-stemmer (>= 1.0.0) + directory_watcher (1.4.1) + fast-stemmer (1.0.1) + fleakr (0.7.1) + hpricot (>= 0.6.164) + loggable (>= 0.2.0) + hpricot (0.8.6) + jekyll (0.11.2) + albino (~> 1.3) + classifier (~> 1.3) + directory_watcher (~> 1.1) + kramdown (~> 0.13) + liquid (~> 2.3) + maruku (~> 0.5) + kramdown (0.13.7) + liquid (2.3.0) + loggable (0.3.0) + maruku (0.6.0) + syntax (>= 1.0.0) + posix-spawn (0.3.6) + syntax (1.0.0) + +PLATFORMS + ruby + +DEPENDENCIES + fleakr + jekyll diff --git a/_site/index.html b/_site/index.html new file mode 100644 index 0000000..e086959 --- /dev/null +++ b/_site/index.html @@ -0,0 +1,5 @@ + diff --git a/index.html b/index.html new file mode 100644 index 0000000..0873e51 --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ +--- +layout: default +title: +--- + + + + + Yolk Portfolio + + + + {% for post in posts %} + + {% endfor %} + diff --git a/index.md b/index.md new file mode 100644 index 0000000..662cb84 --- /dev/null +++ b/index.md @@ -0,0 +1,11 @@ +--- +layout: default +title: Hello World! +--- + + +