This commit is contained in:
MuslemRahimi 2025-03-13 16:20:41 +01:00
parent f396fb5098
commit f11ead095a
2 changed files with 8 additions and 5 deletions

View File

@ -35,7 +35,9 @@
class="shadow-sm sm:hover:shadow-lg flex flex-col overflow-hidden rounded border border-gray-300 dark:border-gray-700" class="shadow-sm sm:hover:shadow-lg flex flex-col overflow-hidden rounded border border-gray-300 dark:border-gray-700"
> >
<div class="shrink-0"> <div class="shrink-0">
<a href={"/blog/article/" + convertToSlug(item?.title)} <a
href={"/learning-center/article/" +
convertToSlug(item?.title)}
><img ><img
class="h-48 w-full object-cover" class="h-48 w-full object-cover"
src={getImageURL( src={getImageURL(
@ -53,7 +55,8 @@
> >
<div class="flex-1"> <div class="flex-1">
<a <a
href={"/blog/article/" + convertToSlug(item?.title)} href={"/learning-center/article/" +
convertToSlug(item?.title)}
class="mt-2 block" class="mt-2 block"
><h2 class="text-lg sm:text-xl font-semibold"> ><h2 class="text-lg sm:text-xl font-semibold">
{item?.title} {item?.title}

View File

@ -1,6 +1,4 @@
import { error, fail, redirect } from "@sveltejs/kit";
import { validateData } from "$lib/utils";
import { loginUserSchema, registerUserSchema } from "$lib/schemas";
export const load = async ({ locals, params }) => { export const load = async ({ locals, params }) => {
const { apiURL, apiKey } = locals; const { apiURL, apiKey } = locals;
@ -34,6 +32,8 @@ export const load = async ({ locals, params }) => {
}); });
const output = await response.json(); const output = await response.json();
console.log(output)
return output; return output;
}; };