Skip to content

About

Quarto Extension for mobile-friendly listing category filters.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Quarto Mobile Categories Extension

When enabled, Quarto's category page filters display in the right margin on desktop, but are hidden by default on mobile.

This extension allows you to embed a category filter as an inline drop-down for mobile view.

Prerequisites

Install

quarto add beck-chan/quarto-mobile-categories

Usage

Add the filter to the YAML frontmatter on a .qmd file or your top-level _quarto.yml:

filters:
  - mobile-categories

Example

Appears on any page with listings and categories: true enabled.

---
listing:
  - id: posts
    contents: "posts"
    categories: true
filters:
  - mobile-categories
---

::: {.posts}
:::

Extra classes on the div are preserved if you want to style the embed in your theme:

::: {.mobile-categories .my-filter-styles}
:::

Reference

Class Notes
.mobile-categories Required fenced-div class that becomes the dropdown

Support

If you liked this extension and found it useful, please consider donating via Ko-fi: https://ko-fi.com/beckchan

About

Quarto Extension for mobile-friendly listing category filters.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages