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
# 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 |
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
{% 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 %} |
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
. | |
├── _config.yml | |
├── _drafts | |
| ├── begin-with-the-crazy-ideas.textile | |
| └── on-simplicity-in-technology.markdown | |
├── _includes | |
| ├── footer.html | |
| └── header.html | |
├── _layouts | |
| ├── default.html |
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
{% comment %} | |
source: http://stackoverflow.com/questions/4629675/jekyll-markdown-internal-links | |
code snippet author: http://stackoverflow.com/users/399105/bmaupin | |
{% endcomment %} | |
{% for page in site.pages %} | |
{% if page.url == '/path/to/page.html' %} | |
[{{ page.title }}]({{ page.url }}) | |
{% endif %} | |
{% endfor %} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder