Skip to content

Instantly share code, notes, and snippets.

View marcospinello's full-sized avatar
🖖
Docs or it didn't happen

Marco Spinello marcospinello

🖖
Docs or it didn't happen
View GitHub Profile
@marcospinello
marcospinello / lightbox.rb
Created November 5, 2015 15:44 — forked from melborne/lightbox.rb
Jekyll Lightbox Image Plugin
# A Liquid tag for Jekyll sites that allows embedding Lightbox images.
# by: kyoendo
# Source URL: https://gist.github.com/4035604
#
# Example usage: {% lightbox 2012/abc.png, Title of Image, Alt Title %}
module Jekyll
class LightboxTag < Liquid::Tag
def initialize(tag_name, text, token)
super
@text = text
@marcospinello
marcospinello / Time_to_read
Last active October 21, 2015 17:22
Reading time in Jekyll using Liquid templating
{% comment %}
source: https://sojourner.co/blog/code/time-to-read-post-jekyll.html
author: https://sojourner.co/
{% endcomment %}
{% capture count_words %}
2 {{ page.content | number_of_words }}
3 {% endcapture %}
4
5 {% capture time_words %}
.
├── _config.yml
├── _drafts
| ├── begin-with-the-crazy-ideas.textile
| └── on-simplicity-in-technology.markdown
├── _includes
| ├── footer.html
| └── header.html
├── _layouts
| ├── default.html
@marcospinello
marcospinello / jekyll_links_liquid_syntax
Last active October 21, 2015 17:22
Programmatically handle relative links in Jekyll using Liquid templating syntax
@marcospinello
marcospinello / 0_reuse_code.js
Created June 13, 2014 08:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console