<?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>DEV Community: Ritika Rajput</title>
    <description>The latest articles on DEV Community by Ritika Rajput (@ritika_rajput).</description>
    <link>https://dev.to/ritika_rajput</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4172631%2Fabf17c15-116c-4cf9-8426-b0a2a2e3ddec.webp</url>
      <title>DEV Community: Ritika Rajput</title>
      <link>https://dev.to/ritika_rajput</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ritika_rajput"/>
    <language>en</language>
    <item>
      <title>I Built a Free Google Ads Generator with AI (ReadyAd)</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Sat, 14 Nov 2026 07:31:18 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/i-built-a-free-google-ads-generator-with-ai-readyad-c40</link>
      <guid>https://dev.to/ritika_rajput/i-built-a-free-google-ads-generator-with-ai-readyad-c40</guid>
      <description>&lt;p&gt;Writing Google Ads copy is slow and boring. For every product you need short ad titles, clear descriptions, and keywords people actually search for. I kept rewriting the same thing again and again, so I built a tool to do it for me.&lt;/p&gt;

&lt;p&gt;Meet &lt;strong&gt;ReadyAd&lt;/strong&gt;, a free Google Ads generator powered by Gemini.&lt;/p&gt;

&lt;p&gt;👉 Try it here: &lt;a href="https://readyad.vercel.app" rel="noopener noreferrer"&gt;https://readyad.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;You type your product name, answer a few simple questions, and ReadyAd gives you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ad titles:&lt;/strong&gt; short lines for the top of your ad&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ad descriptions:&lt;/strong&gt; longer lines that explain your product&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search words:&lt;/strong&gt; what people type on Google&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Poster idea:&lt;/strong&gt; a design idea for your poster&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The whole flow has just 3 steps: fill the form, create your ad, copy and use. It takes about 30 seconds, even if you have never run a Google Ads campaign before.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features I'm proud of
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Simple questions instead of a long form.&lt;/strong&gt; What are you selling, who will buy it (Women, Men or Everyone), the age range, and how the ad should sound.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Example chips.&lt;/strong&gt; Try Coffee shop, Yoga classes, Online course or Skincare serum with one click to see how it works.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live ad preview&lt;/strong&gt; that looks like a real Google ad.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Language support&lt;/strong&gt; for English, Hindi and Hinglish.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ad strength meter and a safe-for-Google-Ads check,&lt;/strong&gt; so you know if your copy is strong and unlikely to be disapproved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSV download and recent ads history,&lt;/strong&gt; so you never lose a good result.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Theme switcher&lt;/strong&gt; with multiple looks, so you can pick the one you like.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I built it
&lt;/h2&gt;

&lt;p&gt;I wanted to focus on the product, so I used an AI coding agent (Kilo) inside VS Code to speed up the build. Gemini generates the ad copy, and the app is hosted on Vercel.&lt;/p&gt;

&lt;p&gt;My workflow was simple: describe one small change, let the agent build it, test it, then write the next prompt. This worked much better than asking for the whole app at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Constraints make AI output better.&lt;/strong&gt; Telling the model the exact length limits for titles and descriptions gave far better ads than a vague prompt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Small prompts beat giant prompts.&lt;/strong&gt; One feature per prompt kept the code clean and easy to fix.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design matters.&lt;/strong&gt; The first version worked but felt plain. A cleaner layout, example chips and themes made it feel like a real product.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compliance is a feature.&lt;/strong&gt; Many beginners get ads rejected, so the safe-for-Google-Ads check turned out to be one of the most useful parts.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;More ad formats&lt;/li&gt;
&lt;li&gt;Saving campaigns to an account&lt;/li&gt;
&lt;li&gt;Better keyword suggestions&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it and tell me what you think
&lt;/h2&gt;

&lt;p&gt;ReadyAd is free to use: &lt;a href="https://readyad.vercel.app" rel="noopener noreferrer"&gt;https://readyad.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you run ads, build marketing tools, or have feedback on the UI, drop a comment. I would love to hear what you would add.&lt;/p&gt;

&lt;p&gt;Thanks for reading! 🙌&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>marketing</category>
    </item>
    <item>
      <title>How I Combine Web Development, Digital Marketing and AI to Build Real Projects</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Fri, 13 Nov 2026 06:51:31 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/how-i-combine-web-development-digital-marketing-and-ai-to-build-real-projects-4223</link>
      <guid>https://dev.to/ritika_rajput/how-i-combine-web-development-digital-marketing-and-ai-to-build-real-projects-4223</guid>
      <description>&lt;p&gt;Hi, I'm Ritika, a web developer from Kaithal, Haryana, India. I don't have just one skill. I work in &lt;strong&gt;web development, digital marketing, social media management and video editing&lt;/strong&gt;, and the best part is that these skills help each other. In this post I want to share how I use them together.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Web Development: where it all starts
&lt;/h2&gt;

&lt;p&gt;I build websites and web apps and deploy them online. My own portfolio runs on &lt;strong&gt;Vercel&lt;/strong&gt;, and I use &lt;strong&gt;Supabase&lt;/strong&gt; to store content and images, so I can manage my projects and blog from an admin panel instead of editing code every time.&lt;/p&gt;

&lt;p&gt;You can see it here: &lt;a href="https://ritika-rajput-portfolio.vercel.app/" rel="noopener noreferrer"&gt;Ritika Rajput Portfolio&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Digital Marketing: making sure people find the work
&lt;/h2&gt;

&lt;p&gt;A website nobody finds is just a file on the internet. Because I understand SEO and Google Ads, I set up Search Console, added proper titles, descriptions and image alt text, and worked on getting my portfolio to show up when people search my name.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. AI: building faster and building new things
&lt;/h2&gt;

&lt;p&gt;AI is now part of my daily workflow. I use AI coding agents inside VS Code to build features faster, and I use AI to create tools too:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AdSpark&lt;/strong&gt;: an AI Ad Generator. You type a product name and it gives you Google Ads headlines, descriptions and a poster idea, in English, Hindi or Hinglish. It even has an ad strength meter and a safe-for-Google-Ads check. &lt;a href="https://ai-ad-generator-live.vercel.app" rel="noopener noreferrer"&gt;Try it live&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Liquid Logic&lt;/strong&gt;: a liquid sort puzzle game I built with Google AI Studio. &lt;a href="https://liquid-logic.ai.studio" rel="noopener noreferrer"&gt;Play it here&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Video Editing and Social Media: telling the story
&lt;/h2&gt;

&lt;p&gt;I also run a YouTube channel where I edit videos and Shorts. Editing taught me how to hold attention in the first few seconds, and that skill helps me write better ad headlines and better landing pages.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Skills multiply when you combine them.&lt;/strong&gt; Web dev + marketing is stronger than either alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ship small projects.&lt;/strong&gt; A live project teaches more than ten tutorials.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use AI as a helper, not a replacement.&lt;/strong&gt; You still need to understand what you are building.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make your work easy to find.&lt;/strong&gt; SEO and a good portfolio matter as much as the code.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;I'm going to keep building tools that mix coding, marketing and AI, and write about what I learn along the way.&lt;/p&gt;

&lt;p&gt;If you are also a beginner mixing different skills, I'd love to hear how you do it. Drop a comment below! 🙌&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>ai</category>
      <category>portfolio</category>
    </item>
    <item>
      <title>Google Search Console Said My Pages Weren't Indexed: What Each Message Meant</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Wed, 11 Nov 2026 06:01:23 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/google-search-console-said-my-pages-werent-indexed-what-each-message-meant-56i5</link>
      <guid>https://dev.to/ritika_rajput/google-search-console-said-my-pages-werent-indexed-what-each-message-meant-56i5</guid>
      <description>&lt;p&gt;A few weeks after launching my portfolio, I opened Google Search Console and found a section called &lt;strong&gt;"Why pages aren't indexed"&lt;/strong&gt;. It listed two of my pages. I assumed something was broken. It wasn't quite that simple. Here is what each message meant and what I did.&lt;/p&gt;

