Add a tool script to quickly create a new custom page #7
Labels
No labels
Bug
Documentation
Duplicate
Enhancement
Good First Issue
Help Wanted
Important
Invalid
Not Planned
Question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
HPCesia/astral-halo#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, there are only two special pages in the template: About and links. Where about is a "standard" page-not much different from a regular post, while links adds the ability to build relevant links from the configuration.
Now, if I need to add a new "standard" page, I have to manually copy about.astro and modify the articles in the spec collection it gets. Considering that backlinks are the default page with the same name as their markdown content, you need to have a suitable utility function (like new and pub) to create a new "standard" page.
I think it would be better to add new features directly to new.mjs. The final command line command should be
pnpm new page [page name]