<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: tzhkai</title>
    <description>The latest articles on Forem by tzhkai (@tzhkai).</description>
    <link>https://forem.com/tzhkai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3913575%2Fb8914af1-6d9f-4897-9ac4-c055cd8f4e0f.png</url>
      <title>Forem: tzhkai</title>
      <link>https://forem.com/tzhkai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/tzhkai"/>
    <language>en</language>
    <item>
      <title>I Spent 3 Months Getting Zero Organic Traffic — Then One Fix Brought 40 Users in 24 Hours</title>
      <dc:creator>tzhkai</dc:creator>
      <pubDate>Wed, 06 May 2026 08:01:04 +0000</pubDate>
      <link>https://forem.com/tzhkai/i-spent-3-months-getting-zero-organic-traffic-then-one-fix-brought-40-users-in-24-hours-5a2</link>
      <guid>https://forem.com/tzhkai/i-spent-3-months-getting-zero-organic-traffic-then-one-fix-brought-40-users-in-24-hours-5a2</guid>
      <description>&lt;h1&gt;
  
  
  I Spent 3 Months Getting Zero Organic Traffic — Then One Fix Brought 40 Users in 24 Hours
&lt;/h1&gt;

&lt;p&gt;I built a site with over 100 free browser tools — calculators, formatters, games, AI writing tools. I launched in January 2026. For &lt;strong&gt;three months&lt;/strong&gt;, Google sent me exactly zero visitors. Not low traffic — &lt;em&gt;zero&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Then, over the weekend, three fixes brought &lt;strong&gt;40 real users in 24 hours&lt;/strong&gt;. Here's exactly what was broken, what I fixed, and what I'll never skip again.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Site (Before You Ask)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://knexio.xyz" rel="noopener noreferrer"&gt;&lt;strong&gt;knexio.xyz&lt;/strong&gt;&lt;/a&gt; — 100+ browser tools, no sign-up, free. I built it for AdSense monetization, which means Google's content quality standards are the gatekeeper. You don't pass the review unless Google actually trusts your pages.&lt;/p&gt;

&lt;p&gt;Here's what the site had before I fixed anything:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✅ 300+ pages with unique content&lt;/li&gt;
&lt;li&gt;✅ Sitemaps submitted to Search Console&lt;/li&gt;
&lt;li&gt;✅ robots.txt correctly pointing to sitemap index&lt;/li&gt;
&lt;li&gt;✅ Structured data (JSON-LD) on every page&lt;/li&gt;
&lt;li&gt;✅ Schema.org FAQ markup&lt;/li&gt;
&lt;li&gt;✅ Open Graph / Twitter card meta tags&lt;/li&gt;
&lt;li&gt;✅ Fast load times (static site, no frameworks)&lt;/li&gt;
&lt;li&gt;✅ About, Privacy, Terms pages&lt;/li&gt;
&lt;li&gt;✅ Cookie consent banner (GDPR compliant)&lt;/li&gt;
&lt;li&gt;✅ Canonical URLs on all pages&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;From a checklist perspective, I'd done everything right. Google did not agree.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Audit: What Google Actually Saw
&lt;/h2&gt;

&lt;p&gt;When I sat down to audit the site — not with a tool, but by reading every file like a reviewer would — three things stood out.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The Canonical Dead Loop
&lt;/h3&gt;

&lt;p&gt;This was the silent killer.&lt;/p&gt;

&lt;p&gt;My blog sitemap (&lt;code&gt;sitemap-blogs.xml&lt;/code&gt;) linked to clean URLs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/blogs/seo-checklist-for-new-websites/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But every blog page's &lt;code&gt;&amp;lt;link rel="canonical"&amp;gt;&lt;/code&gt; pointed to:&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;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"canonical"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://knexio.xyz/blogs/seo-checklist.html"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And that &lt;code&gt;.html&lt;/code&gt; URL? It returned a &lt;strong&gt;308 permanent redirect&lt;/strong&gt; back to the clean URL.&lt;/p&gt;

