Extending the theme from a site
· 1 min read
Series: Theme tour
Table of contents

Everything on this page beyond plain Markdown comes from the example site, not the theme: two shortcodes and two hook partials. It doubles as a test that such site code keeps working with the theme.
Hooks
A hook is a partial the theme calls if the site provides it.
head-endadds the flash card stylesheet, only on pages that use the cardssingle-after-contentadds the video below this text- it reads the
youtubevalue from the front matter - the player loads only after a click
- it reads the
Shortcodes
Series banner
The banner above is a linked, responsive image built from a global asset.
Flash cards
- The deck is a native
<details>element - Each card flips with a checkbox, so no JavaScript is involved