&lt;h2&gt;
  
  
  First: indexed vs. not indexed
&lt;/h2&gt;

&lt;p&gt;A page that is &lt;strong&gt;indexed&lt;/strong&gt; can appear in Google results. A page that is &lt;strong&gt;not indexed&lt;/strong&gt; cannot. Search Console tells you the reason, and the reasons are very different from each other.&lt;/p&gt;

&lt;h2&gt;
  
  
  Message 1: "Alternate page with proper canonical tag"
&lt;/h2&gt;

&lt;p&gt;This means Google found the page, but your page told Google that &lt;strong&gt;another URL is the main version&lt;/strong&gt;. So Google indexed the other URL and left this one out.&lt;/p&gt;

&lt;p&gt;This is often normal. It happens with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;http&lt;/code&gt; vs &lt;code&gt;https&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;www&lt;/code&gt; vs no &lt;code&gt;www&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;A trailing slash vs none&lt;/li&gt;
&lt;li&gt;A mobile version of a URL&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But it can also be a &lt;strong&gt;bug&lt;/strong&gt;. Mine was.&lt;/p&gt;

&lt;h3&gt;
  
  
  How I checked
&lt;/h3&gt;

&lt;p&gt;I pasted the URL into the &lt;strong&gt;URL Inspection&lt;/strong&gt; bar at the top and looked at two lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User-declared canonical:   https://my-site.com/
Google-selected canonical: Same as user-declared canonical
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My page was &lt;code&gt;/portfolio&lt;/code&gt;, but the canonical said &lt;code&gt;/&lt;/code&gt;, my home page. A single canonical tag in &lt;code&gt;index.html&lt;/code&gt; was shared by every route. Google treated my other pages as copies of the home page.&lt;/p&gt;

&lt;h3&gt;
  
  
  The fix
&lt;/h3&gt;

&lt;p&gt;I set a different canonical for each route:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;useEffect&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;SITE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://your-domain.com"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;useCanonical&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;link&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;querySelector&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;HTMLLinkElement&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'link[rel="canonical"]'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;link&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"link"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"canonical"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;href&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`${SITE}${path}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the "Google-selected canonical" is the URL you actually want, you can leave it alone. If it points to the wrong page, fix your tag.&lt;/p&gt;

&lt;h2&gt;
  
  
  Message 2: "Discovered - currently not indexed"
&lt;/h2&gt;

&lt;p&gt;This means Google knows the URL exists, maybe from your sitemap, but &lt;strong&gt;has not crawled it yet&lt;/strong&gt;. It is very common on new sites. It is not an error.&lt;/p&gt;

&lt;p&gt;What helped me think about it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is the URL in my &lt;strong&gt;sitemap.xml&lt;/strong&gt;, with my real domain?&lt;/li&gt;
&lt;li&gt;Do other pages &lt;strong&gt;link&lt;/strong&gt; to it? A page with no links pointing to it gets low priority.&lt;/li&gt;
&lt;li&gt;Does it have &lt;strong&gt;real content&lt;/strong&gt;, a unique title and a clear description?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I did not do
&lt;/h2&gt;

&lt;p&gt;I pressed &lt;strong&gt;Request indexing&lt;/strong&gt; several times on the same page. It did not speed anything up. Google decides when to crawl, and repeated requests do not help. Request indexing once after you fix something, then wait.&lt;/p&gt;

&lt;h2&gt;
  
  
  A simple checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Pages&lt;/strong&gt; in Search Console and click each reason to see the affected URLs&lt;/li&gt;
&lt;li&gt;Paste one URL into &lt;strong&gt;URL Inspection&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Compare the &lt;strong&gt;user-declared&lt;/strong&gt; and &lt;strong&gt;Google-selected&lt;/strong&gt; canonical&lt;/li&gt;
&lt;li&gt;Check that the URL is in your &lt;strong&gt;sitemap&lt;/strong&gt; and linked from other pages&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Test live URL&lt;/strong&gt;, then &lt;strong&gt;Request indexing&lt;/strong&gt; once&lt;/li&gt;
&lt;li&gt;Wait. It can take days to weeks&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What I'm tracking
&lt;/h2&gt;

&lt;p&gt;I don't have ranking results to show, and I won't claim any. I'm watching whether those pages move to &lt;strong&gt;Indexed&lt;/strong&gt; in the Pages report.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Search Console messages sound scary, but most of them are information. Read the exact reason first, and then decide whether anything is wrong.&lt;/p&gt;

&lt;p&gt;You can see my portfolio here: &lt;a href="https://ritika-rajput-portfolio.vercel.app" rel="noopener noreferrer"&gt;ritika-rajput-portfolio.vercel.app&lt;/a&gt;. I also share videos on &lt;a href="https://www.youtube.com/@RitikaMoments" rel="noopener noreferrer"&gt;RitikaMoments&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Which Search Console message confused you the most?&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>7 Git Errors I Hit as a Beginner (and the Exact Fix for Each)</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Mon, 09 Nov 2026 06:26:58 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/7-git-errors-i-hit-as-a-beginner-and-the-exact-fix-for-each-5fin</link>
      <guid>https://dev.to/ritika_rajput/7-git-errors-i-hit-as-a-beginner-and-the-exact-fix-for-each-5fin</guid>
      <description>&lt;p&gt;While building my portfolio and a small automation, I ran into a lot of Git errors. Most tutorials show the happy path, so here are the real errors I got, what they meant, and how I fixed each one.&lt;/p&gt;

&lt;p&gt;A tip before you start: &lt;strong&gt;run one command at a time and read the result.&lt;/strong&gt; I once pasted two commands on one line (&lt;code&gt;git diff --statgit diff | ...&lt;/code&gt;) and got a confusing error.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. &lt;code&gt;fatal: bad config line 1 in file .git/config&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Every Git command failed with this. My &lt;code&gt;.git/config&lt;/code&gt; file was &lt;strong&gt;empty&lt;/strong&gt;, so Git could not read it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; make a copy of your project folder first, then recreate the file with the basics:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="nn"&gt;[core]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="py"&gt;repositoryformatversion&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;0&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="py"&gt;filemode&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;false&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="py"&gt;bare&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;false&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="py"&gt;logallrefupdates&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="py"&gt;ignorecase&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;
&lt;span class="nn"&gt;[remote "origin"]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="py"&gt;url&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;https://github.com/your-username/your-repo.git&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="py"&gt;fetch&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;+refs/heads/*:refs/remotes/origin/*&lt;/span&gt;
&lt;span class="nn"&gt;[branch "main"]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="py"&gt;remote&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;origin&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="py"&gt;merge&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;refs/heads/main&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run &lt;code&gt;git status&lt;/code&gt;. The first line must be &lt;code&gt;[core]&lt;/code&gt;, with nothing above it.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. &lt;code&gt;Author identity unknown&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;My commit failed because Git did not know who I was.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config &lt;span class="nt"&gt;--global&lt;/span&gt; user.name &lt;span class="s2"&gt;"Your Name"&lt;/span&gt;
git config &lt;span class="nt"&gt;--global&lt;/span&gt; user.email &lt;span class="s2"&gt;"you@example.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the email that is linked to your GitHub account, or your commits will not show up on your profile.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. &lt;code&gt;fatal: bad object refs/remotes/origin/main&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;After the config problem, &lt;code&gt;git fetch&lt;/code&gt; failed with this. A saved reference to the remote branch was broken.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; delete that reference and fetch again:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git update-ref &lt;span class="nt"&gt;-d&lt;/span&gt; refs/remotes/origin/main
git fetch origin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. &lt;code&gt;Your branch is based on 'origin/main', but the upstream is gone&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;This message means your local branch lost the link to the remote branch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git branch &lt;span class="nt"&gt;--set-upstream-to&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;origin/main main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. &lt;code&gt;! [rejected] main -&amp;gt; main (fetch first)&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;My push was refused because GitHub had a commit that I did not have locally. In my case, an automation had committed a file to the repo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; bring that commit in first, then push:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git pull &lt;span class="nt"&gt;--rebase&lt;/span&gt; origin main
git push origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do &lt;strong&gt;not&lt;/strong&gt; use &lt;code&gt;git push --force&lt;/code&gt; to get past this. It can erase someone else's work, or your own.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. &lt;code&gt;Failed to connect to github.com:443&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;This one was not a Git problem at all. My computer simply could not reach GitHub.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; open github.com in a browser. If it does not load, check your Wi-Fi, try a phone hotspot, and turn a VPN off or on. Then run the push again. Your commit is safe in the meantime.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. My images worked locally but not on the live site
&lt;/h2&gt;

