@ai-growth/nextjs
Version:
Seamlessly integrate Sanity CMS with Next.js applications for automated blog routing and rendering
11 lines (10 loc) • 508 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { SimpleDefaultTemplate } from './SimpleDefaultTemplate';
/**
* Post Template - optimized for blog posts and articles
*/
export const PostTemplate = (props) => {
// Use the default template with post-specific defaults
return (_jsx(SimpleDefaultTemplate, { ...props, showMetadata: props.showMetadata ?? true, showAuthor: props.showAuthor ?? true, className: `post-template ${props.className || ''}`.trim() }));
};
export default PostTemplate;