@farming-labs/astro-theme 0.1.47 → 0.1.49

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": "@farming-labs/astro-theme",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "Astro UI components for @farming-labs/docs — layout, sidebar, TOC, search, and theme toggle",
5
5
  "keywords": [
6
6
  "astro",
@@ -109,8 +109,8 @@
109
109
  },
110
110
  "dependencies": {
111
111
  "sugar-high": "^0.9.5",
112
- "@farming-labs/docs": "0.1.47",
113
- "@farming-labs/astro": "0.1.47"
112
+ "@farming-labs/docs": "0.1.49",
113
+ "@farming-labs/astro": "0.1.49"
114
114
  },
115
115
  "peerDependencies": {
116
116
  "astro": ">=4.0.0"
@@ -1,5 +1,4 @@
1
1
  ---
2
- import { resolveReadingTimeOptions } from "@farming-labs/docs";
3
2
  import DocsPage from "./DocsPage.astro";
4
3
 
5
4
  const { data, config = null } = Astro.props;
@@ -101,9 +100,8 @@ const lastUpdatedConfig = (() => {
101
100
 
102
101
  const showLastUpdatedInFooter = !!data.lastModified && lastUpdatedConfig.enabled && lastUpdatedConfig.position === "footer";
103
102
  const showLastUpdatedBelowTitle = !!data.lastModified && lastUpdatedConfig.enabled && lastUpdatedConfig.position === "below-title";
104
- const readingTimeConfig = resolveReadingTimeOptions(config?.readingTime as never);
105
103
  const readingTimeValue =
106
- readingTimeConfig.enabled && typeof data.readingTime === "number"
104
+ typeof data.readingTime === "number"
107
105
  ? Math.max(1, Math.ceil(data.readingTime))
108
106
  : null;
109
107
  const readingTimeLabel = readingTimeValue ? `${readingTimeValue} min read` : null;