&lt;p&gt;My site showed the alt text instead of the images after I deployed. The code was fine. The image files had never been pushed.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git status&lt;/code&gt; showed it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Untracked files:
    public/skills-web.jpg
    public/skills-social.jpg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add public/skills-web.jpg public/skills-social.jpg
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"add skill card images"&lt;/span&gt;
git push origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also remember: if you run &lt;code&gt;git push&lt;/code&gt; and see &lt;code&gt;Everything up-to-date&lt;/code&gt;, it means there is &lt;strong&gt;no new commit&lt;/strong&gt; to push. You may have forgotten to commit.&lt;/p&gt;

&lt;h2&gt;
  
  
  A harmless warning
&lt;/h2&gt;

&lt;p&gt;You will often see:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;warning: LF will be replaced by CRLF the next time Git touches it
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Windows this is normal and can be ignored.&lt;/p&gt;

&lt;h2&gt;
  
  
  My safe routine
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;git status&lt;/code&gt; to see what changed&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git add &amp;lt;specific files&amp;gt;&lt;/code&gt;, not &lt;code&gt;git add .&lt;/code&gt;, so I don't commit things like &lt;code&gt;.env&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git commit -m "clear message"&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git pull --rebase origin main&lt;/code&gt;, only if the push is rejected&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git push origin main&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Open GitHub and check the latest commit&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Almost every error looked scary, and almost every one had a small fix. Read the message slowly. It often says exactly what to do.&lt;/p&gt;

&lt;p&gt;You can see my work at &lt;a href="https://ritika-rajput-portfolio.vercel.app" rel="noopener noreferrer"&gt;ritika-rajput-portfolio.vercel.app&lt;/a&gt; and on &lt;a href="https://github.com/ritikakashyap09939-png" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Which Git error confused you the most when you started?&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>My Daily Blog Automation Broke: Gemini 429/503 Errors and a Duplicate YAML Key</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Mon, 09 Nov 2026 06:23:22 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/my-daily-blog-automation-broke-gemini-429503-errors-and-a-duplicate-yaml-key-11g2</link>
      <guid>https://dev.to/ritika_rajput/my-daily-blog-automation-broke-gemini-429503-errors-and-a-duplicate-yaml-key-11g2</guid>
      <description>&lt;p&gt;I run a small automation: GitHub Actions starts a Python script every day, Gemini writes a blog post, and the Blogger API publishes it. It worked for weeks. Then it started failing, and I found three separate problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. HTTP 503: "This model is currently experiencing high demand"
&lt;/h2&gt;

&lt;p&gt;My log showed the same error again and again:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HTTP 503: This model is currently experiencing high demand.
Spikes in demand are usually temporary. Please try again later.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 503 is a problem on the server's side, and it usually goes away. It is fine to retry, but only a couple of times, with a pause between tries.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. HTTP 429: "You exceeded your current quota"
&lt;/h2&gt;

&lt;p&gt;After the 503s, the last attempt returned a 429. I opened my Google AI Studio &lt;strong&gt;Rate Limit&lt;/strong&gt; page, and it showed the free-tier limits for the model I was using at that time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;5 requests per minute&lt;/li&gt;
&lt;li&gt;20 requests per day&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These numbers can change, so check your own dashboard.&lt;/p&gt;

&lt;p&gt;The cause was in my own script. It had an outer retry loop and an inner retry loop, so &lt;strong&gt;one run could send up to 9 requests&lt;/strong&gt;. Add a few manual test runs, and the daily quota was gone quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I changed:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cap one run at &lt;strong&gt;3 requests&lt;/strong&gt; in total&lt;/li&gt;
&lt;li&gt;Keep only &lt;strong&gt;one&lt;/strong&gt; place where retries happen&lt;/li&gt;
&lt;li&gt;Wait &lt;strong&gt;15 seconds&lt;/strong&gt; between requests&lt;/li&gt;
&lt;li&gt;On a 429, &lt;strong&gt;do not retry&lt;/strong&gt;. Stop with a clear message, because retrying only burns more quota
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;GeminiQuotaExhausted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;RuntimeError&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;pass&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;call_gemini&lt;/span&gt;&lt;span class="p"&gt;(...):&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;180&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;429&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;GeminiQuotaExhausted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Quota exhausted, will retry in the backup run&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="bp"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. A backup run and "skip if already done"
&lt;/h2&gt;

&lt;p&gt;GitHub's scheduler can run late, and a model can be busy at one time and fine two hours later. So I added a second schedule, and I made the script safe to run twice:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;schedule&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;cron&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;30&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;4&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*"&lt;/span&gt;   &lt;span class="c1"&gt;# main run&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;cron&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;0&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;9&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*"&lt;/span&gt;    &lt;span class="c1"&gt;# backup run&lt;/span&gt;
  &lt;span class="na"&gt;workflow_dispatch&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Check if already posted today&lt;/span&gt;
  &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;skip&lt;/span&gt;
  &lt;span class="na"&gt;shell&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;bash&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
    &lt;span class="s"&gt;if ls posts/published/$(date +%F)-*.md 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1; then&lt;/span&gt;
      &lt;span class="s"&gt;echo "skip=true" &amp;gt;&amp;gt; "$GITHUB_OUTPUT"&lt;/span&gt;
    &lt;span class="s"&gt;else&lt;/span&gt;
      &lt;span class="s"&gt;echo "skip=false" &amp;gt;&amp;gt; "$GITHUB_OUTPUT"&lt;/span&gt;
    &lt;span class="s"&gt;fi&lt;/span&gt;

&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Generate post&lt;/span&gt;
  &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;steps.skip.outputs.skip != 'true'&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;python scripts/generate_post.py&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If today's post is already published, the backup run does nothing and stays green.&lt;/p&gt;

&lt;p&gt;Cron runs in UTC. Convert the time for your own timezone.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The YAML error my local check missed
&lt;/h2&gt;

&lt;p&gt;After my changes, GitHub refused to run the workflow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Invalid workflow file: 'id' is already defined, 'shell' is already defined, 'run' is already defined
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One step had the same keys twice. I had checked the file with Python before pushing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;yaml&lt;/span&gt;
&lt;span class="n"&gt;yaml&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;safe_load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;.github/workflows/post.yml&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;   &lt;span class="c1"&gt;# printed no error
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It passed, because that loader quietly accepts duplicate keys. GitHub does not. A linter can catch this before you push:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;yamllint
yamllint &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s2"&gt;"{rules: {key-duplicates: enable}}"&lt;/span&gt; .github/workflows/post.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Lesson: a file that "parses fine" is not the same as a valid workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Count the requests one run can send, including nested retries&lt;/li&gt;
&lt;li&gt;[ ] Don't retry a 429. Retry a 503 only a few times&lt;/li&gt;
&lt;li&gt;[ ] Add a pause between requests&lt;/li&gt;
&lt;li&gt;[ ] Add a backup schedule, and skip if the job is already done&lt;/li&gt;
&lt;li&gt;[ ] Run a YAML linter with duplicate-key checks before you push&lt;/li&gt;
&lt;li&gt;[ ] Test manually once, not ten times, because every run uses quota&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;I thought my bug was a "busy server". It was partly that, but my own retry logic was the bigger problem. Looking at the real numbers on the dashboard made the cause obvious.&lt;/p&gt;