&lt;p&gt;Googlebot would land on &lt;code&gt;/blogs/seo-checklist/&lt;/code&gt; → see canonical pointing to &lt;code&gt;.html&lt;/code&gt; → follow redirect back to the clean URL → see canonical pointing to &lt;code&gt;.html&lt;/code&gt; → &lt;strong&gt;give up&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The bot couldn't determine the canonical URL, so it refused to index &lt;strong&gt;any&lt;/strong&gt; of my blog posts. 25 pages, invisible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix&lt;/strong&gt;: Strip &lt;code&gt;.html&lt;/code&gt; from all canonical URLs. Match sitemap. One &lt;code&gt;sed&lt;/code&gt; command, 24 files.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. 43 Pages That Were "Thin Content"
&lt;/h3&gt;

&lt;p&gt;I thought I had substantial content. Google's crawler counted H2 tags and came to a different conclusion.&lt;/p&gt;

&lt;p&gt;My games directory had &lt;strong&gt;33 pages with zero H2 headings&lt;/strong&gt;. Not one. No "How to Play" section, no strategy tips, no rules explanation. Just a title, the game iframe, and an ad.&lt;/p&gt;

&lt;p&gt;Another 10 tools had 1-2 H2s at most — not enough for Google to consider them "substantive." A single "What is this tool?" section doesn't cut it.&lt;/p&gt;

&lt;p&gt;This is the exact pattern that triggers Google's "thin content" penalty — pages created primarily for displaying ads. &lt;strong&gt;AdSense reviewers actively flag this.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix&lt;/strong&gt;: Added dedicated "How to Play," "Tips &amp;amp; Strategy," and "Why Use This" sections for every game page. Expanded thin tool pages to 3+ substantive H2 blocks. Total: 43 pages rewritten with unique, non-template content.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The EEAT Gap
&lt;/h3&gt;

&lt;p&gt;Google's Search Quality Rater Guidelines emphasize E-E-A-T: &lt;strong&gt;Experience, Expertise, Authoritativeness, Trustworthiness&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;My site had:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;❌ No author name or bio on any page&lt;/li&gt;
&lt;li&gt;❌ No "About" page that mentioned a real person with credentials&lt;/li&gt;
&lt;li&gt;❌ No external trust signals (GitHub links, LinkedIn, etc.)&lt;/li&gt;
&lt;li&gt;✅ Privacy policy (good)&lt;/li&gt;
&lt;li&gt;✅ Terms of service (good)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The site looked anonymous. Anonymous = untrustworthy in Google's eyes, especially for a site applying for AdSense monetization.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix&lt;/strong&gt;: Added a team narrative to the About page (real people, not a faceless brand), footer links to GitHub profile, and surface-level trust cues across the site.&lt;/p&gt;

&lt;h2&gt;
  
  
  24 Hours Later: Real Traffic
&lt;/h2&gt;

&lt;p&gt;After pushing the fixes and requesting re-indexing in Search Console:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After (24h)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Organic search clicks&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Active users&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;41&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Top country&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;United States (32 users)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Engagement events&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;526 (page scrolls, clicks)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Avg session duration&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;3 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Not life-changing numbers. But after three months of &lt;em&gt;nothing&lt;/em&gt;, seeing real humans from Google actually use your tools — that's a different feeling. &lt;/p&gt;

&lt;p&gt;The top pages getting traffic:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;AI Note-Taking Apps guide&lt;/li&gt;
&lt;li&gt;Reading Time calculator&lt;/li&gt;
&lt;li&gt;Blog directory&lt;/li&gt;
&lt;li&gt;Word Counter&lt;/li&gt;
&lt;li&gt;AI Coding Assistants guide&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Not the tools themselves — the &lt;strong&gt;content pages&lt;/strong&gt;. Google is sending people to the information, not the widgets.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Wish I'd Known on Day One
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Sitemap ≠ Indexing
&lt;/h3&gt;

&lt;p&gt;Submitting a sitemap doesn't mean Google will index your pages. It means Google &lt;em&gt;might&lt;/em&gt; look at them. The canonical fix above meant Google actually &lt;strong&gt;could&lt;/strong&gt; process what it found.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Content Count ≠ Content Quality
&lt;/h3&gt;

&lt;p&gt;I had 300+ pages and thought I was done. Half of them were invisible to Google because they lacked the structural depth Google expects. It's not about word count — it's about &lt;strong&gt;having clearly labeled, distinct sections&lt;/strong&gt; (H2s, not just paragraphs).&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The Boring Pages Matter Most
&lt;/h3&gt;

