Skip to content

Commit 692a543

Browse files
authored
Default Learning Objectives to open (#1656)
A lot of people don't realise these are expandable. Focusing on learning objectives is really important, let's put them in people's faces.
1 parent 27d3518 commit 692a543

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

common-theme/layouts/_default/block-viewer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2>{{ .Title }} block viewer</h2>
3939
{{ partial "time.html" . }}
4040
</header>
4141
{{ with .Params.Objectives }}
42-
<details>
42+
<details open>
4343
<summary>
4444
<h3 class="e-heading__5">Learning Objectives</h3>
4545
</summary>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{{ $extractedObjectives := partial "strings/extract-github-objectives.html" $response.body }}
2727

2828
{{ if gt (len $extractedObjectives) 0 }}
29-
<details class="c-block__objectives">
29+
<details open class="c-block__objectives">
3030
<summary>
3131
<h3 class="e-heading__4">Learning Objectives</h3>
3232
</summary>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{ partial "time.html" . }}
2020
</header>
2121
{{ if or $block.Params.Objectives $block.Params.Tasks }}
22-
<details>
22+
<details open>
2323
<summary><h3 class="e-heading__5">Learning Objectives</h3></summary>
2424
{{ with $block.Params.Objectives }}
2525
{{ partial "objectives/block.html" . }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
role="tabpanel"
5757
aria-labelledby="tab-label-intro">
5858
{{ with .Params.Objectives }}
59-
<details class="c-objectives">
59+
<details open class="c-objectives">
6060
<summary>
6161
<h3 class="c-objectives__title e-heading__5">
6262
Learning Objectives

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</header>
3131
{{ $extractedObjectives := partial "strings/extract-github-objectives.html" $decodedContent }}
3232
{{ if gt (len $extractedObjectives) 0 }}
33-
<details>
33+
<details open>
3434
<summary><h3 class="e-heading__5">Learning Objectives</h3></summary>
3535
{{ range $extractedObjectives }}
3636
{{ . | page.RenderString }}

0 commit comments

Comments
 (0)