Skip to content

Commit c456243

Browse files
authored
update backlog issue presentation (#1705)
Removes a redundant heading element from issue text
1 parent df9c75b commit c456243

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common-theme/layouts/partials/block/issue.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

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

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

4042
<div class="c-block__content c-copy">
41-
{{ $response.body | page.RenderString }}
43+
{{ $strippedBody | page.RenderString }}
4244
</div>
4345
</section>
4446
{{ end }}

0 commit comments

Comments
 (0)