jeawin-astro 3.0.83 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeawin-astro",
3
- "version": "3.0.83",
3
+ "version": "3.0.85",
4
4
  "author": "chaegumi <chaegumi@qq.com>",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@ let class1 = [
15
15
  "inline-flex",
16
16
  "gap-2",
17
17
  "items-center",
18
- "bg-[var(--themeColor700)]",
18
+ "bg-[var(--themeColor)]",
19
19
  "hover:bg-[var(--themeColor)]/90",
20
20
  "focus:outline-hidden",
21
21
  "focus:ring",
@@ -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({
@@ -0,0 +1,8 @@
1
+ import type {APIRoute} from "astro";
2
+ export const GET:APIRoute = ({site, locals}) => {
3
+ return new Response(`const SITE_LANGUAGE = '${locals.siteinfo.language_id}';`, {
4
+ headers: {
5
+ "Content-Type": "application/javascript"
6
+ }
7
+ });
8
+ }
@@ -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="jeawin.com" />
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="/sitemap.xml" />
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="/rss.xml"
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="/opensearch.xml"
211
+ href={`${base ? `${base}/` : '/'}opensearch.xml`}
211
212
  />
212
- <link rel="manifest" href="/manifest.json" />
213
+ <link rel="manifest" href={`${base ? `${base}/` : '/'}manifest.json`} />
213
214
  <style set:html={render_value(site_options, "customcss")} />
214
215
  </Fragment>
215
216
  )
@@ -259,7 +260,7 @@ if (page_type == "category") {
259
260
  }}
260
261
  >
261
262
  a {
262
- color: var(--themeColor700);
263
+ color: var(--themeColor);
263
264
  }
264
265
  a:hover {
265
266
  text-decoration: underline;
@@ -275,11 +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
279
- is:inline
280
- src="https://img.jeawincdn.com/resource/js/form.js"
281
- async
282
- defer></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>
283
281
  <script
284
282
  is:inline
285
283
  src="https://img.jeawincdn.com/resource/js/lazysizes.min.js"