Running the hugo theme Doks.
npm run start
(for dev)npm run build
npm run create -- --kind docs blog/build-diary-9
npm run create blog/<name>/index.md
Get list of commits with git log --since="Thu Nov 16 11:41:58 2023 +1300" --oneline
Get n commits: git log -n 32
Show lines added and removed with git log --since="Thu Nov 16 11:41:58 2023 +1300" --numstat | awk 'NF==3 {plus+=$1; minus+=$2; files++} END {printf("- **Files changed:** %s\n- **Lines added:** %s\n- **Lines removed:** %s\n", files, plus, minus)}'
Working command for blog post generation:
Instruction: Write a blog post for a developer diary to update a community of software users based on the list of commits pasted below in the git log. Use the starting text to the left of the colon as heading groupings for the content. The list of commits is from a single developer and he is addressing the community personally. Don't include references to the commit hashes that are to the left of the colon.
Context: Write in the context of an update on delivery that has just been released and has new features and make it in the first person.
Tone: The tone should be warm and personal as writing to friends. As much as possible group the commit messages into a cohesive story rather than doubling up in multiple sentences on content.
For tone and style:
Rewrite this markdown blog post in the style of Hunter S Thompson Gonzo journalism writing for Rolling Stone magazine. Output the formatted markdown into a single code block:
Once ready output to markdown:
Turn this post into markdown and output in a code block:
To update metadata:
Increment this metadata to match the post in the exact same format, use the post to inform the description and lead summary which both should be identical. Update the timestamp to now.