Blog Post
Standard blog post with engagement features.
title: My Postsubtitle: A clear subtitleimage: filename: featured.jpgtoc: trueshare: truecommentable: truetags: [News]此内容尚不支持你的语言。
HugoBlox pages are frontmatter-driven. Use these switches to control how each page looks, what it shows, and how it behaves — without touching templates.
You have two options for page visuals: a Featured Image (standard blog style) or a Page Cover (Notion-style).
Optimized for high-resolution displays and responsive layouts.
Used for social sharing cards and article thumbnails.
Full-width header image.
A full-width, immersive header with optional icon and effects.
Auto-Detection: Simply add an image named cover.jpg (or png/webp) to your page folder.
Configuration:
---cover: image: "cover.jpg" # Optional if using auto-detection style: "gradient" # gradient | glass | blur | default icon: name: "📊" # Emoji or icon name position: x: 50 # Focus point X (0-100%) y: 50 # Focus point Y (0-100%)---Standard image that appears in social previews and at the top of the article body.
---image: filename: my-image.jpg # in assets/media/ or page bundle focal_point: Smart # Smart, Center, TopLeft, etc. preview_only: false # true = social only, hide on page alt_text: "A description of the image"---Attribute content to authors, set publishing dates, and organize with tags.
---title: My Postsummary: "Short teaser shown in lists"date: 2023-10-01 # Published datelastmod: 2023-10-05 # Updated dateauthors: - admin # references content/authors/admin/_index.md - Jane Doe # plain text nametags: [HugoBlox, Docs]categories: [Tutorial]featured: true # Pin to the homepage/featured widget---Control the page structure: enable/disable the Table of Contents, sharing buttons, comments, and header styling.
---share: true # show sharing buttonscommentable: true # enable comments (if configured in params.yaml)toc: true # show table of contents on the page
cover: image: "" # cover image---Attach downloads, add Call-to-Action (CTA) buttons to the header, or embed a slide deck.
---# 1. Attach downloadable filesresources: - src: paper.pdf title: Read the paper
# 2. Add header buttons (CTAs)links: - name: Code url: https://github.com/... icon: github - name: Demo url: https://...
# 3. Embed Slidesslides: my-talk # Embeds content/slides/my-talk.md---Unlock powerful rendering features for technical content.
Enable LaTeX math rendering using KaTeX:
math: trueThen use $E=mc^2$ for inline or $$...$$ for blocks.
Enable Mermaid diagrams:
diagram: trueThen use ````mermaid` code blocks.
Control code syntax highlighting languages:
highlight: truehighlight_languages: ["python", "go", "r"]Manage how your page is indexed and accessed.
---draft: false # true = hide from productionweight: 10 # Order in lists (lower = earlier)aliases: ['/old-url/'] # Redirects from old pathscanonical: 'https://example.com/new/' # SEO canonical URL---Copy-paste these patterns to get started fast.
Blog Post
Standard blog post with engagement features.
title: My Postsubtitle: A clear subtitleimage: filename: featured.jpgtoc: trueshare: truecommentable: truetags: [News]Research Paper
Academic paper with PDF and links.
title: My Paperfeatured: trueresources: - src: paper.pdflinks: - name: Code url: https://github.com/...Docs Page
Documentation with navigation.
title: Installationtoc: trueweight: 10# comments/share often disabledcommentable: falseshare: falseTalk / Event
Event page with slides.
title: My Conference Talkdate: 2023-11-15slides: my-decklinks: - name: Video url: https://youtube.com/...