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
{% for post in site.posts %} | |
{% if post.taxonomy['tags'].all contains 'Featured' %} | |
<li><a href="{{post.url}}">{{post.title}}</a></li> | |
{% 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
{% comment %} Start with the default body {% endcomment %} | |
{% assign classy_body = body %} | |
{% comment %} Loop through assets and append asset's meta['class'] to img tags {% endcomment %} | |
{% for asset in assets %} | |
{% if asset.meta['class'] %} | |
{% capture img_src %}src="{{asset.url}}"{% endcapture %} | |
{% capture img_classy %}{{img_src}} class="{{asset.meta['class']}}"{% endcapture %} | |
{% assign classy_body = classy_body | replace: img_src, img_classy %} | |
{% endif %} |
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
# Intended for development purposes only, do not upload or use in production. | |
# See https://github.com/siteleaf/siteleaf-gem for documentation. | |
require 'rubygems' | |
require 'siteleaf' | |
Siteleaf.api_key = ENV['API_KEY'] | |
Siteleaf.api_secret = ENV['API_SECRET'] | |
run Siteleaf::Server.new(:site_id => ENV['SITE_ID']) |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowHostingDropdown", | |
"Effect": "Allow", | |
"Action": "s3:ListAllMyBuckets", | |
"Resource": "arn:aws:s3:::*" | |
}, | |
{ |
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
{% if taxonomy['tags'].all contains 'My Tag' %}true{% endif %} |
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
{% if type == 'post' %}<meta http-equiv="refresh" content="0;url=../">{% endif %} |
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
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="refresh" content="0;url=../"> | |
</head> | |
<body> | |
</body> | |
</html> |