jeawin-astro 3.0.84 → 3.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -90,6 +90,12 @@ export default defineIntegration({
|
|
|
90
90
|
prerender: true
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
+
injectRoute({
|
|
94
|
+
pattern: `${viteBase ? `${viteBase}/` : '/'}global.variable.js`,
|
|
95
|
+
entrypoint: resolve('./routes/global.variable.js.ts'),
|
|
96
|
+
prerender: true
|
|
97
|
+
});
|
|
98
|
+
|
|
93
99
|
if(options?.amp){
|
|
94
100
|
// AMP需要的文件
|
|
95
101
|
injectRoute({
|
package/src/layouts/Layout.astro
CHANGED
|
@@ -136,7 +136,8 @@ if (page_type == "category") {
|
|
|
136
136
|
<title>{`${seo_title}${sitename ? ` - ${sitename}` : ""}`}</title>
|
|
137
137
|
<meta name="keywords" content={seo_keywords} />
|
|
138
138
|
<meta name="description" content={seo_description} />
|
|
139
|
-
<meta name="author" content=
|
|
139
|
+
<meta name="author" content={`${sitename ? sitename : 'jeawin.com'}`} />
|
|
140
|
+
<meta name="generator" content="jeawin.com" />
|
|
140
141
|
<meta
|
|
141
142
|
name="theme-color"
|
|
142
143
|
content={render_value(siteinfo, "theme_color")}
|
|
@@ -188,7 +189,7 @@ if (page_type == "category") {
|
|
|
188
189
|
<link rel="canonical" href={render_url(canonical, base, null, url_suffix)} />
|
|
189
190
|
<Fragment set:html={ldjson} />
|
|
190
191
|
|
|
191
|
-
<link rel="sitemap" href=
|
|
192
|
+
<link rel="sitemap" href={`${base ? `${base}/` : '/'}sitemap.xml`} />
|
|
192
193
|
<link
|
|
193
194
|
rel="shortcut icon"
|
|
194
195
|
href={render_value(site_options, "favicon")}
|
|
@@ -201,15 +202,15 @@ if (page_type == "category") {
|
|
|
201
202
|
rel="alternate"
|
|
202
203
|
type="application/rss+xml"
|
|
203
204
|
title={render_value(site_options, "sitename")}
|
|
204
|
-
href=
|
|
205
|
+
href={`${base ? `${base}/` : '/'}rss.xml`}
|
|
205
206
|
/>
|
|
206
207
|
<link
|
|
207
208
|
rel="search"
|
|
208
209
|
type="application/opensearchdescription+xml"
|
|
209
210
|
title={render_value(site_options, "sitename")}
|
|
210
|
-
href=
|
|
211
|
+
href={`${base ? `${base}/` : '/'}opensearch.xml`}
|
|
211
212
|
/>
|
|
212
|
-
<link rel="manifest" href=
|
|
213
|
+
<link rel="manifest" href={`${base ? `${base}/` : '/'}manifest.json`} />
|
|
213
214
|
<style set:html={render_value(site_options, "customcss")} />
|
|
214
215
|
</Fragment>
|
|
215
216
|
)
|
|
@@ -275,13 +276,8 @@ if (page_type == "category") {
|
|
|
275
276
|
src="https://img.jeawincdn.com/resource/simple-scrollspy/tocbot.min.js"
|
|
276
277
|
async
|
|
277
278
|
defer></script>
|
|
278
|
-
<script is:inline
|
|
279
|
-
|
|
280
|
-
}}>
|
|
281
|
-
const jeawinFormJs = document.createElement("script");
|
|
282
|
-
jeawinFormJs.src = "https://img.jeawincdn.com/resource/js/form.js?v=20250529";
|
|
283
|
-
document.body.append(jeawinFormJs);
|
|
284
|
-
</script>
|
|
279
|
+
<script is:inline src={`${base ? `${base}/` : '/'}global.variable.js`}></script>
|
|
280
|
+
<script is:inline src="https://img.jeawincdn.com/resource/js/form.js?v=20250529" async defer></script>
|
|
285
281
|
<script
|
|
286
282
|
is:inline
|
|
287
283
|
src="https://img.jeawincdn.com/resource/js/lazysizes.min.js"
|