&lt;p&gt;I obsessed over tool features. Google cared about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is the canonical URL consistent? &lt;/li&gt;
&lt;li&gt;Does the About page show a real person?&lt;/li&gt;
&lt;li&gt;Does the Privacy page actually explain cookie usage?&lt;/li&gt;
&lt;li&gt;Are there contact options?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The tools were secondary to the trust infrastructure.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. AdSense Approval Is a Content Review in Disguise
&lt;/h3&gt;

&lt;p&gt;If you're building for AdSense, think like a quality rater. Every page needs to pass the "would I be satisfied if I landed here from search?" test. If a page is just a tool with a sentence of description and an ad, it fails. Google's reviewers see thousands of these, and they're trained to spot them instantly.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Analytics Lie Without Engagement Data
&lt;/h3&gt;

&lt;p&gt;Raw visitor counts mean nothing. I had "traffic" from AI crawlers (GPTBot, ClaudeBot) showing up as Direct visits. Only when I saw &lt;strong&gt;scroll events and user engagement metrics&lt;/strong&gt; did I know the traffic was real.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AdSense review&lt;/strong&gt; — literally just submitted. The fixes above were the pre-flight checklist&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool content pages&lt;/strong&gt; — building out the informational content around each tool (not just the tool itself) is where the organic traffic lives&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backlink building&lt;/strong&gt; — GitHub Awesome lists, Product Hunt (launching May 6), community posts&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Try it&lt;/strong&gt;: &lt;a href="https://knexio.xyz" rel="noopener noreferrer"&gt;knexio.xyz&lt;/a&gt; — 100+ free browser tools&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/tzhkai/knexio" rel="noopener noreferrer"&gt;tzhkai/knexio&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Built by KK Tian. I write about SEO, web tools, and the slow process of getting Google to notice your work.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>startup</category>
      <category>learning</category>
    </item>
    <item>
      <title>How I Built a Privacy-First Markdown Editor with Astro + Cloudflare Pages</title>
      <dc:creator>tzhkai</dc:creator>
      <pubDate>Tue, 05 May 2026 09:07:01 +0000</pubDate>
      <link>https://forem.com/tzhkai/how-i-built-a-privacy-first-markdown-editor-with-astro-cloudflare-pages-fo</link>
      <guid>https://forem.com/tzhkai/how-i-built-a-privacy-first-markdown-editor-with-astro-cloudflare-pages-fo</guid>
      <description>&lt;h1&gt;
  
  
  How I Built a Privacy-First Markdown Editor with Astro + Cloudflare Pages
&lt;/h1&gt;

&lt;p&gt;I wanted a Markdown editor that loads instantly, previews in real time, and never asks for my email. So I built &lt;a href="https://markdownmaster.site" rel="noopener noreferrer"&gt;MarkdownMaster&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here's the full story: the tech stack, the architecture decisions, and what I learned along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem with Existing Markdown Editors
&lt;/h2&gt;

&lt;p&gt;Most online Markdown editors fall into one of three camps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Heavy WYSIWYG apps&lt;/strong&gt; — HackMD, Notion, etc. Cool features, but slow to load and require accounts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ad-cluttered free tools&lt;/strong&gt; — Works, but the UX is awful&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Developer-only CLI tools&lt;/strong&gt; — Great for terminal users, useless for sharing with non-technical teammates&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I wanted something different: a clean, fast, privacy-first editor that works the moment you open the URL. No loading spinners. No cookie walls. No "sign up to save" nag screens.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Stack: Why Astro + Cloudflare
&lt;/h2&gt;

&lt;p&gt;After evaluating several options (Next.js, SvelteKit, plain HTML), I landed on:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concern&lt;/th&gt;
&lt;th&gt;Solution&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Speed&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Astro static generation → zero JavaScript runtime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Global latency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Cloudflare Pages edge network → &amp;lt;50ms TTFB worldwide&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Markdown parsing&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;marked.js → battle-tested GFM parser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Syntax highlighting&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Prism.js → 100+ languages, lightweight&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dynamic content&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Cloudflare D1 → edge SQLite for blog content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Analytics&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;GA4 with cookie consent banner&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Why Not Next.js?
&lt;/h3&gt;

