<p>I recently subsribed to <a href="https://bloggingfordevs.com/" target="_blank" rel="nofollow noopener noreferrer">Monica Lent’s</a> newsletter to get better with blogging, writing content and mainly learning and getting better with SEO.</p>n<p>As a first step, I am migrating away from my old <a href="https://princiya777.wordpress.com" target="_blank" rel="nofollow noopener noreferrer">Wordpress blog</a> to a self owned one and I choose Gatsby.</p>n<p>In the past, I’ve tried Jekyll and Hugo static site generators but was not happy when I had to make some small changes and the learning curve there was too high.</p>n<p>I really like Gatsby, given my React experience, and I am finally happy with a static site generator.</p>n<p>So here I am, with a new digital garden of my own.</p>n<p>The blog theme is based from <a href="https://github.com/gaearon/overreacted.io" target="_blank" rel="nofollow noopener noreferrer">Dan Abramov’s</a> personal <a href="https://overreacted.io/" target="_blank" rel="nofollow noopener noreferrer">blog</a> with tweaks to have tags. The CSS is inspired from <a href="https://moderncss.dev/" target="_blank" rel="nofollow noopener noreferrer">modernCSS.dev</a>.</p>n<h2 id="the-this-bug"><a href="#the-this-bug" aria-hidden class="anchor"><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>The <code class="language-text">this</code> bug</h2>n<p>There seems to be a bug when you create your first blog post, Gatsby will complain saying <code class="language-text">error</code>. Luckily I searched on the internet and found a hack. If it is your only post, then you need to add the following into your blog page:</p>n<p><code class="language-text">[this](<blop-page-name>)</code>. If you look at Github, then this first post has a <code class="language-text">this</code> keyword with the name of the blog page.</p>n<p>Have fun with Gatsby!</p>n<p><a href="https://atomic-temporary-42700218.wpcomstaging.com/blog/blog/hello-world/">this</a></p>n <div style="margin-top=55px; font-style: italic;">(This is an article posted to my blog at princiya.com/blog. You can read it online by <a href="https://atomic-temporary-42700218.wpcomstaging.com/blog/hello-world/">clicking here</a>.)</div>
Categorised as: Uncategorized
Hello World
1–2 minutes





Leave a comment