สิ่งที่พนักงานของคุณรู้ ก่อนที่มันจะสร้างอะไร

ใครก็ได้สามารถแสดงโมเดลบนเว็บไซต์นี้ นี่คือกฎที่มันใช้กับทุกหน้า ทำไมทุกหน้ามีอยู่ และกฎที่หยุดการเผยแพร่ มากกว่าการเตือน

ทุกกฎข้างล่างนี้ ถูกสร้างขึ้นมาจากเหตุการณ์ที่เกิดขึ้นบนเว็บไซต์ของเรา เช่น การตกชั้น การแปลที่ผิดพลาด หน้าเว็บที่แสดงโค้ดต้นฉบับของมันเอง เราไม่ได้เดาว่าเป็นวิธีที่ดีที่สุด เราเขียนลงไปในสิ่งที่ผิดพลาดแล้ว ดังนั้นจึงไม่ทำให้มันผิดพลาดบนเว็บไซต์ของคุณด้วย

กฎที่บล็อกการเผยแพร่โดยตรง: 8 ของ 12. หน้าที่ถูกบล็อกจะถูกส่งกลับไปยังพนักงานพร้อมเหตุผล และมันจะพยายามอีกครั้ง มันจะไม่เผยแพร่และเตือนคุณหลังจากนั้น

1. One page, one subject

ประกาศบล็อก

Exactly one <h1>. A descriptive <title> of 15-60 characters.

ทำไม: Title is the strongest per-page signal Google has. Google rewrites titles for the SERP most of the time, but the signal it forms from yours still affects ranking, and a generic or duplicated title reads as a quality problem.

2. A description written for a human

เตือน

A meta description of 140-158 characters, unique to the page.

ทำไม: Description does not rank the page, it decides whether anyone clicks it. Too short wastes the snippet; too long truncates mid-sentence.

3. No shared body text, ever

ประกาศบล็อก

Every page gets body copy and FAQ answers written for that page. Never a shared template with a noun swapped in.

ทำไม: This is the one that costs months. A site we run shipped ~1700 pages on one generic FAQ body and a site-level quality classifier suppressed the whole domain — pages still indexed, ranking gone, no manual action to appeal. Recovery ran on core-update timescale.

4. Absolute canonical, paired with hreflang

ประกาศบล็อก

Every page self-canonicalises with an absolute URL. Any hreflang cluster ships alongside that canonical, also absolute.

ทำไม: Relative hrefs are silently dropped. hreflang without a self-canonical fills the index report with "Duplicate without user-selected canonical" — 56,801 pages on one site we run.

5. Markup may only claim what the page shows

ประกาศบล็อก

Structured data mirrors the visible text exactly. Schema goes on the page types that earn a rich result, not on everything.

ทำไม: Schema is not a general ranking input and not required for AI search -- Google says so directly. Markup that claims a price or a question the page never shows is a violation that can earn a manual action.

6. Django comments are {% comment %}

ประกาศบล็อก

Never {# #}. Not even on one line.

ทำไม: Django's template lexer regex has no DOTALL flag, so {# #} only closes on its own line. A multi-line one renders as visible page text, and if it contains a {% %} substring the lexer treats it as a real tag and every render crashes. Both have happened in production.

7. Positional {0} slots in translatable strings

ประกาศบล็อก

Any string that will be machine-translated uses {0}, {1} — never {name}.

ทำไม: MT engines translate or transliterate the word inside the braces, or drop a brace entirely. A numeric slot has no word to translate and survives intact. This silently broke about 10% of non-English rows on one site before anyone noticed.

8. Nothing is indexable until it is finished

ประกาศบล็อก

Pages ship noindex. Indexing is a deliberate opt-in by the owner, per site.

ทำไม: These sites share a wildcard domain. One spam tenant indexed on that wildcard damages every other tenant on it, and a half-finished page indexed on day one takes months to undo.

9. Build the thing, do not describe the thing

เตือน

A page either does something useful or says something specific. A page that only describes a tool is not a page.

ทำไม: Thin wrappers around someone else's API are the clearest signal a quality classifier has. Real utility is what survives a core update.

11. Alt text and intrinsic dimensions on every image

เตือน

Every <img> has alt text and explicit width/height.

ทำไม: Alt text is an accessibility requirement first and an indexing signal second. Missing dimensions cause layout shift, which is a Core Web Vitals failure on mobile — and mobile is what gets indexed.

12. Retired URLs return 410, verified

ประกาศบล็อก

A removed page returns 410 Gone, confirmed by an actual request after deploy.

ทำไม: A 404 lingers as a soft-404 for months; a 410 deindexes cleanly. And per-view dispatch often intercepts the request before the 410-returning view is ever reached, so the check has to be a real HTTP request, not a code read.

ทำไมนี่เป็นลิ้นชัก ไม่ใช่สไตล์

กฎที่อยู่เพียงในคำสั่งเท่านั้น นั้นเป็นข้อเสนอแนะ - โมเดลจะทำตามมันตลอดเวลา และไม่ทำอย่างเงียบๆ ส่วนที่เหลือ และคุณจะรู้ได้ในรายงานการขนส่งในสามเดือนต่อมา ดังนั้น มันจะทำงานเป็นรหัส หลังจากที่หน้าถูกเขียน และก่อนที่มันจะเปิดใช้งาน หน้าที่ล้มเหลวในการบล็อกกฎ จะถูกส่งกลับมาพร้อมกับเหตุผล และเขียนใหม่ ผลลัพธ์จะอยู่ในการรับรองทั้งสองทาง ดังนั้น คุณจะเห็นได้ว่ามีการตรวจสอบที่ทำงาน

และไม่มีอะไรถูกอ้างอิง จนกว่าคุณจะบอก

ทุกเว็บไซต์จะเริ่มใช้ noindex ไม่ได้เป็นค่าปริยาย คุณต้องค้นหามันเอง - ตามกฎแล้ว linter จะใช้มัน เพราะเว็บไซต์เหล่านี้ใช้โดเมนเดียวกัน และเพื่อนบ้านที่ไม่ดี อาจจะทำร้ายทุกคนที่อยู่ในโดเมนนั้น เมื่อเว็บไซต์ของคุณมีค่าที่จะค้นหา คุณสามารถเปิดการสร้างดัชนีได้ในส่วนการตั้งค่า และมันจะเริ่มถูกค้นหา

ไปทำงานกะแรกได้ฟรี