&lt;p&gt;Next.js is great, but for a content-heavy tool that doesn't need client-side state management, it's overkill. Every Next.js page ships 70-100KB of JavaScript even for static content. Astro ships &lt;strong&gt;zero&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Cloudflare Pages Over Vercel/Netlify?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Free tier includes 500 builds/month (vs Vercel's 100 on hobby)&lt;/li&gt;
&lt;li&gt;D1 database at the edge (no cold starts like serverless)&lt;/li&gt;
&lt;li&gt;Workers for lightweight backend logic (affiliate links, A/B tests)&lt;/li&gt;
&lt;li&gt;Built-in analytics without third-party scripts&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌─────────────────────────────────────────────────┐
│                    Cloudflare                     │
│  ┌──────────┐  ┌──────────┐  ┌───────────────┐  │
│  │  Pages   │  │  Worker  │  │      D1       │  │
│  │ (static) │──│(affiliate│──│(blog content, │  │
│  │  Astro   │  │ injection)│  │ link templates)│  │
│  └──────────┘  └──────────┘  └───────────────┘  │
└─────────────────────────────────────────────────┘
         │
         ▼
    User's Browser
    ┌─────────────────────────────┐
    │  marked.js (GFM parser)     │
    │  Prism.js (highlighting)    │
    │  GA4 (analytics)            │
    │  All client-side. Zero API  │
    └─────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Key architectural decisions:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Everything Runs Client-Side
&lt;/h3&gt;

&lt;p&gt;The editor is pure HTML + CSS + JS. When you type on the left, &lt;code&gt;marked.js&lt;/code&gt; converts it to HTML on the right — all in your browser. No server round-trips, no API calls, no latency.&lt;/p&gt;

&lt;p&gt;This also means &lt;strong&gt;your content never leaves your device&lt;/strong&gt;. I don't have a server to store it on even if I wanted to.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Astro for Static Generation
&lt;/h3&gt;

&lt;p&gt;The blog, docs, and landing pages are all pre-built HTML. No SSR, no hydration, no client-side routing. Just pure HTML served from Cloudflare's edge.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;---
// src/pages/index.astro
import BaseLayout from '../layouts/BaseLayout.astro';
---

&amp;lt;BaseLayout
  title="Free Online Markdown Editor — MarkdownMaster"
  description="Free online Markdown editor with real-time live preview..."
&amp;gt;
  &amp;lt;section class="hero"&amp;gt;
    &amp;lt;h1&amp;gt;Write Markdown. See It Instantly.&amp;lt;/h1&amp;gt;
    &amp;lt;a href="/editor/"&amp;gt;Start Writing Now →&amp;lt;/a&amp;gt;
  &amp;lt;/section&amp;gt;
  &amp;lt;!-- Features, etc --&amp;gt;
&amp;lt;/BaseLayout&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Cloudflare Worker for Lightweight Backend
&lt;/h3&gt;

&lt;p&gt;The only server-side code is a Worker that proxies requests from &lt;code&gt;markdownmaster.site&lt;/code&gt; to the Pages deployment. It injects an affiliate button on HTML pages and passes everything else through untouched.&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="c1"&gt;// Simplified Worker logic&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&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;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pathname&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// Only inject into HTML responses&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;headers&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="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;content-type&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)?.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;text/html&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="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;html&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;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text&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;links&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;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;DB&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;prepare&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;SELECT links_json FROM link_templates WHERE site_id = ?&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
      &lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;bind&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;tool-markdown&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;first&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

      &lt;span class="nx"&gt;html&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;html&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;affiliateButton&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;links&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;html&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Static assets pass through untouched&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;h3&gt;
  
  
  4. Cookie Consent That Actually Respects Privacy
&lt;/h3&gt;

&lt;p&gt;GDPR compliance isn't optional if you use GA4. But I hate those full-screen cookie walls that darken the page and force you to click through 12 toggles.&lt;/p&gt;

&lt;p&gt;My solution: a slim bottom banner with one button.&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="c1"&gt;// No framework, no npm dependency. Just vanilla JS.&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&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="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;cookie&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;indexOf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;mm_cookie_consent=1&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&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="k"&gt;return&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="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;cookie-banner&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;display&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;flex&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="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;cookie-accept&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;onclick&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;function&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;cookie&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;mm_cookie_consent=1;max-age=31536000;path=/;SameSite=Lax&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="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;cookie-banner&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;display&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;none&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="p"&gt;})();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The Blog: 17 Articles and Counting
&lt;/h2&gt;

&lt;p&gt;I wrote 17 in-depth Markdown tutorials — from beginner cheat sheets to advanced topics like Mermaid diagrams and LaTeX math formulas. Each article is 2,500-3,500 words with real code examples.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Article&lt;/th&gt;
&lt;th&gt;Topic&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://markdownmaster.site/blog/markdown-cheat-sheet-complete-guide/" rel="noopener noreferrer"&gt;Markdown Cheat Sheet&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Complete syntax reference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://markdownmaster.site/blog/how-to-write-markdown-step-by-step/" rel="noopener noreferrer"&gt;How to Write Markdown&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Step-by-step beginner guide&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://markdownmaster.site/blog/markdown-for-developers-readme-docs-wikis/" rel="noopener noreferrer"&gt;Markdown for Developers&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;README, docs, wikis&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://markdownmaster.site/blog/advanced-markdown-footnotes-mermaid-math-guide/" rel="noopener noreferrer"&gt;Advanced Markdown&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Footnotes, Mermaid, Math&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://markdownmaster.site/blog/how-to-build-blog-with-markdown-astro/" rel="noopener noreferrer"&gt;Build a Blog with Markdown + Astro&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Full tutorial&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The blog serves two purposes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;SEO&lt;/strong&gt; — long-tail keywords like "how to create markdown tables" bring organic traffic&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trust&lt;/strong&gt; — Google's EEAT guidelines favor sites that demonstrate expertise with substantial content&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  SEO: What I Learned
&lt;/h2&gt;

&lt;p&gt;Launching a new domain is humbling. You ship, you submit your sitemap, and... crickets. For weeks.&lt;/p&gt;

&lt;p&gt;Here's what actually moved the needle:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Fix Canonical URLs Immediately
&lt;/h3&gt;

&lt;p&gt;My blog pages had a canonical dead loop: the sitemap linked to &lt;code&gt;/blog/post-name/&lt;/code&gt; but the page's canonical tag pointed to &lt;code&gt;/blog/post-name.html&lt;/code&gt;, which 301-redirected back to the clean URL. Google saw this and refused to index anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix&lt;/strong&gt;: Align canonical with sitemap URLs. This single fix took my site from 0 to 7 organic search clicks in 24 hours.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. EEAT Signals Matter
&lt;/h3&gt;

&lt;p&gt;Google looks for "Experience, Expertise, Authoritativeness, Trustworthiness" signals. I added:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;About page&lt;/strong&gt; with my name, GitHub profile, and technical background&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Footer links&lt;/strong&gt; to the open-source repository&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy policy&lt;/strong&gt; that honestly describes GA4 cookie usage&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cookie consent&lt;/strong&gt; (GDPR compliance matters in 2026)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. &lt;code&gt;.site&lt;/code&gt; TLDs Have a Trust Problem
&lt;/h3&gt;

&lt;p&gt;I learned this the hard way: Google's algorithms are skeptical of &lt;code&gt;.site&lt;/code&gt; domains because they're commonly used by phishing sites. If I were starting over, I'd choose &lt;code&gt;.com&lt;/code&gt; or &lt;code&gt;.io&lt;/code&gt;. If you're stuck with &lt;code&gt;.site&lt;/code&gt; like me, the EEAT signals above become even more critical.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Open-source the editor component&lt;/strong&gt; as a standalone package&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Export formats&lt;/strong&gt;: PDF, DOCX, HTML zip&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyboard shortcuts&lt;/strong&gt;: Full VSCode-style command palette&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Collaboration&lt;/strong&gt;: Real-time multiplayer editing via WebRTC (no server, still privacy-first)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://markdownmaster.site" rel="noopener noreferrer"&gt;&lt;strong&gt;markdownmaster.site&lt;/strong&gt;&lt;/a&gt; — No sign-up, no tracking, no ads. Just open and write.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/tzhkai/markdownmaster" rel="noopener noreferrer"&gt;&lt;strong&gt;GitHub&lt;/strong&gt;&lt;/a&gt; — Star the repo if you find it useful!&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built by &lt;a href="https://github.com/tzhkai" rel="noopener noreferrer"&gt;KK Tian&lt;/a&gt;. I build fast, privacy-first web tools. Follow me on GitHub for more.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>astro</category>
      <category>markdown</category>
      <category>cloudflare</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
