RSS API 地址全部收敛到 hugo.toml [params.rssapi],切到 api.200181.xyz
Deploy to Production / pre-check (push) Successful in 2m0s
Deploy to Production / build (push) Successful in 9m9s
Deploy to Production / deploy-edgeone (push) Successful in 4m3s
Deploy to Production / finalize (push) Successful in 29s
Deploy to Production / notify-failure (push) Skipped
Deploy to Production / pre-check (push) Successful in 2m0s
Deploy to Production / build (push) Successful in 9m9s
Deploy to Production / deploy-edgeone (push) Successful in 4m3s
Deploy to Production / finalize (push) Successful in 29s
Deploy to Production / notify-failure (push) Skipped
- 新增 [params.rssapi] base 配置,主题 7 处硬编码改为读配置: head(preconnect+window.rssApiBase)、footer(构建时拉 links/feeds)、 render-link(favicon)、circles/links 页 fetch、linkify.js(读 window.rssApiBase) - scripts/fetch_greetings.js 支持 RSS_API_BASE 环境变量,默认新地址 - scfapi.usj.cc(国内代理)保持不变
This commit is contained in:
1 parent
be5abce16a
commit
20869a3c45
8 files changed
+16
-8
No files matched your search
@@ -10,7 +10,7 @@
|
||||
</video>
|
||||
{{- else if $isExternal -}}
|
||||
{{- $domain := urls.Parse $url -}}
|
||||
{{- $faviconUrl := printf "https://api.usj.cc/api/favicon?url=%s" $domain.Host -}}
|
||||
{{- $faviconUrl := printf "%s/api/favicon?url=%s" (site.Params.rssapi.base | default "https://api.200181.xyz") $domain.Host -}}
|
||||
{{- if $isBareUrl -}}
|
||||
<a class="link-card" href="/tiaozhuan.html?target={{ $url | base64Encode }}" target="_blank" rel="noopener">
|
||||
<img class="link-card-icon" src="{{ $faviconUrl }}" alt="" loading="lazy" onerror="this.src='/image/avatar/tx7.jpg';this.onerror=null;">
|
||||
|
||||
Reference in new issue
Block a user