@compiiile/compiiile 2.2.1 → 2.2.3

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.
@@ -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={description}
25
+ description={metaDescription}
24
26
  titleTemplate={titleTemplate}
25
27
  openGraph={{
26
28
  basic: {
27
29
  title: title,
28
30
  type: "website",
29
- description: 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={ true }>
15
+ <BaseLayout title={ title } description={ description } isNotFoundPage={ isNotFoundPage }>
16
16
  <div class="page">
17
17
  <TopBar client:load />
18
18
 
@@ -1,3 +1,7 @@
1
+ :root {
2
+ --r-code-font: "JetBrains Mono Variable", monospace;
3
+ }
4
+
1
5
  .reveal {
2
6
  height: 100vh;
3
7
  width: 100vw;
@@ -83,3 +83,7 @@ body {
83
83
  stroke: currentColor;
84
84
  }
85
85
  }
86
+
87
+ .hidden {
88
+ visibility: hidden;
89
+ }
@@ -29,7 +29,7 @@ export default function rehypeImagePlugin() {
29
29
  const parsedAltValue = processImageNode(node.properties?.alt)
30
30
  if (parsedAltValue) {
31
31
  node.properties.style = buildImageStyleAttribute(parsedAltValue)
32
- node.properties.alt = parsedAltValue.altValue
32
+ node.properties.alt = parsedAltValue.altValue ?? node.properties?.alt
33
33
  }
34
34
  }
35
35
  })
@@ -43,7 +43,7 @@ export default function rehypeImagePlugin() {
43
43
  type: "mdxJsxAttribute",
44
44
  value: buildImageStyleAttribute(parsedAltValue)
45
45
  })
46
- alt.value = parsedAltValue.altValue
46
+ alt.value = parsedAltValue.altValue ?? alt?.value
47
47
  }
48
48
  }
49
49
  })