Migrating post type to new type journal #5556
Unanswered
enkr1
asked this question in
Question / Answer
Replies: 1 comment 1 reply
-
|
Maybe you can refer to the approach of hexojs/site |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been managing my journals by simply using
hexo new ...commands to create posts, but I realized that my blog page is getting cluttered with these entries. To clean things up, I’ve decided to split my journals into a new page or section.Here’s what I’ve done so far:
Custom Scaffold for Journals: I’ve set up a custom scaffold
journal.mdto structure my journal entries with predefined tags, categories, and comments, which looks like this:Creating a Separate Directory:
I’ve created a
source/_journalsfolder and tried to configure my_config.ymlto manage these entries separately:Bash Automation:
I’ve written a simple Bash script that automates journal creation with a custom filename (
jYYMMDD.mdformat) and injects the right content dynamically, including the journal title, date, and headers.Script sample:
Question:
Is there a better or more official way to handle journal creation with specific titles, headers, and categories in Hexo? My goal is to quickly generate a journal entry with the right structure in a separate folder, without cluttering my main blog posts. I would love to know if anyone has a more efficient way to manage this process through Hexo commands or an alternative approach to my bash solution.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions