Skip to content

Instantly share code, notes, and snippets.

View andrewfairlie's full-sized avatar

Andrew Fairlie andrewfairlie

View GitHub Profile
{# Define our macro #}
{% macro card(title,content) %}
<div class="card">
<h2>{{ title }}</h2>
{{ content }}
</div>
{% endmacro %}
{# Import the macro, here we use _self but usually it'll be a separate file #}
{% import _self as ui %}
{% if block|length>1 %}
{
"role": "gallery",
"layout": "galleryLayout",
"behavior": {
"type": "parallax",
"factor": 0.8
},
"items": [
{% for image in block %}
@andrewfairlie
andrewfairlie / goodfeedback.md
Last active November 9, 2015 14:03
Good Feedback
vcl 4.0;
backend default {
.host = "127.0.0.1"; # The domain or IP address of your ExpressionEngine Site
.port = "8080"; # The port of your EE site. In production, Varnish should be on port 80, so consider changing your Apache server to port 8080
.probe = {
.url = "/";
.timeout = 1000ms;
.interval = 1s;
.window = 10;