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
-
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.md
to structure my journal entries with predefined tags, categories, and comments, which looks like this:Creating a Separate Directory:
I’ve created a
source/_journals
folder and tried to configure my_config.yml
to manage these entries separately:Bash Automation:
I’ve written a simple Bash script that automates journal creation with a custom filename (
jYYMMDD.md
format) 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