date | Format dates | {{ post.published_at | date: "%B %d, %Y" }} |
truncate | Limit string length | {{ post.excerpt | truncate: 150 }} |
truncatewords | Limit word count | {{ post.excerpt | truncatewords: 25 }} |
upcase / downcase | Change case | {{ category.name | upcase }} |
capitalize | Capitalize first letter | {{ author.name | capitalize }} |
strip_html | Remove HTML tags | {{ post.content | strip_html }} |
escape | Escape HTML entities | {{ post.title | escape }} |
url_encode | Encode for URLs | {{ post.title | url_encode }} |
default | Fallback value | {{ post.featured_image_url | default: "/images/placeholder.jpg" }} |
size | Array/string length | {{ posts | size }} |
first / last | Get first/last item | {{ categories | first }} |
sort | Sort array | {{ posts | sort: "published_at" }} |
reverse | Reverse array | {{ posts | reverse }} |
where | Filter array | {{ posts | where: "category_id", "news" }} |
map | Extract property | {{ posts | map: "title" }} |
join | Join array items | {{ post.tags | join: ", " }} |
split | Split string | {{ "a,b,c" | split: "," }} |
replace | Replace text | {{ post.title | replace: "-", " " }} |
append / prepend | Add to string | {{ post.slug | prepend: "/" }} |
plus / minus | Math operations | {{ pagination.current_page | plus: 1 }} |
times / divided_by | Math operations | {{ post.reading_time_minutes | times: 60 }} |