diff --git a/themes/Ying/layouts/page/comment.html b/themes/Ying/layouts/page/comment.html
index ec0d647b..4ef1f1ba 100644
--- a/themes/Ying/layouts/page/comment.html
+++ b/themes/Ying/layouts/page/comment.html
@@ -8,7 +8,6 @@
- 名称:{{ .Site.Params.message_info.name | default .Site.Params.artalk.site }}
- 简介:{{ .Site.Params.message_info.description | default .Site.Params.author.description }}
- 链接:{{ .Site.Params.message_info.url | default .Site.BaseURL }}
- - 订阅:{{ "rss.xml" | absURL }}
- 图标:{{ .Site.Params.message_info.icon | default .Site.Params.author.avatar }}
diff --git a/themes/Ying/layouts/partials/footer.html b/themes/Ying/layouts/partials/footer.html
index 009094f8..4879ef4a 100644
--- a/themes/Ying/layouts/partials/footer.html
+++ b/themes/Ying/layouts/partials/footer.html
@@ -78,23 +78,22 @@
{{/* Fetch friend data at build time — no runtime network requests */}}
{{ $linkHosts := slice }}
{{ $linkNames := slice }}
-{{ with resources.GetRemote "https://api.usj.cc/api/links?all=1" }}
- {{ with .Err }}
- {{ warnf "Links API fetch failed: %s" . }}
- {{ else }}
- {{ with .Content | transform.Unmarshal }}
- {{ range .links }}
- {{ $host := "" }}
- {{ with .url | urls.Parse }}
- {{ $host = .Host | strings.TrimPrefix "www." }}
- {{ end }}
- {{ $title := .name | default "" }}
- {{ if $host }}
- {{ $linkHosts = $linkHosts | append (dict "host" $host "title" $title) }}
- {{ end }}
- {{ if $title }}
- {{ $linkNames = $linkNames | append (dict "lower" (lower $title) "title" $title) }}
- {{ end }}
+{{ $linksResult := try (resources.GetRemote "https://api.usj.cc/api/links?all=1") }}
+{{ if $linksResult.Err }}
+ {{ warnf "Links API fetch failed: %s" $linksResult.Err }}
+{{ else }}
+ {{ with $linksResult.Value | transform.Unmarshal }}
+ {{ range .links }}
+ {{ $host := "" }}
+ {{ with .url | urls.Parse }}
+ {{ $host = .Host | strings.TrimPrefix "www." }}
+ {{ end }}
+ {{ $title := .name | default "" }}
+ {{ if $host }}
+ {{ $linkHosts = $linkHosts | append (dict "host" $host "title" $title) }}
+ {{ end }}
+ {{ if $title }}
+ {{ $linkNames = $linkNames | append (dict "lower" (lower $title) "title" $title) }}
{{ end }}
{{ end }}
{{ end }}
@@ -105,23 +104,22 @@
{{ $feedHosts := slice }}
{{ $feedNames := slice }}
-{{ with resources.GetRemote "https://api.usj.cc/api/feeds" }}
- {{ with .Err }}
- {{ warnf "Feeds API fetch failed: %s" . }}
- {{ else }}
- {{ with .Content | transform.Unmarshal }}
- {{ range .feeds }}
- {{ $host := "" }}
- {{ with .url | urls.Parse }}
- {{ $host = .Host | strings.TrimPrefix "www." }}
- {{ end }}
- {{ $title := .feedTitle | default "" }}
- {{ if $host }}
- {{ $feedHosts = $feedHosts | append (dict "host" $host "title" $title) }}
- {{ end }}
- {{ if $title }}
- {{ $feedNames = $feedNames | append (dict "lower" (lower $title) "title" $title) }}
- {{ end }}
+{{ $feedsResult := try (resources.GetRemote "https://api.usj.cc/api/feeds") }}
+{{ if $feedsResult.Err }}
+ {{ warnf "Feeds API fetch failed: %s" $feedsResult.Err }}
+{{ else }}
+ {{ with $feedsResult.Value | transform.Unmarshal }}
+ {{ range .feeds }}
+ {{ $host := "" }}
+ {{ with .url | urls.Parse }}
+ {{ $host = .Host | strings.TrimPrefix "www." }}
+ {{ end }}
+ {{ $title := .feedTitle | default "" }}
+ {{ if $host }}
+ {{ $feedHosts = $feedHosts | append (dict "host" $host "title" $title) }}
+ {{ end }}
+ {{ if $title }}
+ {{ $feedNames = $feedNames | append (dict "lower" (lower $title) "title" $title) }}
{{ end }}
{{ end }}
{{ end }}