matcornic / matcornic/hugo-theme-learn

[Shortcode] Set an "Expand" item open by default

Open
#69 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
HTML
Stars
1.6k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Hello,

It would be nice to have hability to set "expand" item open by default.

By example:

```
{{%expand "Open by default?" true %}}Yes!{{% /expand%}}
```

```
{{%expand "Open by default?" false %}}No!{{% /expand%}}
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Hugo expand shortcode entry point and inspect how its arguments control the rendered item state. Render the two examples from the issue; done means the true form is open by default and the false form remains closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
hugo
Domain
web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.