&lt;p&gt;You can see the project on &lt;a href="https://github.com/ritikakashyap09939-png/blogger-automation" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;, and my portfolio here: &lt;a href="https://ritika-rajput-portfolio.vercel.app" rel="noopener noreferrer"&gt;ritika-rajput-portfolio.vercel.app&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Have you run into API quota limits in your own automation? What did you do about it?&lt;/p&gt;

</description>
      <category>githubactions</category>
      <category>python</category>
      <category>automation</category>
      <category>debugging</category>
    </item>
    <item>
      <title>Making My Portfolio Less Boring: 4 Small Redesigns That Made a Big Difference</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Tue, 03 Nov 2026 06:14:24 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/making-my-portfolio-less-boring-4-small-redesigns-that-made-a-big-difference-52jk</link>
      <guid>https://dev.to/ritika_rajput/making-my-portfolio-less-boring-4-small-redesigns-that-made-a-big-difference-52jk</guid>
      <description>&lt;p&gt;When I first launched my portfolio, it worked, but it felt empty. Some pages had big text and lots of blank space. Some sections said "Coming soon". Two pages almost looked the same.&lt;/p&gt;

&lt;p&gt;I didn't rebuild anything. I made four small changes, and the site felt much more finished. Here they are, with examples you can copy.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Replace "Coming soon" with real work
&lt;/h2&gt;

&lt;p&gt;My Projects page ended with two cards that said &lt;strong&gt;"Coming soon"&lt;/strong&gt; and &lt;strong&gt;"A new piece is finding its final frame."&lt;/strong&gt; They looked unfinished, and they told visitors there was nothing there.&lt;/p&gt;

&lt;p&gt;I deleted them and used real things I had already built instead:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A side project (a Python script that publishes a blog post every day with GitHub Actions)&lt;/li&gt;
&lt;li&gt;My articles on dev.to&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Placeholder cards don't help anyone. If you have nothing new to show, remove the section. If you have something real, even a small project or an article, show that.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;a&lt;/span&gt;
  &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://github.com/your-username/your-repo"&lt;/span&gt;
  &lt;span class="na"&gt;target&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"_blank"&lt;/span&gt;
  &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"noopener noreferrer"&lt;/span&gt;
  &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"flex flex-col gap-3 rounded-2xl border border-[var(--border)] bg-[var(--surface)] p-5 transition-colors hover:border-[var(--accent)]"&lt;/span&gt;
&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;span&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text-xs uppercase tracking-wider text-[var(--text-muted)]"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Project&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;span&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;h3&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text-lg font-semibold"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Daily blog automation&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;h3&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text-sm leading-6 text-[var(--text-muted)]"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    A Python script that writes and publishes a blog post every day.
  &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;span&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"mt-auto text-sm font-semibold text-[var(--accent)]"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;View on GitHub →&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;span&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;a&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Use the empty space next to a big heading
&lt;/h2&gt;

&lt;p&gt;My Contact page had a huge heading on one side and nothing on the other. A visitor had to scroll to find out how to reach me.&lt;/p&gt;

&lt;p&gt;I moved the contact options &lt;strong&gt;next to&lt;/strong&gt; the heading as three clickable cards: Email, WhatsApp and LinkedIn. Under the heading, I added small chips for what I can help with.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"grid gap-8 lg:grid-cols-2 lg:items-center"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Let's make something good.&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Have a project in mind? I'd love to hear what you're thinking.&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"flex flex-col gap-3"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="cm"&gt;/* three contact cards here */&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same idea worked on my Skills page: the empty right side now shows four small cards that link to the skill details below.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Turn a row of small links into cards
&lt;/h2&gt;

&lt;p&gt;My "Find me online" section was a row of tiny text chips. They were easy to miss, and a visitor couldn't tell what each link was.&lt;/p&gt;

&lt;p&gt;I changed them into larger cards with an icon, a name and one short line, such as "Articles on web development and automation". Now each link explains itself before anyone clicks it.&lt;/p&gt;

&lt;p&gt;Keep each card focused on one job: an icon, a title, one line of description and one clear action.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Check your contrast
&lt;/h2&gt;

&lt;p&gt;My "Let's Work Together" banner had white text on a light lavender background. On my laptop it looked fine, but it was hard to read on a phone, and the button text was also light.&lt;/p&gt;

&lt;p&gt;The fix was simple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use a deeper purple for the banner background&lt;/li&gt;
&lt;li&gt;Use white text on it&lt;/li&gt;
&lt;li&gt;Make the button text the same deep purple on a white button&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you can barely read something when you squint, a visitor with a small screen and bright sunlight will not read it at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  A bonus: make every page do a different job
&lt;/h2&gt;

&lt;p&gt;My Home and About pages used the same hero, the same photo and the same story. I changed them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Home:&lt;/strong&gt; a short hero, a few skills and clear buttons&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;About:&lt;/strong&gt; the full story, what I'm currently learning, and my profiles&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When two pages say the same thing, a visitor sees no reason to open the second one. It can also confuse search engines.&lt;/p&gt;

&lt;h2&gt;
  
  
  My rules for every change
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Use only real content.&lt;/strong&gt; No invented numbers, clients or promises.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One change at a time.&lt;/strong&gt; Then I look at the page on a phone-sized window and a laptop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remove before adding.&lt;/strong&gt; Often the best fix was to delete something.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check on a real phone.&lt;/strong&gt; Some problems only show up there.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;None of these changes needed a new framework or a big rewrite. They only needed me to look at my own site the way a visitor does.&lt;/p&gt;

&lt;p&gt;You can see the result here: &lt;a href="https://ritika-rajput-portfolio.vercel.app" rel="noopener noreferrer"&gt;ritika-rajput-portfolio.vercel.app&lt;/a&gt;. I also share videos on &lt;a href="https://www.youtube.com/@RitikaMoments" rel="noopener noreferrer"&gt;RitikaMoments&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What is one thing on your portfolio that you know looks unfinished?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ui</category>
      <category>react</category>
      <category>beginners</category>
    </item>
    <item>
      <title>What I Learned Using Free AI Coding Agents on a Real Portfolio (OpenCode and Kilo)</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Mon, 02 Nov 2026 06:25:33 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/what-i-learned-using-free-ai-coding-agents-on-a-real-portfolio-opencode-and-kilo-210h</link>
      <guid>https://dev.to/ritika_rajput/what-i-learned-using-free-ai-coding-agents-on-a-real-portfolio-opencode-and-kilo-210h</guid>
      <description>&lt;p&gt;I'm a student, and I built and kept improving my portfolio with free AI coding agents running in the VS Code terminal. I used OpenCode and later Kilo, both on free models.&lt;/p&gt;

&lt;p&gt;They saved me a lot of time, but they also got stuck, lied by accident, and once looked busy for a whole hour without doing anything. Here is what I learned, so you can skip my mistakes.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Ask for a read-only diagnosis first
&lt;/h2&gt;

&lt;p&gt;My mobile menu showed a dark overlay and an "X" button, but the menu links never appeared. My first prompt was "fix it", and the fix didn't work.&lt;/p&gt;

&lt;p&gt;What worked was splitting the job into two steps:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;First, read only. Do not change anything.
Find where the mobile menu is rendered and tell me exactly why the panel
is invisible, with the file and line number.
Then fix it.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the agent has to name the real cause, it stops guessing. In my case the real cause was a previous commit that had removed the menu panel completely.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Keep every prompt small
&lt;/h2&gt;

&lt;p&gt;My long prompts that asked for five changes at once often ended with "not done in this session". Short prompts with one job each worked much better.&lt;/p&gt;

