blogkit-theme-minimal
Advanced tools
Comparing version 0.2.2 to 0.3.0
/// <reference types="react" /> | ||
import type { HomePageProps } from 'blogkit'; | ||
export declare function Home({ posts, siteConfig }: HomePageProps): JSX.Element; | ||
export declare function Home({ posts, siteConfig, themeConfig }: HomePageProps): JSX.Element; |
@@ -13,4 +13,7 @@ "use strict"; | ||
const date_1 = require("../date"); | ||
function Home({ posts, siteConfig }) { | ||
return ((0, jsx_runtime_1.jsxs)(Container_1.Container, { children: [(0, jsx_runtime_1.jsx)(head_1.default, { children: (0, jsx_runtime_1.jsx)("title", { children: siteConfig.title }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("h1", Object.assign({ className: "text-4xl font-extrabold" }, { children: siteConfig.title }), void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "mt-16 mb-12" }, { children: (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: "pl-0" }, { children: posts.map((post) => { | ||
function Home({ posts, siteConfig, themeConfig }) { | ||
var _a; | ||
return ((0, jsx_runtime_1.jsxs)(Container_1.Container, { children: [(0, jsx_runtime_1.jsx)(head_1.default, { children: (0, jsx_runtime_1.jsx)("title", { children: siteConfig.title }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("h1", Object.assign({ className: "text-4xl font-extrabold" }, { children: siteConfig.title }), void 0), (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.links) && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex gap-2" }, { children: (_a = themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.links) === null || _a === void 0 ? void 0 : _a.map((link) => { | ||
return ((0, jsx_runtime_1.jsx)(link_1.default, Object.assign({ href: link.url }, { children: (0, jsx_runtime_1.jsx)("a", Object.assign({ target: "_blank" }, { children: link.name }), void 0) }), link.url)); | ||
}) }), void 0)), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "mt-12 mb-12" }, { children: (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: "pl-0" }, { children: posts.map((post) => { | ||
return (0, jsx_runtime_1.jsx)(PostItem, { post: post }, post.attributes.slug); | ||
@@ -17,0 +20,0 @@ }) }), void 0) }), void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "my-16" }, { children: (0, jsx_runtime_1.jsx)(Footer_1.Footer, {}, void 0) }), void 0)] }, void 0)); |
{ | ||
"name": "blogkit-theme-minimal", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "", | ||
@@ -20,3 +20,3 @@ "main": "lib/index.js", | ||
"autoprefixer": "^10.4.2", | ||
"blogkit": "*", | ||
"blogkit": "^0.3.3", | ||
"concurrently": "^7.0.0", | ||
@@ -23,0 +23,0 @@ "next": "^12.1.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32881
1146