Skip to content

Commit e80a7a8

Browse files
authored
Merge pull request #542 from googlecodelabs/category-dimension
Render categories to google-codelab's category attribute.
2 parents 6d849d6 + 0607357 commit e80a7a8

File tree

2 files changed

+311
-299
lines changed

2 files changed

+311
-299
lines changed

claat/render/template-devsite.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
id="{{.Meta.ID}}"
5555
title="{{.Meta.Title}}"
5656
environment="{{index .Env}}"
57+
category="{{range $index, $cat := .Meta.Categories}}{{if $index}},{{end}}{{$cat}}{{end}}"
5758
feedback-link="{{.Meta.Feedback}}"
5859
{{if $.Meta.BadgePath}}badge-path="{{$.Meta.BadgePath}}"{{end}}>
5960
{{range $i, $e := .Steps}}{{if matchEnv .Tags $.Env}}

0 commit comments

Comments
 (0)