--- import OverlayWallpaper from "@components/features/OverlayWallpaper.astro"; import Navbar from "@components/layout/Navbar.astro"; import ImageWrapper from "@/components/common/ImageWrapper.astro"; import { backgroundWallpaper, siteConfig } from "@/config"; import { getBackgroundImages } from "@/utils/layout-utils"; import Layout from "./Layout.astro"; interface Props { title?: string; description?: string; } const { title, description } = Astro.props; const backgroundImages = getBackgroundImages(); const bannerImage = typeof backgroundImages.desktop === "string" ? backgroundImages.desktop : typeof backgroundImages.mobile === "string" ? backgroundImages.mobile : ""; const isOverlayMode = backgroundWallpaper.mode === "overlay"; const isWallpaperSwitchable = backgroundWallpaper.switchable ?? true; --- {(isWallpaperSwitchable || isOverlayMode) && ( )}
{bannerImage ? ( ) : (
)}
Firefly Admin

博客后台管理