&lt;p&gt;A prompt template I now use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Change ONLY &amp;lt;one function or one section&amp;gt; in &amp;lt;one file&amp;gt;.
Do not touch anything else.
Use only text that already exists. Do not invent new content.
Do not commit or push.
Run the typecheck at the end and tell me which lines you changed.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Always tell the agent not to commit or push
&lt;/h2&gt;

&lt;p&gt;Agents are happy to "help" by committing and pushing. I wanted to review every change first. So every prompt says: &lt;strong&gt;do not commit or push&lt;/strong&gt;. I check &lt;code&gt;git status&lt;/code&gt; and &lt;code&gt;git diff&lt;/code&gt; myself, and then I commit.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Typecheck passing does not mean the build passes
&lt;/h2&gt;

&lt;p&gt;Several times the agent said "typecheck passed", and I still had problems after deploying. The typecheck only checks types. A real build can still fail, and a failed build on Vercel means your site stays on the old version.&lt;/p&gt;

&lt;p&gt;Ask for the build too, and when it uses environment variables, give them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$&lt;/span&gt;&lt;span class="nn"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nv"&gt;PORT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"5180"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$&lt;/span&gt;&lt;span class="nn"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nv"&gt;BASE_PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pnpm&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--filter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="nx"&gt;workspace/ritika-portfolio&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;build&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before you ask "why is my change not live?", check the deployment status in the Vercel dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Don't let the agent test in a browser
&lt;/h2&gt;

&lt;p&gt;I once asked an agent to verify a fix with a headless browser. It spent an hour fighting &lt;code&gt;spawn pnpm ENOENT&lt;/code&gt; on Windows and trying one workaround after another. Now my prompts say: "Do not test in a browser or start a dev server. Only run typecheck and build." I look at the page myself.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Watch out for Windows and PowerShell
&lt;/h2&gt;

&lt;p&gt;Agents often write bash commands. On Windows PowerShell I kept seeing errors like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; is not a valid statement separator (use &lt;code&gt;;&lt;/code&gt; instead)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;grep&lt;/code&gt;, &lt;code&gt;tail&lt;/code&gt; and &lt;code&gt;head&lt;/code&gt; are not recognized commands&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;2&amp;gt;/dev/null&lt;/code&gt; fails with a path error&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your agent keeps hitting these, add a line like "I use Windows PowerShell, so use PowerShell syntax" to your prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. "Already implemented" needs checking
&lt;/h2&gt;

&lt;p&gt;A few times the agent answered "Already implemented, no changes needed". Sometimes that was true. Sometimes I wanted proof. I started asking it to &lt;strong&gt;name the file and line number&lt;/strong&gt; of the change, and then I searched for that text in VS Code with &lt;code&gt;Ctrl + F&lt;/code&gt;. If the agent can't point to a line, don't trust the claim.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Free models have limits
&lt;/h2&gt;

&lt;p&gt;Free agents can hit a daily limit, or ask you to sign in. Mine said "You need to sign in to use this model" in the middle of a task. Signing up with an email was free and took a couple of minutes. Be ready to switch tools, and never run two agents on the same folder at the same time, because they will edit the same files and cause conflicts.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Never paste secrets to an agent
&lt;/h2&gt;

&lt;p&gt;Don't paste API keys, tokens or your &lt;code&gt;.env&lt;/code&gt; file into a prompt or a chat. Keep them in environment variables and in your host's secret settings. Before pushing, search the diff for words like &lt;code&gt;key&lt;/code&gt;, &lt;code&gt;secret&lt;/code&gt;, &lt;code&gt;token&lt;/code&gt; and &lt;code&gt;password&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  My simple workflow now
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Ask for a read-only diagnosis&lt;/li&gt;
&lt;li&gt;Ask for one small change&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;git status&lt;/code&gt; and &lt;code&gt;git diff --stat&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Run the build locally&lt;/li&gt;
&lt;li&gt;Test the page myself, on desktop and on a phone-sized window&lt;/li&gt;
&lt;li&gt;Commit with a clear message and push&lt;/li&gt;
&lt;li&gt;Check that the deployment is &lt;strong&gt;Ready&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Check the live site in an incognito tab&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;AI agents are great helpers, but they are not a replacement for checking your own work. The more specific and small my prompts were, the better the results.&lt;/p&gt;

&lt;p&gt;You can see the portfolio I built here: &lt;a href="https://ritika-rajput-portfolio.vercel.app" rel="noopener noreferrer"&gt;ritika-rajput-portfolio.vercel.app&lt;/a&gt;. I also share videos on &lt;a href="https://www.youtube.com/@RitikaMoments" rel="noopener noreferrer"&gt;RitikaMoments&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What is the biggest problem you ran into while coding with an AI agent?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Helping Google Know Who I Am: SEO for a Developer Portfolio (Person Schema, Canonical Tags, sameAs)</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Sat, 31 Oct 2026 06:48:36 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/helping-google-know-who-i-am-seo-for-a-developer-portfolio-person-schema-canonical-tags-sameas-91f</link>
      <guid>https://dev.to/ritika_rajput/helping-google-know-who-i-am-seo-for-a-developer-portfolio-person-schema-canonical-tags-sameas-91f</guid>
      <description>&lt;p&gt;My name is a common one. When I search it, results are mixed, and my own portfolio is not guaranteed to show up. So I spent some time making my portfolio easier for Google to understand.&lt;/p&gt;

&lt;p&gt;I can't promise this will rank me first, because Google decides that. But these changes give search engines clear signals about who I am. Here is what I did on a React portfolio hosted on Vercel.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Each page needs its own canonical tag
&lt;/h2&gt;

&lt;p&gt;My first problem was in Search Console. One page showed &lt;strong&gt;"Alternate page with proper canonical tag"&lt;/strong&gt; and was not indexed.&lt;/p&gt;

&lt;p&gt;URL Inspection showed the canonical was my home page (&lt;code&gt;/&lt;/code&gt;), not the page itself. A single hard-coded &lt;code&gt;&amp;lt;link rel="canonical"&amp;gt;&lt;/code&gt; in &lt;code&gt;index.html&lt;/code&gt; was shared by every route, so Google treated my other pages as duplicates of the home page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; set the canonical per route.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;useEffect&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;SITE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://your-domain.com&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;useCanonical&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;link&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelector&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;HTMLLinkElement&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;link[rel="canonical"]&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;link&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;link&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;link&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
      &lt;span class="nx"&gt;link&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;rel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;canonical&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;head&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;link&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nx"&gt;link&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;href&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;SITE&lt;/span&gt;&lt;span class="p"&gt;}${&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Unique titles and descriptions per route
&lt;/h2&gt;

&lt;p&gt;I gave every page its own title in a consistent pattern, with my name first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Home      | Your Name | Web Developer &amp;amp; UI Designer from Your City
About     | About | Your Name
Projects  | Projects | Your Name
Blog      | Blog | Your Name
Contact   | Contact | Your Name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each page also has its own meta description. For a single-page app, I update &lt;code&gt;document.title&lt;/code&gt; and the meta tags when the route changes.&lt;/p&gt;

&lt;p&gt;A tip: don't stuff keywords. Write titles and descriptions that a real person would want to click.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Add Person structured data (JSON-LD)
&lt;/h2&gt;

