diff --git a/common-theme/layouts/partials/block/data.html b/common-theme/layouts/partials/block/data.html index 8c02b0164..5b3fdcb42 100644 --- a/common-theme/layouts/partials/block/data.html +++ b/common-theme/layouts/partials/block/data.html @@ -29,6 +29,7 @@ {{ .Scratch.SetInMap "blockData" "hasBlocks" .hasBlocks| default "" }} {{/* Override any block time */}} {{ .Scratch.SetInMap "blockData" "time" .time | default "" }} +{{ .Scratch.SetInMap "blockData" "pageLayout" $pageRef.Page.Params.layout}} {{/* Now let's do our headers */}} {{ $headers := partial "github-auth.html" }} diff --git a/common-theme/layouts/partials/block/local.html b/common-theme/layouts/partials/block/local.html index 51eab29d1..374e67af0 100644 --- a/common-theme/layouts/partials/block/local.html +++ b/common-theme/layouts/partials/block/local.html @@ -46,5 +46,8 @@

🗂️ Options

{{ end }} {{ end }} + {{ if isset $block.Params "objectives" }} + {{ partial "review-objectives.html" $blockData }} + {{ end }} diff --git a/common-theme/layouts/partials/block/readme.html b/common-theme/layouts/partials/block/readme.html index 68952af58..e7c91d50b 100644 --- a/common-theme/layouts/partials/block/readme.html +++ b/common-theme/layouts/partials/block/readme.html @@ -63,5 +63,8 @@

🗂️ Related

{{ end }} {{ end }} + {{ if gt (len $extractedObjectives) 0 }} + {{ partial "review-objectives.html" $blockData }} + {{ end }} {{ end }} diff --git a/common-theme/layouts/partials/review-objectives.html b/common-theme/layouts/partials/review-objectives.html new file mode 100644 index 000000000..df4f1f5e0 --- /dev/null +++ b/common-theme/layouts/partials/review-objectives.html @@ -0,0 +1,4 @@ +{{ if eq .pageLayout "day-plan" }} +

Review

+Look back over the objectives of this activity - check you've met them all. If you haven't, make sure you have a plan for how to achieve them - maybe checking in with a volunteer or a fellow trainee could help? +{{ end }}