<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Shortcodes on Emet CMS</title>
		<link>https://docs.emetcms.com/shortcodes/</link>
		<description>Recent content in Shortcodes on Emet CMS</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
			<copyright>Documentation site content for Emet CMS. Theme based on [Hugo Book](https://github.com/alex-shpak/hugo-book) by [Alex Shpak](https://github.com/alex-shpak).
</copyright>
		
		
			<atom:link href="https://docs.emetcms.com/shortcodes/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Block shortcodes</title>
				<link>https://docs.emetcms.com/shortcodes/block-shortcodes/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.emetcms.com/shortcodes/block-shortcodes/</guid>
				<description>&lt;p&gt;A block shortcode is one you&amp;rsquo;ve described in &lt;code&gt;site.yaml&lt;/code&gt;: its name, the parameters it takes and, optionally, what it should look like in the preview. In the visual editor it shows up as a card with a form, so whoever is writing doesn&amp;rsquo;t need to remember the parameter names or the quoting rules. In the file it&amp;rsquo;s the same &lt;code&gt;{{&amp;lt; name &amp;gt;}}&lt;/code&gt; text Hugo has always read.&lt;/p&gt;&#xA;&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;a class=&#34;anchor&#34; href=&#34;#configuration&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Define them under &lt;code&gt;shortcodes&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Inline shortcodes</title>
				<link>https://docs.emetcms.com/shortcodes/inline-shortcodes/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.emetcms.com/shortcodes/inline-shortcodes/</guid>
				<description>&lt;p&gt;Hugo&amp;rsquo;s &lt;a href=&#34;https://gohugo.io/content-management/shortcodes/#inline-shortcodes&#34;&gt;inline shortcodes&lt;/a&gt; let you write a shortcode&amp;rsquo;s template inside the content file that uses it, instead of in &lt;code&gt;layouts/shortcodes/&lt;/code&gt;. They&amp;rsquo;re handy for one-off formatting that doesn&amp;rsquo;t deserve a layout file, and Emet supports them without any configuration, because everything it needs is in the page. (Hugo needs &lt;code&gt;enableInlineShortcodes = true&lt;/code&gt; in its config before it will render them.)&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-hugo-writes-them&#34;&gt;How Hugo writes them&lt;a class=&#34;anchor&#34; href=&#34;#how-hugo-writes-them&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;An inline shortcode has a name ending in &lt;code&gt;.inline&lt;/code&gt;. The first time it appears it carries its template between opening and closing tags; after that you can reuse it by name:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Preview templates</title>
				<link>https://docs.emetcms.com/shortcodes/preview-templates/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.emetcms.com/shortcodes/preview-templates/</guid>
				<description>&lt;p&gt;A shortcode card in the editor tells you what the parameters are, not what the result looks like. The preview pane is where that happens, and the &lt;code&gt;preview&lt;/code&gt; property on a block shortcode is the HTML it uses. Emet can&amp;rsquo;t run your Hugo templates in the browser, so you give it a simplified stand-in with the field values dropped in.&lt;/p&gt;&#xA;&lt;p&gt;This mostly affects the &lt;a href=&#34;https://docs.emetcms.com/preview/css-preview/&#34;&gt;preview pane&lt;/a&gt;. A block card in the visual editor never renders it; the one place it shows up in the editor is the label on a chip for a shortcode sitting inside a sentence.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
