View Craft search form with optional category select fields
{# | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
_includes/library-search-form.html | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
#} | |
<form action="{{ url('library/results') }}"> | |
{#? Keywords #} | |
<div class="flex flex-wrap mb-6 -mx-3"> | |
<div class="w-full px-3"> | |
<label class="block mb-2 font-bold tracking-wide text-hbgray-900" for="keywords">Keywords (Optional)</label> |
View include-with-variables
{% include "oz/emerald-city with { | |
"character" : "tinman" | |
} %} |
View responsive-images-craft.txt
{# | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
_layouts/main-layout.html | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
All image transforms are defined here in the main layout template so they can be used site-wide. Templates using this layout can reference them thus: | |
{{ theBackgroundImage.url(transform.small) }} | |
#} | |
{% set transform = { | |
small: { |