mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 13:21:35 +01:00
feat: only preload avatar and social icon in home page
This commit is contained in:
parent
982a25173e
commit
b869da36fb
1 changed files with 4 additions and 2 deletions
|
|
@ -78,14 +78,16 @@
|
|||
}
|
||||
</style>
|
||||
|
||||
{% if section.path is defined and section.path == "/" %}
|
||||
{% if section.path is defined and section.path == "/" and (paginator is undefined or
|
||||
paginator.current_index == 1) %}
|
||||
<!-- Avatar -->
|
||||
{% if config.extra.profile.avatar_url %}
|
||||
<link rel="preload" as="image" href="{{ get_url(path=config.extra.profile.avatar_url) }}" />
|
||||
{% endif %}
|
||||
|
||||
<!-- Social List -->
|
||||
{% if config.extra.profile.social %}
|
||||
{% if config.extra.profile.social and section.path == "/" and (paginator is undefined or
|
||||
paginator.current_index == 1) %}
|
||||
<!---->
|
||||
{% for social in config.extra.profile.social %}
|
||||
<link rel="preload" as="image" href="{{ macros::get_social_icon(icon=social.name) }}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue