mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Make icon plugin more strict (#33562)
This commit is contained in:
parent
69d098bce1
commit
77d6816045
@ -13,7 +13,7 @@ module Jekyll
|
||||
#{args}
|
||||
|
||||
Valid syntax:
|
||||
{% icon "<icon>" %}
|
||||
{% icon "<icon-set>:<icon-name>" %}
|
||||
MSG
|
||||
end
|
||||
end
|
||||
@ -24,7 +24,7 @@ module Jekyll
|
||||
|
||||
private
|
||||
|
||||
SYNTAX = %r!^"(.+?)"$!.freeze
|
||||
SYNTAX = %r!^"([a-z0-9]+(?:-[a-z0-9]+)*:[a-z0-9]+(?:-[a-z0-9]+)*)"$!.freeze
|
||||
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:
|
||||
|
||||
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**.
|
||||
|
Loading…
x
Reference in New Issue
Block a user