@bbki.ng/site 2.0.48 → 2.0.50

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 2.0.50
4
+
5
+ ## 2.0.49
6
+
3
7
  ## 2.0.48
4
8
 
5
9
  ## 2.0.47
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "2.0.48",
3
+ "version": "2.0.50",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@extism/extism": "2.0.0-rc11",
20
- "@bbki.ng/components": "workspace:2.6.12",
20
+ "@bbki.ng/components": "workspace:2.6.14",
21
21
  "@supabase/supabase-js": "^1.35.4",
22
22
  "classnames": "2.3.1",
23
23
  "react": "^18.0.0",
@@ -30,7 +30,7 @@
30
30
  "vaul": "1.1.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@bbki.ng/stylebase": "workspace:0.4.10",
33
+ "@bbki.ng/stylebase": "workspace:0.4.11",
34
34
  "@mdx-js/mdx": "2.0.0-next.9",
35
35
  "@mdx-js/react": "^1.6.22",
36
36
  "@mdx-js/rollup": "3.0.0",
@@ -10,6 +10,7 @@ import { useNavigate } from "react-router-dom";
10
10
  export type ArticlePageProps = {
11
11
  tags?: string[];
12
12
  title: string;
13
+ date?: string;
13
14
  description?: any;
14
15
  headless?: boolean;
15
16
  className?: string;
@@ -37,6 +38,7 @@ export const ArticlePage = (props: ArticlePageProps) => {
37
38
  <>
38
39
  <Article
39
40
  title={title}
41
+ date={props.date}
40
42
  description={description}
41
43
  className={`${props.className} mb-128`}
42
44
  loading={loading}
@@ -50,9 +50,13 @@ export default () => {
50
50
  return null;
51
51
  }
52
52
 
53
+ const date = posts.created_at ? posts.created_at.split("T")[0] : "";
54
+
55
+ console.log("posts", posts);
56
+
53
57
  return (
54
58
  <DropZone onDrop={reader} disabled={!isKing}>
55
- <ArticlePage title={title}>
59
+ <ArticlePage title={title} date={date}>
56
60
  <ArticleCtxMenu>
57
61
  <div dangerouslySetInnerHTML={{ __html: posts.content }} />
58
62
  </ArticleCtxMenu>