mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
This commit is contained in:
parent
eb17632154
commit
88ef4c7060
2 changed files with 2 additions and 6 deletions
|
|
@ -17,7 +17,7 @@ fullPageList.forEach((n) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
const currentListIndex = pageList.findIndex((l) => l.includes(page))
|
const currentListIndex = pageList.findIndex((l) => l.includes(page))
|
||||||
const currentList = pageList[currentListIndex]
|
const currentList = pageList[currentListIndex] ?? []
|
||||||
---
|
---
|
||||||
|
|
||||||
<ul class:list={[className, 'bg-dark mb-0 py-2 justify-center']}>
|
<ul class:list={[className, 'bg-dark mb-0 py-2 justify-center']}>
|
||||||
|
|
|
||||||
|
|
@ -13,16 +13,12 @@ import DefaultSEO from 'components/DefaultSEO.astro'
|
||||||
import FooterNav from 'components/lastAdded/FooterNav.astro'
|
import FooterNav from 'components/lastAdded/FooterNav.astro'
|
||||||
|
|
||||||
const { albums, limitMD, limitXS, ...listProps } = Astro.props
|
const { albums, limitMD, limitXS, ...listProps } = Astro.props
|
||||||
|
|
||||||
if (albums.length === 0) {
|
|
||||||
Astro.redirect('/404')
|
|
||||||
}
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<DefaultSEO />
|
<DefaultSEO />
|
||||||
<Base>
|
<Base>
|
||||||
<div class='flex flex-col w-full'>
|
<div class='flex flex-col w-full'>
|
||||||
<div class='w-full min-h-100vh mx-auto max-w-[1140px]'>
|
<div class='w-full mx-auto max-w-[1140px] grow-1'>
|
||||||
<div class='px-2 mb-2'>
|
<div class='px-2 mb-2'>
|
||||||
<h1 class='uppercase font-medium tracking-wide text-5xl drop-shadow-2xl mt-5 mb-2 text-center'>
|
<h1 class='uppercase font-medium tracking-wide text-5xl drop-shadow-2xl mt-5 mb-2 text-center'>
|
||||||
<slot />
|
<slot />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue