Chase to main content
  1. Licks, Barks, Howls n Growls from April/

Multilanguage archetypes

Stuff I think is interesting, cool, or otherwise worth sharing™️.

Categories: ’enumerate’ ‘categories’ ‘you’ ‘use’ ‘here’

Tags: ’emumerate’ ‘your’ ‘oft’ ‘used’ ’tags’ ‘here’

hugo new 2024/April/2024-04-00-Example-Name.brk.md --kind brk/wplblog hugo new 2024/April/2024-04-00-Example-Name.md --kind wplblog

or… to save on postage

title=hugo-tips; K=wplblog; PFX="date +%Y/%B/%Y-%m-%d-${title}" ; hugo new ${PFX}.md –kind ${K} && hugo new ${PFX}.brk.md –kind brk/${K}


then, you'll have an easy near-one-liner to adapt for any style of post.

Set the environment var `title` in the first bit;
and the variable K to the `kind` which aligns with the filename in your archetypes folder.
then iterate through the 'default' lang, and any other language you want to generate content for.

There's likely a better way to do this that I'm just not aware of yet.

```shell
Git_Repos/Wolfspyre.com/docker/blogsite (wpl_main)$ title=Hugo-Tips; K=wplblog; PFX="`date +%Y/%B/%Y-%m-%d-`${title}" ;hugo new  ${PFX}.md --kind ${K} && hugo new ${PFX}.brk.md --kind brk/${K}
Content "/Users/loiosh/NextCloud/Git_Repos/Wolfspyre.com/docker/blogsite/content/2024/April/2024-04-11-Hugo-Tips.md" created
Content "/Users/loiosh/NextCloud/Git_Repos/Wolfspyre.com/docker/blogsite/content/2024/April/2024-04-11-Hugo-Tips.brk.md" created

edit, post, repeat.