&lt;p&gt;Structured data tells Google exactly what your site is about. For a personal site, the &lt;code&gt;Person&lt;/code&gt; type is a good fit.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"application/ld+json"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@context&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://schema.org&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Person&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Your Name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;url&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://your-domain.com/&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;image&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://your-domain.com/your-photo.jpg&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;jobTitle&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Web Developer &amp;amp; UI Designer&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;address&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;PostalAddress&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;addressLocality&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Your City&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;addressRegion&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Your State&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;addressCountry&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Your Country&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;knowsAbout&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Web development&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;React&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;TypeScript&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;UI design&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;sameAs&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://www.youtube.com/@your-channel&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://www.linkedin.com/in/your-profile&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://dev.to/your-username&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://github.com/your-username&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://your-blog.blogspot.com&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things to be careful about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep &lt;strong&gt;only one&lt;/strong&gt; &lt;code&gt;Person&lt;/code&gt; block, and don't repeat keys like &lt;code&gt;image&lt;/code&gt; or &lt;code&gt;sameAs&lt;/code&gt;. A duplicate or a typo can break the JSON.&lt;/li&gt;
&lt;li&gt;Only add profile links that are really yours. I once nearly added a GitHub URL that was a guess, and it could have pointed to a stranger's profile. Always open every &lt;code&gt;sameAs&lt;/code&gt; link and confirm it is your account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After deploying, check it with the Schema Markup Validator at validator.schema.org.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Link your profiles to each other
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;sameAs&lt;/code&gt; works best when the links go both ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Put your portfolio URL in your GitHub, LinkedIn, dev.to and YouTube profiles&lt;/li&gt;
&lt;li&gt;Link to your YouTube, LinkedIn, GitHub and blog from the portfolio&lt;/li&gt;
&lt;li&gt;Use the same name everywhere&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This helps search engines connect all of these accounts to one person.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Make the content itself clear
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One &lt;code&gt;h1&lt;/code&gt; per page that matches the page's purpose&lt;/li&gt;
&lt;li&gt;Descriptive &lt;code&gt;alt&lt;/code&gt; text on your profile photo, with your name&lt;/li&gt;
&lt;li&gt;A sitemap with every route, using your real domain&lt;/li&gt;
&lt;li&gt;Real text content on each page, not only images and cards&lt;/li&gt;
&lt;li&gt;Don't make two pages show the same content. I noticed my Home and About pages were nearly identical, and fixed it by giving each a different purpose&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. Tell Google about the changes
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Deploy to Vercel&lt;/li&gt;
&lt;li&gt;In Search Console, paste the URL into &lt;strong&gt;URL Inspection&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Test live URL&lt;/strong&gt;, then &lt;strong&gt;Request indexing&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Submit &lt;code&gt;sitemap.xml&lt;/code&gt; under &lt;strong&gt;Sitemaps&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Indexing can take days to weeks, and requesting it again and again doesn't speed it up.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'm watching now
&lt;/h2&gt;

&lt;p&gt;I don't have ranking results to show, and I won't pretend I do. What I'm tracking:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Whether the "not indexed" pages move to &lt;strong&gt;Indexed&lt;/strong&gt; in Search Console&lt;/li&gt;
&lt;li&gt;Whether my name plus "web developer" brings up my portfolio&lt;/li&gt;
&lt;li&gt;Whether my GitHub, YouTube and dev.to profiles show up together&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] A different canonical tag on every route&lt;/li&gt;
&lt;li&gt;[ ] Unique title and description per page&lt;/li&gt;
&lt;li&gt;[ ] One valid &lt;code&gt;Person&lt;/code&gt; JSON-LD block with real &lt;code&gt;sameAs&lt;/code&gt; links&lt;/li&gt;
&lt;li&gt;[ ] Profiles link back to the portfolio&lt;/li&gt;
&lt;li&gt;[ ] Sitemap submitted&lt;/li&gt;
&lt;li&gt;[ ] No duplicate pages&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;None of this is magic. It is about removing confusion for search engines and keeping your online presence consistent.&lt;/p&gt;

&lt;p&gt;You can see the portfolio here: &lt;a href="https://ritika-rajput-portfolio.vercel.app" rel="noopener noreferrer"&gt;ritika-rajput-portfolio.vercel.app&lt;/a&gt;. I also share videos on &lt;a href="https://www.youtube.com/@RitikaMoments" rel="noopener noreferrer"&gt;RitikaMoments&lt;/a&gt; and write on &lt;a href="https://dev.to/ritika_rajput"&gt;dev.to&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Have you tried improving your own search presence? What worked for you?&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>react</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How I Use Supabase as a Simple CMS for My Portfolio Blog</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Fri, 30 Oct 2026 08:02:49 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/how-i-use-supabase-as-a-simple-cms-for-my-portfolio-blog-3gkp</link>
      <guid>https://dev.to/ritika_rajput/how-i-use-supabase-as-a-simple-cms-for-my-portfolio-blog-3gkp</guid>
      <description>&lt;p&gt;When I added a blog to my portfolio, I did not want to edit code and redeploy the site every time I published a post. A small Supabase database solved this for me. In this post I'll show a simple setup you can copy: a table for posts, a storage bucket for images, and a few lines of code to read them.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Create a posts table
&lt;/h2&gt;

&lt;p&gt;In the Supabase SQL editor, create a table with the fields a blog card needs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;posts&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="n"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="n"&gt;gen_random_uuid&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
  &lt;span class="n"&gt;created_at&lt;/span&gt; &lt;span class="n"&gt;timestamptz&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt; &lt;span class="nb"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="k"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;excerpt&lt;/span&gt; &lt;span class="nb"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="nb"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nb"&gt;date&lt;/span&gt; &lt;span class="nb"&gt;date&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;slug&lt;/span&gt; &lt;span class="nb"&gt;text&lt;/span&gt; &lt;span class="k"&gt;unique&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;cover_image&lt;/span&gt; &lt;span class="nb"&gt;text&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;slug&lt;/code&gt; is used for the post URL, for example &lt;code&gt;/blog/my-first-post&lt;/code&gt;. Making it unique makes sure two posts never share one address.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Add a storage bucket for cover images
&lt;/h2&gt;

&lt;p&gt;Open &lt;strong&gt;Storage&lt;/strong&gt;, create a bucket (I named mine &lt;code&gt;site-images&lt;/code&gt;) and make it public. Upload an image and copy its public URL. It looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://YOUR-PROJECT.supabase.co/storage/v1/object/public/site-images/my-cover.webp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Paste that link into the &lt;code&gt;cover_image&lt;/code&gt; column of your post. A tip: compress cover images (WebP at around 1200 x 630 works well) so your blog cards load quickly.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Read the posts in your frontend
&lt;/h2&gt;

&lt;p&gt;Install the client and create it with your project URL and anon key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; @supabase/supabase-js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;createClient&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@supabase/supabase-js&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://YOUR-PROJECT.supabase.co&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;YOUR-ANON-KEY&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To show the list of blog cards:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;posts&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;error&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;posts&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;title, excerpt, slug, date, cover_image&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;order&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;date&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;ascending&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To load one post on its own page, filter by slug:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;post&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;error&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;posts&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;*&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;slug&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;single&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you write &lt;code&gt;content&lt;/code&gt; in Markdown, render it with a library such as &lt;code&gt;react-markdown&lt;/code&gt; or &lt;code&gt;marked&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Keep it secure with Row Level Security
&lt;/h2&gt;

&lt;p&gt;By default you do not want visitors to change your data. Turn on Row Level Security and allow only reading:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;posts&lt;/span&gt; &lt;span class="n"&gt;enable&lt;/span&gt; &lt;span class="k"&gt;row&lt;/span&gt; &lt;span class="k"&gt;level&lt;/span&gt; &lt;span class="k"&gt;security&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="nv"&gt;"Public can read posts"&lt;/span&gt;
&lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;posts&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With no insert, update or delete policy, visitors can only read. The anon key is meant to be used in the browser, but never put your &lt;code&gt;service_role&lt;/code&gt; key in frontend code.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Publishing a new post
&lt;/h2&gt;

