1
0
Fork 0

add icons preload

This commit is contained in:
nanxiaobei 2021-08-22 08:36:17 +08:00
parent 7825dce524
commit 6fbef83856

View file

@ -30,8 +30,17 @@
<!-- Preload --> <!-- Preload -->
<link rel="preload" as="image" href="{{ `theme.png` | absURL }}"> <link rel="preload" as="image" href="{{ `theme.png` | absURL }}">
{{ if site.Params.twitter }}
<link rel="preload" as="image" href="{{ `twitter.svg` | absURL }}">
{{ end }}
{{ if site.Params.github }}
<link rel="preload" as="image" href="{{ `github.svg` | absURL }}">
{{ end }}
{{ if site.Params.instagram }}
<link rel="preload" as="image" href="{{ `instagram.svg` | absURL }}">
{{ end }}
<!-- Favicons --> <!-- Favicon -->
<link rel="icon" href="{{ `favicon.ico` | absURL }}"> <link rel="icon" href="{{ `favicon.ico` | absURL }}">
<link rel="apple-touch-icon" href="{{ `apple-touch-icon.png` | absURL }}"> <link rel="apple-touch-icon" href="{{ `apple-touch-icon.png` | absURL }}">