Do some small changes to the LastBlogs and LastProjects components
This commit is contained in:
@@ -4,7 +4,6 @@ import { getSettings } from '@/content/settings/settings';
|
|||||||
import CalendarIcon from '@/icons/CalendarIcon.astro';
|
import CalendarIcon from '@/icons/CalendarIcon.astro';
|
||||||
import { getImageUrl } from '@/lib/images';
|
import { getImageUrl } from '@/lib/images';
|
||||||
import { getBlogRoute } from '@/lib/routing';
|
import { getBlogRoute } from '@/lib/routing';
|
||||||
import type { ACTION_ERROR_CODES } from 'astro:actions';
|
|
||||||
import { Image } from 'astro:assets';
|
import { Image } from 'astro:assets';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ const projects = Astro.props.projects;
|
|||||||
const settings = await getSettings();
|
const settings = await getSettings();
|
||||||
const lastProjects = await getLastProjects(projects.amount);
|
const lastProjects = await getLastProjects(projects.amount);
|
||||||
const size = calculateSizeClasses(projects.amount, lastProjects.length);
|
const size = calculateSizeClasses(projects.amount, lastProjects.length);
|
||||||
|
|
||||||
console.log(lastProjects[0].searchEngine);
|
|
||||||
---
|
---
|
||||||
|
|
||||||
{ settings.project.enabled && (
|
{ settings.project.enabled && (
|
||||||
|
|||||||
Reference in New Issue
Block a user