&lt;p&gt;To publish, I open the &lt;strong&gt;Table Editor&lt;/strong&gt;, insert a new row, paste the title, excerpt, slug and content, and add the cover image link. The post shows up on the site without any code change or redeploy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pros and cons
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Simple and free to start, and no redeploy for new posts.&lt;/li&gt;
&lt;li&gt;You control your data and can export it any time.&lt;/li&gt;
&lt;li&gt;The Table Editor is not a writing tool, so long posts feel a bit clumsy. If you publish often, you can later build a small admin page on top of the same table.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;For a personal portfolio, a table, a bucket and a few queries are enough to get a working blog. You can see this kind of setup on the blog section of &lt;a href="https://ritika-rajput-portfolio.vercel.app/blog" rel="noopener noreferrer"&gt;my portfolio&lt;/a&gt;, and you can find more about my work on the &lt;a href="https://ritika-rajput-portfolio.vercel.app/skills" rel="noopener noreferrer"&gt;Skills page&lt;/a&gt;. If you try this, let me know in the comments how it went.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>supabase</category>
      <category>beginners</category>
      <category>javascript</category>
    </item>
    <item>
      <title>I Automated My Daily Blog with GitHub Actions, Gemini and the Blogger API</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Wed, 28 Oct 2026 07:21:15 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/i-automated-my-daily-blog-with-github-actions-gemini-and-the-blogger-api-403h</link>
      <guid>https://dev.to/ritika_rajput/i-automated-my-daily-blog-with-github-actions-gemini-and-the-blogger-api-403h</guid>
      <description>&lt;p&gt;I wanted my blog to publish a new post every morning without me touching it. So I built a small pipeline: GitHub Actions runs a Python script on a schedule, Gemini writes the post, and the Blogger API publishes it.&lt;/p&gt;

&lt;p&gt;It worked, but only after I hit three errors that the tutorials never mention. Here is the setup and the fixes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The architecture
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Actions&lt;/strong&gt; triggers the workflow every day on a cron schedule.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;generate_post.py&lt;/code&gt;&lt;/strong&gt; asks the Gemini API to write one post about a topic from a &lt;code&gt;skills.txt&lt;/code&gt; list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;post_to_blogger.py&lt;/code&gt;&lt;/strong&gt; publishes it through the Blogger API.&lt;/li&gt;
&lt;li&gt;The workflow commits the saved post file so topics don't repeat.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All credentials live in &lt;strong&gt;GitHub Secrets&lt;/strong&gt;, never in the code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;BLOGGER_CLIENT_ID
BLOGGER_CLIENT_SECRET
BLOGGER_REFRESH_TOKEN
BLOGGER_BLOG_ID
GEMINI_API_KEY
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The workflow
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Daily Blogger Auto-Post&lt;/span&gt;

&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;schedule&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;cron&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;30&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;4&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;*"&lt;/span&gt;   &lt;span class="c1"&gt;# 10:00 AM IST (cron runs in UTC)&lt;/span&gt;
  &lt;span class="na"&gt;workflow_dispatch&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;

&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;post&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-python@v5&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;python-version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;3.12"&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pip install -r requirements.txt&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Generate post&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;python scripts/generate_post.py&lt;/span&gt;
        &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;GEMINI_API_KEY&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.GEMINI_API_KEY }}&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Post to Blogger&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;python scripts/post_to_blogger.py&lt;/span&gt;
        &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;BLOGGER_CLIENT_ID&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.BLOGGER_CLIENT_ID }}&lt;/span&gt;
          &lt;span class="na"&gt;BLOGGER_CLIENT_SECRET&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.BLOGGER_CLIENT_SECRET }}&lt;/span&gt;
          &lt;span class="na"&gt;BLOGGER_REFRESH_TOKEN&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.BLOGGER_REFRESH_TOKEN }}&lt;/span&gt;
          &lt;span class="na"&gt;BLOGGER_BLOG_ID&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.BLOGGER_BLOG_ID }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remember that GitHub cron uses &lt;strong&gt;UTC&lt;/strong&gt;. For 10:00 AM in India (UTC+5:30), the cron is &lt;code&gt;30 4 * * *&lt;/code&gt;. Scheduled runs can also start 10 to 30 minutes late, so I schedule a little earlier than I need.&lt;/p&gt;

&lt;h2&gt;
  
  
  Error 1: &lt;code&gt;GEMINI_API_KEY is not set&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;My first run failed in 13 seconds with exactly that message. The key was in my local &lt;code&gt;.env&lt;/code&gt;, but GitHub never sees your &lt;code&gt;.env&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; add it under &lt;strong&gt;Settings → Secrets and variables → Actions → New repository secret&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Secret names can only contain letters, numbers and underscores. If GitHub rejects the name, you probably pasted the whole &lt;code&gt;NAME=value&lt;/code&gt; line into the name field.&lt;/p&gt;

&lt;h2&gt;
  
  
  Error 2: the model was retired (HTTP 404)
&lt;/h2&gt;

&lt;p&gt;The next run failed with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This model models/gemini-2.0-flash is no longer available.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Model names get retired. Hard-coding one means your automation silently dies one day.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; read the model from an environment variable, and if the API returns 404, ask the ListModels endpoint for a current "flash" model that supports &lt;code&gt;generateContent&lt;/code&gt;, then retry.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;pick_model&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://generativelanguage.googleapis.com/v1beta/models&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;models&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;name&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;models&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[])&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;flash&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;name&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;generateContent&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;supportedGenerationMethods&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[])&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;RuntimeError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;No usable Gemini flash model found&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;GEMINI_MODEL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="nf"&gt;pick_model&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;GEMINI_API_KEY&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I also retry 3 times and validate the output so a half-written post never gets published.&lt;/p&gt;

&lt;h2&gt;
  
  
  Error 3: the refresh token that expires
&lt;/h2&gt;

&lt;p&gt;If your Google OAuth app is in &lt;strong&gt;Testing&lt;/strong&gt; mode, refresh tokens expire after about 7 days. Your automation works all week, then dies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; in Google Cloud Console, open the OAuth consent screen and move the app to &lt;strong&gt;In production&lt;/strong&gt;. Then generate a new refresh token and update it in both &lt;code&gt;.env&lt;/code&gt; and the GitHub Secret.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making it safe to run daily
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Idempotency:&lt;/strong&gt; save each post as &lt;code&gt;posts/&amp;lt;date&amp;gt;-&amp;lt;slug&amp;gt;.md&lt;/code&gt; and skip if today's post already exists, so a manual re-run does not create duplicates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quality guardrails:&lt;/strong&gt; reject drafts that invent personal claims like fake clients or made-up percentages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fail soft on images:&lt;/strong&gt; if the image fetch fails, publish without one instead of failing the whole run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test as a draft first:&lt;/strong&gt; run once manually with drafts enabled, check Blogger, then switch to publishing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never print secrets&lt;/strong&gt; in logs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A note on quality
&lt;/h2&gt;

&lt;p&gt;Automation should not mean spam. I keep topics tied to real skills, ask for practical guides instead of invented stories, and read the output before trusting it. Search engines care about useful content, not volume.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;The pipeline is small, but the lessons are general: secrets live outside your repo, model names expire, and OAuth apps in testing mode expire too.&lt;/p&gt;

&lt;p&gt;If you want to see where my posts end up, check my portfolio at &lt;a href="https://ritika-rajput-portfolio.vercel.app" rel="noopener noreferrer"&gt;ritika-rajput-portfolio.vercel.app&lt;/a&gt;, and my videos on &lt;a href="https://www.youtube.com/@RitikaMoments" rel="noopener noreferrer"&gt;RitikaMoments&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Have you automated something similar? What broke first for you?&lt;/p&gt;

</description>
      <category>python</category>
      <category>githubactions</category>
      <category>automation</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>3 Bugs I Fixed in My React Portfolio (Mobile Menu, Canonical Tags, Image Sizing)</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Wed, 28 Oct 2026 07:15:27 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/3-bugs-i-fixed-in-my-react-portfolio-mobile-menu-canonical-tags-image-sizing-2773</link>
      <guid>https://dev.to/ritika_rajput/3-bugs-i-fixed-in-my-react-portfolio-mobile-menu-canonical-tags-image-sizing-2773</guid>
      <description>&lt;p&gt;I recently built my portfolio with React, TypeScript, Tailwind and Vercel. After launching it, I hit three bugs that were easy to miss but hurt real visitors. Here is what went wrong and how I fixed each one.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The mobile menu that never opened
