Skip to content

Commit d13c287

Browse files
author
Falaleev Maxim
committed
disable css transaction for _menu, add preload headers
1 parent 5c3e188 commit d13c287

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

netlify.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
[context.production.environment]
22
HUGO_VERSION = "0.32"
3+
4+
[[headers]]
5+
for = "/*"
6+
[headers.values]
7+
Link = '''
8+
</build/css/app.css>; rel=preload; as=stylesheet, \
9+
</build/js/app.js>; rel=preload; as=stylesheet'''

themes/hugo-simple-doc/assets/src/css/block/_menu.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
&__link {
1818
font-size: 0.95em;
19-
transition: all 0.25s ease;
19+
transition: background-color 0.25s ease;
2020
text-decoration: none;
2121
color: #32536a;
2222
display: block;

0 commit comments

Comments
 (0)