Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 297 Bytes

10-key-text.md

File metadata and controls

11 lines (7 loc) · 297 Bytes

Templating the Key Text field

The Key Text field allows content writers to enter a single string.

Get the text value

Here's an example that shows how to retrieve the Key Text value and output the string into your template.

<h1><%= @document["blog-post.title"].as_text %></h1>