This commit is contained in:
Chuck Dries 2022-10-16 23:16:21 -07:00
parent 681afd89f2
commit cb8936a53b
No known key found for this signature in database
GPG Key ID: A00B7AEAE1DC5BE6
3 changed files with 4 additions and 9 deletions

View File

@ -153,15 +153,11 @@ const GalleryImage = ({ data, location: { state } }) => {
<Nav <Nav
className="mb-4" className="mb-4"
internalLinks={[ internalLinks={[
{ href: "/", label: "Home" },
{ {
href: getGalleryPageUrl( href: "/",
{ keyword: filterKeyword, sortKey },
image.base
),
label: ( label: (
<> <>
Gallery <kbd>esc</kbd> Home <kbd>esc</kbd>
</> </>
), ),
}, },

View File

@ -43,7 +43,7 @@ const Nav = ({ isClient, internalLinks, className }: NavProps) => {
: "border border-white" : "border border-white"
)} )}
> >
{/* <ul className="inline-flex flex-wrap justify-center"> <ul className="inline-flex flex-wrap justify-center">
{internalLinks && {internalLinks &&
internalLinks.map(({ href, label }) => ( internalLinks.map(({ href, label }) => (
<li key={href}> <li key={href}>
@ -57,7 +57,7 @@ const Nav = ({ isClient, internalLinks, className }: NavProps) => {
</li> </li>
))} ))}
</ul> </ul>
{internalLinks && currentBreakpoint !== "XS" && <>|</>} */} {internalLinks && currentBreakpoint !== "XS" && <>|</>}
{currentBreakpoint === "XS" && ( {currentBreakpoint === "XS" && (
<button <button
className="mx-2 hover:underline inline-flex align-middle" className="mx-2 hover:underline inline-flex align-middle"

View File

@ -169,7 +169,6 @@ const GalleryPage = ({ data }: PageProps<Queries.GalleryPageQueryQuery>) => {
className="mb-4" className="mb-4"
internalLinks={[ internalLinks={[
{ href: "/", label: "Home" }, { href: "/", label: "Home" },
{ href: "/photogallery/", label: "Gallery" },
]} ]}
></Nav> ></Nav>
<div className="flex flex-col lg:flex-row lg:items-end justify-between"> <div className="flex flex-col lg:flex-row lg:items-end justify-between">