@compiiile/compiiile 2.2.0 → 2.2.2
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/.compiiile/src/layouts/BaseLayout.astro +4 -2
- package/.compiiile/src/layouts/WorkspaceLayout.astro +2 -2
- package/.compiiile/src/style/slides.scss +4 -0
- package/.compiiile/src/style/texts.scss +0 -3
- package/bin/cli.js +0 -1
- package/bin/config.js +7 -2
- package/dist/style.css +1 -1
- package/package.json +5 -6
|
@@ -11,6 +11,8 @@ if(!siteBase.endsWith("/")){
|
|
|
11
11
|
}
|
|
12
12
|
const faviconBaseUrl = `${ siteBase }favicon.png`
|
|
13
13
|
const faviconAbsoluteUrl = `${ siteUrl }/${ faviconBaseUrl }`
|
|
14
|
+
|
|
15
|
+
const metaDescription = description || site.description
|
|
14
16
|
---
|
|
15
17
|
|
|
16
18
|
<html lang="en">
|
|
@@ -20,13 +22,13 @@ const faviconAbsoluteUrl = `${ siteUrl }/${ faviconBaseUrl }`
|
|
|
20
22
|
<link rel="icon" type="image/png" href={ faviconBaseUrl }/>
|
|
21
23
|
{isNotFoundPage ? '' :
|
|
22
24
|
<SEO title={title}
|
|
23
|
-
description={
|
|
25
|
+
description={metaDescription}
|
|
24
26
|
titleTemplate={titleTemplate}
|
|
25
27
|
openGraph={{
|
|
26
28
|
basic: {
|
|
27
29
|
title: title,
|
|
28
30
|
type: "website",
|
|
29
|
-
description:
|
|
31
|
+
description: metaDescription,
|
|
30
32
|
image: faviconAbsoluteUrl,
|
|
31
33
|
}
|
|
32
34
|
}}
|
|
@@ -4,7 +4,7 @@ import TopBar from "../components/layout/TopBar.vue";
|
|
|
4
4
|
import NavBar from "../components/layout/navBar/NavBar.vue";
|
|
5
5
|
import ClientScript from "../components/ClientScript.vue";
|
|
6
6
|
|
|
7
|
-
const { title, description } = Astro.props
|
|
7
|
+
const { title, description, isNotFoundPage } = Astro.props
|
|
8
8
|
let currentPath = Astro.url.pathname
|
|
9
9
|
if(currentPath.length > 1 && currentPath.endsWith("/")){
|
|
10
10
|
currentPath = currentPath.slice(0, -1)
|
|
@@ -12,7 +12,7 @@ if(currentPath.length > 1 && currentPath.endsWith("/")){
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
<BaseLayout title={ title } description={ description } isNotFoundPage={
|
|
15
|
+
<BaseLayout title={ title } description={ description } isNotFoundPage={ isNotFoundPage }>
|
|
16
16
|
<div class="page">
|
|
17
17
|
<TopBar client:load />
|
|
18
18
|
|
package/bin/cli.js
CHANGED
package/bin/config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { build, dev, preview } from "astro"
|
|
2
2
|
import vue from "@astrojs/vue"
|
|
3
|
+
import { passthroughImageService } from "astro/config"
|
|
3
4
|
import compiiile from "./vitePluginCompiiile/index.js"
|
|
4
5
|
import mdx from "@astrojs/mdx"
|
|
5
6
|
import path from "node:path"
|
|
@@ -103,6 +104,9 @@ const astroConfig = {
|
|
|
103
104
|
devToolbar: {
|
|
104
105
|
enabled: false
|
|
105
106
|
},
|
|
107
|
+
image: {
|
|
108
|
+
service: passthroughImageService()
|
|
109
|
+
},
|
|
106
110
|
...(configFromFile.astroConfig ?? {})
|
|
107
111
|
}
|
|
108
112
|
|
|
@@ -123,14 +127,15 @@ const run = async (astroConfig) => {
|
|
|
123
127
|
|
|
124
128
|
const devServer = await dev(astroConfig)
|
|
125
129
|
devServer.watcher.add([source])
|
|
130
|
+
return devServer
|
|
126
131
|
} else if (IS_BUILD) {
|
|
127
132
|
process.env.NODE_ENV = NODE_ENV_PRODUCTION
|
|
128
133
|
|
|
129
|
-
await build(astroConfig)
|
|
134
|
+
return await build(astroConfig)
|
|
130
135
|
} else if (IS_PREVIEW) {
|
|
131
136
|
process.env.NODE_ENV = NODE_ENV_PRODUCTION
|
|
132
137
|
|
|
133
|
-
await preview(astroConfig)
|
|
138
|
+
return await preview(astroConfig)
|
|
134
139
|
}
|
|
135
140
|
}
|
|
136
141
|
|