Skip to content

Commit d84a1b2

Browse files
added cortexflow blog
1 parent 7efd3f9 commit d84a1b2

File tree

3 files changed

+33
-92
lines changed

3 files changed

+33
-92
lines changed

src/SiteMapGenerator.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@ const path = require("path");
55
// Define the hostname and URLs for the sitemap file
66
const hostname = "https://www.cortexflow.org/";
77
const urls = [
8-
{ url: "/", changefreq: "daily", priority: 1.0 },
9-
{ url: "/blog", changefreq: "daily", priority: 0.8 },
10-
{url: "/blog/introducing-cortexflow",changefreq:"daily",priority:1.0},
11-
/* {url: "/blog/federated-computational-governance",changefreq:"daily",priority:1.0},
12-
{url: "/blog/discovering-lidar",changefreq:"daily",priority:1.0},
13-
{url: "/blog/revisiting-the-lambda-architecture",changefreq:"daily",priority:1.0}, */
14-
{ url: "/newsletter", changefreq: "daily", priority: 0.8 },
15-
{ url: "/doc", changefreq: "daily", priority: 0.8 },
16-
{ url: "/examples", changefreq: "daily", priority: 0.8 },
17-
{ url: "/use-cases", changefreq: "daily", priority: 0.8 },
8+
{ url: "/", changefreq: "daily", priority: 1.0 },
9+
{ url: "/blog", changefreq: "daily", priority: 0.95 },
10+
{ url: "/newsletter", changefreq: "daily", priority: 0.8 },
11+
{ url: "/doc", changefreq: "daily", priority: 0.8 },
12+
{ url: "/examples", changefreq: "daily", priority: 0.8 },
13+
{ url: "/use-cases", changefreq: "daily", priority: 0.8 },
1814
];
1915

2016
// Create the sitemap instance
@@ -24,8 +20,8 @@ const sitemapInstance = sitemap.createSitemap({
2420
});
2521

2622
// Define the path for the directory and the file
27-
const directoryPath = path.join(__dirname, '../public');
28-
const filePath = path.join(directoryPath, 'sitemap.xml');
23+
const directoryPath = path.join(__dirname, "../public");
24+
const filePath = path.join(directoryPath, "sitemap.xml");
2925

3026
// Check if the 'public' directory exists, if not, create it
3127
if (!fs.existsSync(directoryPath)) {

src/components/Router/Router.jsx

Lines changed: 18 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -3,72 +3,23 @@ import { createBrowserRouter } from "react-router-dom";
33
import HomePage from "../HomePage/home";
44
import ErrorPage from "../Pages/ErrorPage";
55
import InProgress from "../Pages/InProgress";
6-
/* import BlogPage from "../Pages/Blog"
7-
*/
8-
/* Articles */
9-
/* import Article1 from "../Blog/Articles/01 Introducing CortexFlow/introducing_cortexflow";
10-
import Article2 from "../Blog/Articles/02 Federated Computational Governance/federated_computational_governance_article";
11-
import Article3 from "../Blog/Articles/03 Discovering LiDar/discovering_lidar_article";
12-
import Article4 from "../Blog/Articles/04 Revisiting Lambda Architecture/revisiting_lambda_architecture";
13-
*/
14-
const router = createBrowserRouter(
15-
[
16-
{
17-
path: "/",
18-
element: <HomePage />,
19-
errorElement: <ErrorPage />,
20-
},
21-
/* {
22-
path: "/blog",
23-
element: <BlogPage />,
24-
errorElement: <ErrorPage />,
25-
}, */
26-
/* ------------------------------------------------------------------------------------------------------ */
27-
/* Blog pages link */
28-
/* {
29-
path: "/blog/introducing-cortexflow",
30-
element: <Article1 />,
31-
errorElement: <ErrorPage />
32-
},
33-
{
34-
path: "/blog/federated-computational-governance",
35-
element: <Article2 />,
36-
errorElement: <ErrorPage />
37-
},
38-
{
39-
path: "/blog/discovering-lidar",
40-
element: <Article3 />,
41-
errorElement: <ErrorPage />
42-
},
43-
{
44-
path: "/blog/revisiting-the-lambda-architecture",
45-
element: <Article4 />,
46-
errorElement: <ErrorPage />
47-
}, */
48-
49-
/* ------------------------------------------------------------------------------------------------------ */
50-
/* NewsLetter */
51-
{
52-
path: "/newsletter",
53-
element: <InProgress />,
54-
errorElement: <ErrorPage />,
55-
},
56-
/* {
57-
path: "/doc",
58-
element: <InProgress />,
59-
errorElement: <ErrorPage />,
60-
}, */
61-
{
62-
path: "/examples",
63-
element: <InProgress />,
64-
errorElement: <ErrorPage />,
65-
},
66-
{
67-
path: "/use-cases",
68-
element: <InProgress />,
69-
errorElement: <ErrorPage />,
70-
},
71-
],
72-
);
6+
const router = createBrowserRouter([
7+
{
8+
path: "/",
9+
element: <HomePage />,
10+
errorElement: <ErrorPage />,
11+
},
12+
/* NewsLetter */
13+
{
14+
path: "/examples",
15+
element: <InProgress />,
16+
errorElement: <ErrorPage />,
17+
},
18+
{
19+
path: "/use-cases",
20+
element: <InProgress />,
21+
errorElement: <ErrorPage />,
22+
},
23+
]);
7324

7425
export default router;

src/components/navbar/navabar.jsx

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import "../css/homepage.css";
99
import githubLogo from "../assets/img/github.png";
1010

1111
import logobrain from "../assets/img/logo-brain.png";
12-
import comingsoon from "../assets/img/coming-soon2.png";
1312

1413
const Homepg = () => {
1514
return (
@@ -39,24 +38,19 @@ const Homepg = () => {
3938
<Link to="/blog">Blog</Link>
4039
</li> */}
4140
<li>
42-
<Link to="/newsletter">
43-
<img
44-
src={comingsoon}
45-
alt="coming soon"
46-
className="comingsoon-flag"
47-
/>
48-
Newsletter
49-
</Link>
41+
<a href="/blog/">
42+
{" "}
43+
{/* this must be a href */} <span>Blog</span>{" "}
44+
<i className="bi toggle-dropdown"></i>
45+
</a>
5046
</li>
5147
<li className="dropdown">
52-
<a href="/doc/"> {/* this must be a href */}
48+
<a href="/doc/">
5349
{" "}
54-
<span>Documentation</span>{" "}
50+
{/* this must be a href */} <span>Documentation</span>{" "}
5551
<i className="bi toggle-dropdown"></i>
5652
</a>
5753
</li>
58-
59-
6054
</ul>
6155
<i className="mobile-nav-toggle d-xl-none bi bi-list"></i>
6256
</nav>

0 commit comments

Comments
 (0)