<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Hugo on Adam Koszek - Personal Website</title>
    <link>https://www.koszek.com/categories/hugo/</link>
    <description>Recent content in Hugo on Adam Koszek - Personal Website</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>adam@koszek.com (Adam Koszek)</managingEditor>
    <webMaster>adam@koszek.com (Adam Koszek)</webMaster>
    <lastBuildDate>Mon, 15 May 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://www.koszek.com/categories/hugo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Creating Custom Hugo Shortcodes</title>
      <link>https://www.koszek.com/til/hugo-shortcodes/</link>
      <pubDate>Mon, 15 May 2023 00:00:00 +0000</pubDate>
      <author>adam@koszek.com (Adam Koszek)</author>
      <guid>https://www.koszek.com/til/hugo-shortcodes/</guid>
      <description>&lt;p&gt;Today I learned how to create custom shortcodes in Hugo to make content creation more efficient.&lt;/p&gt;
&lt;h2 id=&#34;what-are-shortcodes&#34;&gt;What are Shortcodes?&lt;/h2&gt;
&lt;p&gt;Shortcodes are simple snippets inside your content files that Hugo will render using predefined templates. They&amp;rsquo;re a great way to add custom HTML or reusable components without writing raw HTML in your Markdown files.&lt;/p&gt;
&lt;h2 id=&#34;creating-a-basic-shortcode&#34;&gt;Creating a Basic Shortcode&lt;/h2&gt;
&lt;p&gt;To create a shortcode, add an HTML file to the &lt;code&gt;layouts/shortcodes/&lt;/code&gt; directory. For example, to create a &amp;ldquo;notice&amp;rdquo; shortcode:&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
