mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Make icon plugin more strict (#33562)
This commit is contained in:
parent
69d098bce1
commit
77d6816045
@ -13,7 +13,7 @@ module Jekyll
|
|||||||
#{args}
|
#{args}
|
||||||
|
|
||||||
Valid syntax:
|
Valid syntax:
|
||||||
{% icon "<icon>" %}
|
{% icon "<icon-set>:<icon-name>" %}
|
||||||
MSG
|
MSG
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -24,7 +24,7 @@ module Jekyll
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
SYNTAX = %r!^"(.+?)"$!.freeze
|
SYNTAX = %r!^"([a-z0-9]+(?:-[a-z0-9]+)*:[a-z0-9]+(?:-[a-z0-9]+)*)"$!.freeze
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -112,7 +112,7 @@ In [sections view](/dashboards/sections/), you can resize cards. Follow these st
|
|||||||
|
|
||||||
If you previously [resized](#resizing-a-card) a card in the [sections view](/dashboards/sections/), and you don't like the new size, you can revert back to the card's default size. Follow these steps:
|
If you previously [resized](#resizing-a-card) a card in the [sections view](/dashboards/sections/), and you don't like the new size, you can revert back to the card's default size. Follow these steps:
|
||||||
|
|
||||||
1. On the **Layout** tab, select the {% icon "mdi-restore" %} icon.
|
1. On the **Layout** tab, select the {% icon "mdi:restore" %} icon.
|
||||||

|

|
||||||
|
|
||||||
2. Select **Save**.
|
2. Select **Save**.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user