<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: kalsdjf23</title>
    <description>The latest articles on Forem by kalsdjf23 (@kalsdjf23).</description>
    <link>https://forem.com/kalsdjf23</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3817444%2F274fd40b-81be-4375-95e8-d51a8d85582d.png</url>
      <title>Forem: kalsdjf23</title>
      <link>https://forem.com/kalsdjf23</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/kalsdjf23"/>
    <language>en</language>
    <item>
      <title>I Turned My Hugo GitHub Style Activity Tracker Into a Reusable Module</title>
      <dc:creator>kalsdjf23</dc:creator>
      <pubDate>Tue, 10 Mar 2026 19:56:50 +0000</pubDate>
      <link>https://forem.com/kalsdjf23/i-turned-my-hugo-github-style-activity-tracker-into-a-reusable-module-551o</link>
      <guid>https://forem.com/kalsdjf23/i-turned-my-hugo-github-style-activity-tracker-into-a-reusable-module-551o</guid>
      <description>&lt;p&gt;I first built this GitHub style activity tracker for my own website.&lt;/p&gt;

&lt;p&gt;That part was already fun. I liked seeing my publishing streak in the same kind of grid GitHub uses. But once it worked, I started wondering whether this was just another thing that only made sense on my site, or whether it could become something other Hugo users could actually use as well.&lt;/p&gt;

&lt;p&gt;So I tried to make it generic. The module is here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/kalsdjf23/hugo-activity-heatmap" rel="noopener noreferrer"&gt;https://github.com/kalsdjf23/hugo-activity-heatmap&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The hard part was not building it
&lt;/h2&gt;

&lt;p&gt;The first version was tied to my own site and my own content structure. That is fine when you only build for yourself. It becomes a problem the moment you want to share it.&lt;/p&gt;

&lt;p&gt;I had to strip out all the assumptions that were specific to my setup. Things like section names, wording, labels, and how the data was interpreted all needed to become customizable.&lt;/p&gt;

&lt;p&gt;The final module can now:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;work with any Hugo section, or with all regular pages&lt;/li&gt;
&lt;li&gt;use &lt;code&gt;Date&lt;/code&gt;, &lt;code&gt;PublishDate&lt;/code&gt;, or &lt;code&gt;Lastmod&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;render either a binary or density heatmap&lt;/li&gt;
&lt;li&gt;change the wording used in labels and counts&lt;/li&gt;
&lt;li&gt;optionally show a start date&lt;/li&gt;
&lt;li&gt;work without JavaScript&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Open source has a quality bar
&lt;/h2&gt;

&lt;p&gt;What surprised me most was not the code. It was the process around it.&lt;/p&gt;

&lt;p&gt;To submit something like this properly, the repo also needed all the grown-up stuff:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a proper &lt;code&gt;README.md&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;a &lt;code&gt;theme.toml&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;a root &lt;code&gt;hugo.toml&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;a license&lt;/li&gt;
&lt;li&gt;preview images&lt;/li&gt;
&lt;li&gt;an example site&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When I build for myself, I usually want to skip all of that and move on. But if other people are supposed to install your work, that structure matters more I guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I wanted to publish it
&lt;/h2&gt;

&lt;p&gt;I have used open source for years without really contributing anything back.&lt;/p&gt;

&lt;p&gt;Not because I did not want to. More because I rarely felt productive enough to make something that was clean and complete enough to publish.&lt;/p&gt;

&lt;p&gt;This time I had something that felt worth sharing.&lt;/p&gt;

&lt;p&gt;I also submitted it to the Hugo themes directory, so now it is in the hands of people with a much higher quality bar than mine.&lt;/p&gt;

&lt;p&gt;If you want the full story behind the build, the screenshots, and the themes-directory submission, I wrote that up here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://hugomelis.nl/experiments/experiment-20-open-source-contribution-github-style-activity-component/?utm_source=devto&amp;amp;utm_medium=community&amp;amp;utm_campaign=hugo_activity_heatmap_launch&amp;amp;utm_content=canonical_repost" rel="noopener noreferrer"&gt;Can I contribute a Hugo component to open source?&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hugo</category>
      <category>opensource</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
