From b869da36fb2e8b7514c74cde8e4bdf51406ec99d Mon Sep 17 00:00:00 2001 From: st1020 Date: Thu, 22 May 2025 21:24:19 +0800 Subject: [PATCH] feat: only preload avatar and social icon in home page --- templates/partials/head.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/partials/head.html b/templates/partials/head.html index 136c4e5..1602027 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -78,14 +78,16 @@ } - {% 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) %} {% if config.extra.profile.avatar_url %} {% endif %} - {% 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 %}