<?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>mastodon on Akash Goswami</title>
    <link>https://akashgoswami.dev/tags/mastodon/</link>
    <description>Recent content in mastodon on Akash Goswami</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 28 Oct 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://akashgoswami.dev/tags/mastodon/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Adding a Mastodon Author Tag</title>
      <link>https://akashgoswami.dev/notes/mastodon-author-tag/</link>
      <pubDate>Mon, 28 Oct 2024 00:00:00 +0000</pubDate>
      
      <guid>https://akashgoswami.dev/notes/mastodon-author-tag/</guid>
      <description>Adding a Mastondon Author Tag to this site</description>
      <content:encoded><![CDATA[<p>Last week I did some testing with my personal site and added the <code>fediverse:creator</code> metadata tag it.</p>
<p>You can read about how I did this <a href="https://akashgoswami.com/notes/mastodon-author-tag/">here</a>.</p>
<p>To keep both websites inline, I&rsquo;ve now also added it to this Hugo site as well. It was fairly simple. All I had to do was copy the <code>head.html</code> partical from the theme&rsquo;s layout, bring it up to my top level directory layouts folder and add this small snippet of code in:</p>
<pre tabindex="0"><code>{{- /* Mastodon Author Tag */}}
{{ if .Site.Params.Mastodon }}
&lt;meta name=&#34;fediverse:creator&#34; content=&#34;{{ .Site.Params.mastodon.author }}&#34; /&gt;
{{ end }}
</code></pre><p>Once I&rsquo;d have done that, I simply updated my site&rsquo;s <code>config.yaml</code> to include my Mastodon handle:</p>
<pre tabindex="0"><code>mastodon:
    author: &#34;@akashgoswami@hachyderm.io&#34;
</code></pre><p>Now when I share posts from this site to Mastodon, there should be a little &lsquo;More from Akash Goswami&rsquo; tag at the bottom of the preview card when links from this site are shared on Mastodon.</p>
]]></content:encoded>
    </item>
    
  </channel>
</rss>
