<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Shortcodes on Robin Yang</title>
    <link>https://yrbing.github.io/tags/shortcodes/</link>
    <description>Recent content in Shortcodes on Robin Yang</description>
    <image>
      <title>Robin Yang</title>
      <url>https://yrbing.github.io/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://yrbing.github.io/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.152.2</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 10 Jan 2026 15:22:57 +0800</lastBuildDate>
    <atom:link href="https://yrbing.github.io/tags/shortcodes/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Integrate Swiper.js with Hugo Shortcodes</title>
      <link>https://yrbing.github.io/posts/add-swiper-to-hugo-shortcodes/</link>
      <pubDate>Sat, 10 Jan 2026 15:22:57 +0800</pubDate>
      <guid>https://yrbing.github.io/posts/add-swiper-to-hugo-shortcodes/</guid>
      <description>&lt;p&gt;I’d like to add an image carousel / slider to my article. After some research, I found three common approaches:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Hardcoding HTML directly into Markdown (tedious and hard to maintain).&lt;/li&gt;
&lt;li&gt;Using Hugo Modules (powerful but sometimes overkill for a simple slider).&lt;/li&gt;
&lt;li&gt;Creating a Custom Shortcode (the perfect balance of flexibility and performance).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In this post, I’ll show you how I built a robust, reusable Swiper component using the Shortcode approach. This method keeps your Markdown clean while ensuring your site stays fast.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
