Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: include page icons #15

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

joapuiib
Copy link
Contributor

@joapuiib joapuiib commented Feb 6, 2025

These changes allow including the page icon in the page title of an alias.

mkdocs.yml

plugins:
  - alias:
      use_page_icon: true

page.md

---
alias: page
title: Page title
icon: material/emoticon-happy 
---

example.md

[[page]]

Will render as:

[:material-emoticon-happy: Page title](page.md)

@EddyLuten
Copy link
Owner

This looks like a great addition! I'll review the PR and test it out myself once I have some time next week or the week after. Thanks for the contribution!

@EddyLuten EddyLuten self-assigned this Feb 14, 2025
@EddyLuten EddyLuten added the enhancement New feature or request label Feb 14, 2025
@EddyLuten
Copy link
Owner

LGTM 🚀

Thanks for the contribution!

@EddyLuten EddyLuten merged commit 8df1bc4 into EddyLuten:main Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants