mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 05:41:31 +00:00
Normalized attribute name in HTML
Add prefix `data-` for following attributes: - `topbar-visible` - `mode` - `label-text` - `title-succeed`
This commit is contained in:
@@ -9,7 +9,7 @@ layout: compress
|
||||
|
||||
{% capture prefer_mode %}
|
||||
{% if site.theme_mode %}
|
||||
mode="{{ site.theme_mode }}"
|
||||
data-mode="{{ site.theme_mode }}"
|
||||
{% endif %}
|
||||
{% endcapture %}
|
||||
|
||||
@@ -21,7 +21,7 @@ layout: compress
|
||||
{% include mode-toggle.html %}
|
||||
{% endunless %}
|
||||
|
||||
<body data-spy="scroll" data-target="#toc" topbar-visible="true">
|
||||
<body data-spy="scroll" data-target="#toc" data-topbar-visible="true">
|
||||
|
||||
{% include sidebar.html %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user