Skip to content

Commit 17a015a

Browse files
authored
Merge pull request #90 from layer5io/exam
start tracking orgId in test
2 parents 7675032 + 064993b commit 17a015a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

layouts/partials/title.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
{{- $title := $page.Title -}}
44

5+
{{/*
56
{{- if eq $page.Type "test" -}}
67
{{- $title = partial "test/title.html" $page -}}
78
{{- end -}}
9+
*/}}
810

911
{{- return $title -}}

layouts/test/single.json.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{{ $p := .Params }}
22

33
{{- $prerequisites := partial "test/collect-prerequisites.html" . -}}
4-
4+
{{- $ctx := partial "resolve-tenant.html" . -}}
5+
{{- $orgId := $ctx.uuid -}}
56

67
{
78
"id": {{ partial "id.html" . | jsonify }},
89
"title": {{ partial "test/title.html" . | jsonify }},
10+
"org_id": {{ $orgId | jsonify }},
911
"final": {{ partial "test/is-final.html" . | jsonify }},
1012
"description": {{ .Content | plainify | jsonify }},
1113
"slug": {{ .Slug | jsonify }},

0 commit comments

Comments
 (0)