mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
docs: update changelog page with v1.24.3 and v1.24.4 releases
- Added v1.24.4 entry documenting showInNav field and hardcodedNavItems configuration - Added v1.24.3 entry documenting inner page logo configuration - Includes configuration examples and updated file lists - Maintains consistent format with existing changelog entries
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { useQuery } from "convex/react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { api } from "../../convex/_generated/api";
|
||||
|
||||
// Type for featured item from Convex (used for backwards compatibility)
|
||||
@@ -142,7 +143,7 @@ export default function FeaturedCards({
|
||||
return (
|
||||
<div className="featured-cards">
|
||||
{featuredData.map((item) => (
|
||||
<a key={item.slug} href={`/${item.slug}`} className="featured-card">
|
||||
<Link key={item.slug} to={`/${item.slug}`} className="featured-card">
|
||||
{/* Thumbnail image displayed as square using object-fit: cover */}
|
||||
{item.image && (
|
||||
<div className="featured-card-image-wrapper">
|
||||
@@ -160,7 +161,7 @@ export default function FeaturedCards({
|
||||
<p className="featured-card-excerpt">{item.excerpt}</p>
|
||||
)}
|
||||
</div>
|
||||
</a>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -80,8 +80,8 @@ export default function Layout({ children }: LayoutProps) {
|
||||
const showBlogInNav =
|
||||
siteConfig.blogPage.enabled && siteConfig.blogPage.showInNav;
|
||||
|
||||
// Combine Blog link with pages and sort by order
|
||||
// This allows Blog to be positioned anywhere in the nav via siteConfig.blogPage.order
|
||||
// Combine Blog link, hardcoded nav items, and pages, then sort by order
|
||||
// This allows all nav items to be positioned anywhere via order field
|
||||
type NavItem = {
|
||||
slug: string;
|
||||
title: string;
|
||||
@@ -101,6 +101,20 @@ export default function Layout({ children }: LayoutProps) {
|
||||
});
|
||||
}
|
||||
|
||||
// Add hardcoded nav items (React routes like /stats, /write)
|
||||
if (siteConfig.hardcodedNavItems && siteConfig.hardcodedNavItems.length > 0) {
|
||||
siteConfig.hardcodedNavItems.forEach((item) => {
|
||||
// Only add if showInNav is true (defaults to true)
|
||||
if (item.showInNav !== false) {
|
||||
navItems.push({
|
||||
slug: item.slug,
|
||||
title: item.title,
|
||||
order: item.order ?? 999,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Add pages from Convex
|
||||
if (pages && pages.length > 0) {
|
||||
pages.forEach((page) => {
|
||||
|
||||
Reference in New Issue
Block a user