Template Files and Access Path Mapping
Info
This documentation is AI-generated. You can help improve it by submitting an Issue.
The following table summarizes the main template files of this theme, corresponding access paths, and Halo CMS official template documentation.
This is useful for secondary development, configuring menu paths, and referencing when setting hyperlinks in other scenarios.
Halo Built-in Pages
Template files are located in the src/templates folder.
In the default access path column in the table, {xxx} represents variables (please fill in actual values), and (xxx) represents optional values (please fill in as needed).
| Template File | Page Rendered | Default Access Path | Documentation |
|---|---|---|---|
index.html | Home Page | /(page/{page}) | Index |
post.html | Post Detail | /archives/{slug} (can be modified in Halo CMS backend) | Post |
page.html | Single Page | /{slug} | Page |
page-like-post-style.html | Single Page | /{slug} (Custom template: Post Page Style) | Page |
archives.html | Post Archive | /archives(/{year}(/{month})) | Archives |
tags.html | Tag Collection | /tags | Tags |
tag.html | Tag Detail | /tags/{slug} | Tag |
categories.html | Category Collection | /categories | Categories |
category.html | Category Detail | /categories/{slug} | Category |
author.html | Author Detail | /authors/{name} | Author |
error/*.html | Error Page | No fixed access path, determined by exception | Error Pages |
Plugin Pages
Template files are located in the src/templates folder.
In the default access path column in the table, {xxx} represents variables (please fill in actual values), and (xxx) represents optional values.
| Template File | Page | Default Path | Required Plugin |
|---|---|---|---|
links.html | Links List | /links | plugin-links |
photos.html | Photos Page | /photos, /photos/page/{page} | plugin-photos |
moments.html | Moments List | /moments(/page/{page})(?tag={tag}) | plugin-moments |
moment.html | Moment Detail | /moments/{name} | plugin-moments |
Other Plugin Adaptations
| File Location | Description | Required Plugin |
|---|---|---|
src\styles\mixins\colors\mixins\comment-widget-vars.styl | Official comment widget style adaptation | plugin-comment-widget |