Skip to content
Discussion options

You must be logged in to vote

Ok, so I got a custom override working for this functionality.

  1. add the status to mkdocs.yml as per normal:
extra:
  status:
    draft: Draft
  1. Add the custom status to frontmatter as per normal:
---
icon: material/microsoft-azure
status: draft
subtitle: Platform
tags:
  - Azure
---

This then adds a class to the status of md-status--NEWSTATUS. The default icon is set through the --md-status variable. We can update the svg within the new class in extra.css file.

/* ******************************************************** */
/* Customise Nav Status */
/* ******************************************************** */
.md-status--draft {
  --md-status: url('data:image/svg+xml;charset=utf-8,<svg…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@alexvoss
Comment options

@squidfunk
Comment options

@squidfunk
Comment options

@TJohnson93
Comment options

@alexvoss
Comment options

Answer selected by squidfunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants