From 6383bdad881378f086fcd20914d7426717464ee9 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 13 Jul 2022 01:13:59 -0400 Subject: README.md: document go-import support --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 42cf3cc..5415159 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,20 @@ To add a new article: Update `data/projects.yaml` and then run `bin/gen-projects.rb`. +**Note:** If you want to add [Go][] module, you can set the `type` of +the entry to `go`, like so: + + - name: "example-go-mod" + type: "go" + slug: "example-go-mod" + repo: "https://github.com/pablotron/example-go-mod" + text: "Example Go module." + +Adding a `type: go` property in `data/projects.yaml` adds a `go_import` +property to the project front matter, which adds a `` element to the header of the generated +page. + ## Edit Navbar Menu To add or edit navbar menu entries: -- cgit v1.2.3