&lt;/h2&gt;

&lt;p&gt;On phones, tapping the hamburger icon dimmed the screen and turned the icon into an "X", but the menu links never appeared.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I learned:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A dimmed backdrop plus an "X" means your state toggle works. The problem is the panel itself.&lt;/li&gt;
&lt;li&gt;Check your CSS variables first. If something like &lt;code&gt;--mobile-menu-bg&lt;/code&gt; is undefined, the panel can be transparent.&lt;/li&gt;
&lt;li&gt;Animations that start at &lt;code&gt;opacity: 0&lt;/code&gt; can get stuck invisible.&lt;/li&gt;
&lt;li&gt;A parent with &lt;code&gt;overflow: hidden&lt;/code&gt; or &lt;code&gt;transform&lt;/code&gt; can clip an &lt;code&gt;absolute&lt;/code&gt; child.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; render the panel as &lt;code&gt;position: fixed&lt;/code&gt;, give it a solid background with a fallback value, and keep it above the backdrop.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;
  &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"mobile-menu"&lt;/span&gt;
  &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fixed inset-x-3 top-20 z-[110] rounded-2xl bg-[var(--mobile-menu-bg,#0b1530)] p-2"&lt;/span&gt;
&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;links&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;l&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;a&lt;/span&gt; &lt;span class="na"&gt;key&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;href&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;href&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"flex min-h-[48px] items-center px-4 text-white"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;label&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;a&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also keep touch targets at least 44px, close the menu on link click, outside click and the Escape key, and add &lt;code&gt;aria-label&lt;/code&gt; and &lt;code&gt;aria-expanded&lt;/code&gt; to the button.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Google refused to index my /portfolio page
&lt;/h2&gt;

&lt;p&gt;Search Console said: &lt;strong&gt;"Alternate page with proper canonical tag"&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;URL Inspection showed the user-declared canonical was my home page (&lt;code&gt;/&lt;/code&gt;) instead of &lt;code&gt;/portfolio&lt;/code&gt;. A single hard-coded canonical in &lt;code&gt;index.html&lt;/code&gt; was shared by every route, so Google treated each page as a duplicate of the home page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; set the canonical per route.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;useEffect&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;SITE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://your-domain.com&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;useCanonical&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;link&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelector&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;HTMLLinkElement&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;link[rel="canonical"]&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;link&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;link&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;link&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
      &lt;span class="nx"&gt;link&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;rel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;canonical&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;head&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;link&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nx"&gt;link&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;href&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;SITE&lt;/span&gt;&lt;span class="p"&gt;}${&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Give every route its own title and meta description too, and list all routes in &lt;code&gt;sitemap.xml&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Images that looked wrong on different screens
&lt;/h2&gt;

&lt;p&gt;My profile photo was too big on small phones and too small on large screens.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; size it with &lt;code&gt;clamp()&lt;/code&gt; and keep the aspect ratio fixed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.profile-photo&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;clamp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="m"&gt;60vw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="m"&gt;440px&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nl"&gt;aspect-ratio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="m"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;object-fit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;cover&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;object-position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;top&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;height&lt;/code&gt; attributes to avoid layout jumps, set &lt;code&gt;max-width: 100%&lt;/code&gt; on images, and always include &lt;code&gt;&amp;lt;meta name="viewport" content="width=device-width, initial-scale=1"&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Test the mobile menu on a real phone, not only desktop resize&lt;/li&gt;
&lt;li&gt;[ ] Check the canonical tag on every route&lt;/li&gt;
&lt;li&gt;[ ] Verify pages in Google Search Console's URL Inspection&lt;/li&gt;
&lt;li&gt;[ ] Test at 360px, 390px, 768px, 1280px and 1920px widths&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;None of these bugs showed up in a quick desktop check, but they affected real users and search visibility. Test on phones, and inspect what Google actually sees.&lt;/p&gt;

&lt;p&gt;You can see the portfolio here: &lt;a href="https://ritika-rajput-portfolio.vercel.app" rel="noopener noreferrer"&gt;ritika-rajput-portfolio.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I also share videos on my YouTube channel, &lt;a href="https://www.youtube.com/@RitikaMoments" rel="noopener noreferrer"&gt;RitikaMoments&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What was the last "invisible" bug you found in your own project? Tell me in the comments.&lt;/p&gt;

</description>
      <category>react</category>
      <category>webdev</category>
      <category>seo</category>
      <category>tailwindcss</category>
    </item>
    <item>
      <title>How I built and launched my portfolio website as a beginner, using AI tools</title>
      <dc:creator>Ritika Rajput</dc:creator>
      <pubDate>Fri, 09 Oct 2026 06:47:52 +0000</pubDate>
      <link>https://dev.to/ritika_rajput/how-i-built-and-launched-my-portfolio-website-as-a-beginner-using-ai-tools-4gf2</link>
      <guid>https://dev.to/ritika_rajput/how-i-built-and-launched-my-portfolio-website-as-a-beginner-using-ai-tools-4gf2</guid>
      <description>&lt;p&gt;Hi, I'm Ritika Rajput, a web developer, video editor and social media manager from India. I wanted a portfolio website, but I don't write HTML, CSS or React from scratch. So I built it with AI tools. Here is what that really looked like, including what went wrong.&lt;/p&gt;

&lt;p&gt;Live site: &lt;a href="https://ritika-rajput-portfolio.vercel.app" rel="noopener noreferrer"&gt;https://ritika-rajput-portfolio.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The tools I used
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Replit Agent to generate the first version&lt;/li&gt;
&lt;li&gt;VS Code with OpenCode (an AI coding agent) for later changes&lt;/li&gt;
&lt;li&gt;GitHub to save and version my code&lt;/li&gt;
&lt;li&gt;Vercel to host the site&lt;/li&gt;
&lt;li&gt;Supabase for the database behind my admin panel&lt;/li&gt;
&lt;li&gt;Google Search Console to get the site indexed&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What went wrong, and what I learned
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. AI writes placeholder text that looks real.&lt;/strong&gt; My first version had generic lines about "an independent creative studio" and even an invented year ("Since 1998") on a client project. I had to read every line and replace it with true information. Always review what the AI writes about you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. My first deployment failed.&lt;/strong&gt; Vercel stopped with the error "PORT environment variable is required". The fix was adding the missing environment variables in the Vercel settings and redeploying. [Add one line about how you felt or how long it took.]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Database security is not optional.&lt;/strong&gt; My Supabase tables use Row Level Security. For now they allow public reading only, and I plan to add a proper login before allowing any writes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Be honest about your skills.&lt;/strong&gt; I removed the fake percentage bars from my Skills page and listed the tools I actually use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. SEO basics are small but important.&lt;/strong&gt; I added page titles, meta descriptions, alt text for images, a sitemap.xml and a robots.txt.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;Pages: Home, About, Skills, Blog, Projects and Contact, plus a hidden admin panel for managing content.&lt;/p&gt;

&lt;p&gt;My first client project is a website for Nirmal Family Restaurant &amp;amp; Party Hall: &lt;a href="https://nirmal-restaurant.vercel.app/" rel="noopener noreferrer"&gt;https://nirmal-restaurant.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is next
&lt;/h2&gt;

&lt;p&gt;I want to make my contact form send real messages, publish real blog posts, and add more projects (video editing, graphic design and social media).&lt;/p&gt;

&lt;p&gt;If you are a beginner and think an AI-built website is not "real", I disagree. It is real when you review it, test it and understand what you ship. Feedback is very welcome!&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgcltianke4tk5gn8omuq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgcltianke4tk5gn8omuq.png" alt=" " width="800" height="321"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1a6mb0540mdysfyqmkaf.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1a6mb0540mdysfyqmkaf.PNG" alt=" " width="800" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>ai</category>
      <category>portfolio</category>
    </item>
  </channel>
</rss>
