<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
      <title>Chris Lunsford - tutorial</title>
      <link>https://chris.lunsford.io</link>
      <description>Personal blog and knowledge sharing site.</description>
      <generator>Zola</generator>
      <language>en</language>
      <atom:link href="https://chris.lunsford.io/tags/tutorial/rss.xml" rel="self" type="application/rss+xml"/>
      <lastBuildDate>Tue, 29 Jul 2025 00:00:00 +0000</lastBuildDate>
      <item>
          <title>Post Card Implementation</title>
          <pubDate>Tue, 29 Jul 2025 00:00:00 +0000</pubDate>
          <author>Unknown</author>
          <link>https://chris.lunsford.io/posts/post-card-demo/</link>
          <guid>https://chris.lunsford.io/posts/post-card-demo/</guid>
          <description xml:base="https://chris.lunsford.io/posts/post-card-demo/">&lt;p&gt;This page explains how the post card system is implemented using Tera macros.&lt;/p&gt;
&lt;h2 id=&quot;post-card-implementation&quot;&gt;Post Card Implementation&lt;/h2&gt;
&lt;p&gt;The site uses a Tera macro system to generate styled post cards consistently across templates. The post cards are automatically used on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Homepage&lt;/strong&gt;: Recent posts section&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Blog section&lt;/strong&gt;: All blog posts&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;macro-implementation&quot;&gt;Macro Implementation&lt;/h2&gt;
&lt;p&gt;The post card macro is defined in &lt;code&gt;templates/macros.html&lt;/code&gt; and imported into templates that need it:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #E1E4E8; background-color: #24292E;&quot; &gt;&lt;code data-lang=&quot;html&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{% import &amp;quot;macros.html&amp;quot; as macros %} {{ macros::post_card(page=page) }}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Page title as a link&lt;/li&gt;
&lt;li&gt;Publication date&lt;/li&gt;
&lt;li&gt;Description or summary&lt;/li&gt;
&lt;li&gt;Categories and tags with styled badges&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;features&quot;&gt;Features&lt;/h2&gt;
&lt;p&gt;The post card includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Responsive design&lt;/li&gt;
&lt;li&gt;Hover effects with subtle animations&lt;/li&gt;
&lt;li&gt;Dark theme support&lt;/li&gt;
&lt;li&gt;Modern styling with rounded corners and shadows&lt;/li&gt;
&lt;li&gt;Color-coded categories and tags&lt;/li&gt;
&lt;/ul&gt;
</description>
      </item>
    </channel>
</rss>
