|
35 | 35 | {% asset fonts.css %} |
36 | 36 | {% endif %} |
37 | 37 |
|
38 | | - {% if site.blog_theme == "light" %} |
39 | | - <link rel="icon" type="image/x-icon" href="{% asset favicon-light.ico @path %}"> |
40 | | - <link rel="apple-touch-icon" href="{% asset apple-touch-icon-light.png @path %}"> |
41 | | - <link rel="stylesheet" type="text/css" title="light" id="light" href="{% asset light.css @path%}"> |
42 | | - <link rel="stylesheet" type="text/css" title="dark" id="dark" href="{% asset dark.css @path%}" disabled="true"> |
| 38 | + {% if site.theme_toggle == true %} |
| 39 | + |
| 40 | + {% if site.blog_theme == "light" %} |
| 41 | + <link rel="icon" type="image/x-icon" href="{% asset favicon-light.ico @path %}"> |
| 42 | + <link rel="apple-touch-icon" href="{% asset apple-touch-icon-light.png @path %}"> |
| 43 | + <link rel="stylesheet" type="text/css" title="light" id="light" href="{% asset light.css @path%}"> |
| 44 | + <link rel="stylesheet" type="text/css" title="dark" id="dark" href="{% asset dark.css @path%}" disabled="true"> |
| 45 | + {% else %} |
| 46 | + <link rel="icon" type="image/x-icon" href="{% asset favicon-dark.ico @path %}"> |
| 47 | + <link rel="apple-touch-icon" href="{% asset apple-touch-icon-dark.png @path %}"> |
| 48 | + <link rel="stylesheet" type="text/css" title="light" id="light" href="{% asset light.css @path%}"> |
| 49 | + <link rel="stylesheet" type="text/css" title="dark" id="dark" href="{% asset dark.css @path%}" disabled="false"> |
| 50 | + {% endif %} |
| 51 | + |
43 | 52 | {% else %} |
44 | | - <link rel="icon" type="image/x-icon" href="{% asset favicon-dark.ico @path %}"> |
45 | | - <link rel="apple-touch-icon" href="{% asset apple-touch-icon-dark.png @path %}"> |
46 | | - <link rel="stylesheet" type="text/css" title="light" id="light" href="{% asset light.css @path%}"> |
47 | | - <link rel="stylesheet" type="text/css" title="dark" id="dark" href="{% asset dark.css @path%}" disabled="false"> |
| 53 | + |
| 54 | + {% if site.blog_theme == "light" %} |
| 55 | + <link rel="icon" type="image/x-icon" href="{% asset favicon-light.ico @path %}"> |
| 56 | + <link rel="apple-touch-icon" href="{% asset apple-touch-icon-light.png @path %}"> |
| 57 | + {% asset light.css %} |
| 58 | + {% else %} |
| 59 | + <link rel="icon" type="image/x-icon" href="{% asset favicon-dark.ico @path %}"> |
| 60 | + <link rel="apple-touch-icon" href="{% asset apple-touch-icon-dark.png @path %}"> |
| 61 | + {% asset dark.css %} |
| 62 | + {% endif %} |
| 63 | + |
48 | 64 | {% endif %} |
| 65 | + |
49 | 66 | </head> |
0 commit comments