Skip to content

Takes a string or variable and capitalizes the first letter of every word.

Notifications You must be signed in to change notification settings

jasoncomes/Capitalize-Words-Liquid-Filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

capitalizewords

Takes a string or variable and capitalizes the first letter of every word.

Usage

{{ string | capitalizewords }}

Parameters

  • string string. required. The string or variable to have the first letter of every word capitalized.

Return

  • string. This will output the value of string with the first letter of every word capitalized.

Example


Input

---
title: "About us"
---

<h1>{{ page.title | capitalizewords }}</h1>

Output

<h1>About Us</h1>

About

Takes a string or variable and capitalizes the first letter of every word.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages