Skip to content

Commit

Permalink
Make embed instructions closed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed May 28, 2024
1 parent 47690dd commit 5220fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/shxco/layouts/article/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ <h3>{{ $figure.title }}</h3>
{{- end -}}

<hr/>
<details id="embed" open>
<summary>How to embed these figures</summary>
<details id="embed">
<summary>How to embed {{ if eq 1 (len (.Params.figures)) }} this figure {{ else }} these figures{{ end }}</summary>
{{ $css := partial "figure/styles.css" . }} {{/* styles for display when embedding; output as string */}}
{{ transform.Highlight (printf "%s\n" $css ) "css" }}

Expand Down

0 comments on commit 5220fb3

Please sign in to comment.