validatedpatterns / docs

Validated Patterns documentation
https://validatedpatterns.io/
Apache License 2.0
9 stars 57 forks source link

Added Workshop to main nav menu #463

Closed danmacpherson closed 1 month ago

danmacpherson commented 1 month ago

@day0hero found out how to add menu items without needing to hardcode it into the templates:

https://gohugo.io/content-management/menus/

Basically there are two ways to add menu items:

  1. Add the menu to the menus param in the front matter of a top-level page, and then it automatically adds the item to the menu
  2. Manually define the menu items in the config.yaml file

For external links, you need to do method 2.

Luckily, you can mix both methods 1 and 2 together, so we can keep our existing structure, and just define an additional menu item. Have added the workshop after the Learn item. Down the track, we might look at migrating the content from the workshop site to the vp site. But for the moment, this should be a good temp solution.

I'll close #459 in favor of this PR, but give me a lgtm if everything looks good on your end.

mbaldessari commented 1 month ago

This is an automated message:

You can preview this docs PR at http://463.docs-pr.validatedpatterns.io Note that they get generated every five minutes, so please wait a bit.

mbaldessari commented 1 month ago

/lgtm

day0hero commented 1 month ago

/lgtm

day0hero commented 1 month ago

Thanks @danmacpherson for looking into this!