Testing Liquid Variables in Mirakle

By Raf Kleczek • Published October 26, 2025 • 2 min read


Welcome to Mirakle! This post was written in 2026.

Available Liquid Variables

Here's what you can dynamically insert:

  • Tag: #liquid

  • Tag: #rails

  • Tag: #meta

Post Metadata

  • Slug: liquid-test
  • Published: 2025-10-26
  • Year: 2025
  • Reading time: 2 minutes
  • Site URL: https://mirakle.dev

Conditional Logic

Featured Image
This post has a featured image!

No video embedded in this post.

Standard Markdown Still Works

You can still use:

Code Blocks

def greet
  puts "Liquid + Markdown = ❤️"
end

Custom Shortcodes (Your Existing Features)

Check out this Shopify app: Awesome App


Pretty cool, right? Liquid processes first, then Markdown, then your custom shortcodes!


---

## Key Changes Summary

1. **`raw_content`** - Stores the original Markdown (needed for `reading_time`)
2. **Liquid processing** - Happens **before** Markdown rendering
3. **`liquid_context`** - Provides all available variables to templates
4. **`reading_time`** - Calculates estimated reading time
5. **View updated** - Shows reading time in post meta

---

## Processing Order

Your .md file

Liquid render ({{ variables }}, {\% logic \%})

Markdown to HTML

Custom shortcodes (shopify://, [stats:...])

Final HTML