Background
In Customized Archetype for This Site, I was using
{{ slicestr .Name 11 | humanize | title }}
in the title
attribute in my site’s archetypes/default.md
, so that the first
11 characters (YYYY-MM-DD-
) would be taken out if I type this command.
$ hugo new post/$(date -I)-<MY_POST_TITLE>.md
In practice, <MY_POST_TITLE>
can be replaced to any title, like
my-post-title
.
Problem
I wanted to create my IntelliJ cheatsheet, so I typed this command.
[Read More]