Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion common-theme/layouts/partials/block/issue.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

{{/* extract objectives */}}
{{ $extractedObjectives := partial "strings/extract-github-objectives.html" $response.body }}
{{/* remove "Learning Objectives" heading from remaining text */}}
{{ $strippedBody := replace $response.body "Learning Objectives" "" }}

{{ if gt (len $extractedObjectives) 0 }}
<details open class="c-block__objectives">
Expand All @@ -38,7 +40,7 @@ <h3 class="e-heading__4">Learning Objectives</h3>
</header>

<div class="c-block__content c-copy">
{{ $response.body | page.RenderString }}
{{ $strippedBody | page.RenderString }}
</div>
</section>
{{ end }}
Loading