冇记

👋 欢迎来到冇记!

  • 本博客主人叫冇文化,故简称 冇记。
  • 这里没有高深理论,只有点滴的记录。
  • 愿路过的你,能在这里找到一点你需要的。

How to Write Blog Posts

This article introduces the guidelines for writing posts in the PaperMod blog. Required Fields Each post’s front matter must include the following fields: --- title: "Post Title" # Required: post title date: 2026-03-16 # Required: publish date --- Common Optional Fields --- # ===== Basic Info ===== title: "Post Title" # Required: post title date: 2026-03-16 # Required: publish date (YYYY-MM-DD) lastmod: 2026-03-17 # Last modified date description: "Post summary" # Description for SEO and social sharing author: "Author name" # Author name, overrides default keywords: ["keyword1", "keyword2"] # SEO keywords # ===== Taxonomy ===== tags: ["tag1", "tag2"] # Tags, fine-grained, multiple allowed categories: ["category"] # Categories, coarse-grained, usually one series: ["series-name"] # Series name, for linking related posts # ===== Publish Status ===== draft: false # false = published, true = draft (hidden) publishDate: 2026-03-16 # Publish date (for scheduled publishing) expiryDate: 2026-12-31 # Expiry date, post hidden after this date # ===== Sorting & Pinning ===== weight: 1 # Sort weight, lower = earlier (for pinning) pinned: true # PaperMod-specific: pin post to top # ===== Cover Image ===== cover: image: "images/cover.jpg" # Cover image path (relative to static) alt: "Image description" # Image alt text (accessibility) caption: "Image caption" # Caption text below image relative: false # true = relative to post, false = relative to static # ===== Feature Toggles (override global settings) ===== ShowToc: true # Show table of contents TocOpen: true # TOC expanded by default ShowReadingTime: true # Show reading time ShowShareButtons: true # Show share buttons ShowBreadCrumbs: true # Show breadcrumbs navigation ShowPostNavLinks: true # Show prev/next post navigation ShowCodeCopyButtons: true # Show code copy buttons ShowWordCount: true # Show word count comments: false # Enable comments # ===== Other Settings ===== slug: "custom-url" # Custom URL slug (default: filename) url: "custom-path/" # Custom full URL path type: "posts" # Content type (auto-detected from folder) layout: "custom-layout" # Custom layout template --- Tags vs Categories Difference between tags and categories: ...

March 16, 2026 · 4 min · 冇文化