e05f99a0d2
Changes: - Added Netlify adapter for server-side rendering - Changed output mode from static to server - Updated KeyStatic storage from local to GitHub - Removed SKIP_KEYSTATIC from Netlify build - KeyStatic Admin UI will be available at /keystatic Features: - Server-side rendering with Netlify Functions - GitHub integration for content management - Production-ready KeyStatic Admin UI Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
2.1 KiB
JavaScript
30 lines
2.1 KiB
JavaScript
import { e as createAstro, c as createComponent, r as renderComponent, a as renderTemplate, m as maybeRenderHead, u as unescapeHTML } from './astro/server_BfDhyAjM.mjs';
|
|
import 'kleur/colors';
|
|
import { $ as $$Grid } from './Grid_BMXKJk6W.mjs';
|
|
import { d as getBlogPermalink } from './permalinks_BMxSf01e.mjs';
|
|
import { d as findLatestPosts } from './blog_J6XM7OAu.mjs';
|
|
import { $ as $$WidgetWrapper } from './WidgetWrapper_C6M78dTL.mjs';
|
|
import { b as $$Button } from './PageLayout_CDwIBOQs.mjs';
|
|
|
|
const $$Astro = createAstro("https://www.radio.org.tr");
|
|
const $$BlogLatestPosts = createComponent(async ($$result, $$props, $$slots) => {
|
|
const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
|
|
Astro2.self = $$BlogLatestPosts;
|
|
const {
|
|
title = await Astro2.slots.render("title"),
|
|
linkText = "T\xFCm yaz\u0131lar\u0131 g\xF6r\xFCnt\xFCle",
|
|
linkUrl = getBlogPermalink(),
|
|
information = await Astro2.slots.render("information"),
|
|
count = 4,
|
|
id,
|
|
isDark = false,
|
|
classes = {},
|
|
bg = await Astro2.slots.render("bg")
|
|
} = Astro2.props;
|
|
const posts = await findLatestPosts({ count }) ;
|
|
return renderTemplate`${renderTemplate`${renderComponent($$result, "WidgetWrapper", $$WidgetWrapper, { "id": id, "isDark": isDark, "containerClass": classes?.container, "bg": bg }, { "default": async ($$result2) => renderTemplate`${maybeRenderHead()}<div class="flex flex-col lg:justify-between lg:flex-row mb-8">${title && renderTemplate`<div class="md:max-w-sm"><h2 class="text-3xl font-bold tracking-tight sm:text-4xl sm:leading-none group font-heading mb-2">${unescapeHTML(title)}</h2>${linkText && linkUrl && renderTemplate`${renderComponent($$result2, "Button", $$Button, { "variant": "link", "href": linkUrl }, { "default": async ($$result3) => renderTemplate`${" "}${linkText} »
|
|
` })}`}</div>`}${information && renderTemplate`<p class="text-muted dark:text-slate-400 lg:text-sm lg:max-w-md">${unescapeHTML(information)}</p>`}</div>${renderComponent($$result2, "Grid", $$Grid, { "posts": posts })}` })}` }`;
|
|
}, "/Users/bugracanata/Developer/[Telsiz]/ARC-Web-Sitesi/src/components/widgets/BlogLatestPosts.astro", void 0);
|
|
|
|
export { $$BlogLatestPosts as $ };
|