Feature: include page icons #15

Merged
joapuiib merged 1 commit from feature/include_page_icons into main 2025-02-21 05:33:40 +01:00
joapuiib commented 2025-02-06 10:06:44 +01:00 (Migrated from github.com)

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)
These changes allow including the [page icon](https://squidfunk.github.io/mkdocs-material/reference/?h=page+icon#setting-the-page-icon) in the page title of an alias. __mkdocs.yml__ ```yaml plugins: - alias: use_page_icon: true ``` __page.md__ ```md --- alias: page title: Page title icon: material/emoticon-happy --- ``` __example.md__ ```md [[page]] ``` Will render as: ```md [:material-emoticon-happy: Page title](page.md) ```
EddyLuten commented 2025-02-14 06:22:03 +01:00 (Migrated from github.com)

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!

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 commented 2025-02-21 05:33:29 +01:00 (Migrated from github.com)

LGTM 🚀

Thanks for the contribution!

LGTM :rocket: Thanks for the contribution!
Sign in to join this conversation.
No description provided.