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"
>
<div class="shrink-0">
<a href={"/blog/article/" + convertToSlug(item?.title)}
<a
href={"/learning-center/article/" +
convertToSlug(item?.title)}
><img
class="h-48 w-full object-cover"
src={getImageURL(
@ -53,7 +55,8 @@
>
<div class="flex-1">
<a
href={"/blog/article/" + convertToSlug(item?.title)}
href={"/learning-center/article/" +
convertToSlug(item?.title)}
class="mt-2 block"
><h2 class="text-lg sm:text-xl font-semibold">
{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 }) => {
const { apiURL, apiKey } = locals;
@ -34,6 +32,8 @@ export const load = async ({ locals, params }) => {
});
const output = await response.json();
console.log(output)
return output;
};