Material For MkDocs - Tags
You can manually add tags by adding the following to the top of your page:
For automatically tagging pages based on their path or file name, I wrote the auto-tag plugin.
Make sure to add the tags plugin to your mkdocs.yml:
If you want a page that lists all tags and what pages have it assigned, you can set the tags_file option:
... and then use the TAGS placeholder surrounded by curly brackets (like [TAGS ] but without the space) where the plugin should insert the list.
Custom icons
You can also style each tag with a icon by adding the following to your mkdocs.yml:
theme:
name: material
icon:
tag:
author: octicons/person-fill-24
plugin: material/puzzle
extra:
tags:
Plugin: plugin
"Written by me": author
This gives the tag Written by me the icon octicons/person-fill-24 and Plugin the icon material/puzzle. You can find valid icons using the search at https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/#logo-icon-bundled. You can open it by clicking the + icon in the first listing (after logo: material/library).
Tag listing example
- MkDocs plugins
- auto-tag
- awesome pages
- Backlinks
- badges
- encrypt_source
- extract_listings
- Plugins - Internal Links
- minify
- pagetree
- placeholder
- remove_sections
- spellcheck
- toggle-sidebar
- vercel-pw
- Material for MkDocs
- Check for real IP addresses and host names
- Dependency pinning
- MkDocs in Docker
- Download option
- MkDocs quickstart
- Vercel CI/CD
Backlinks
The following pages link to this page: