TODO: use gatsby navigate() and location prop for all location based stuff. maybe ditch image hashes? maybe gallery image goes back on escape instead of to image hash
also pass proper linking params to recently published
This commit is contained in:
parent
80169f1803
commit
b6f6476170
@ -217,18 +217,18 @@ const GalleryPage = ({ data, location }: PageProps<Queries.GalleryPageQueryQuery
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="gradient pb-6">
|
<div className="gradient pb-6">
|
||||||
<div className="px-4 md:px-8 flex">
|
<div className="px-4 md:px-8 flex items-baseline">
|
||||||
<h3 id="recently" className="mx-2 font-bold">
|
<h3 className="mx-2 font-bold" id="recently">
|
||||||
Recently published
|
Recently published
|
||||||
</h3>
|
</h3>
|
||||||
{sortKey !== "datePublished" && (
|
{sortKey !== "datePublished" && (
|
||||||
<Link
|
<Link
|
||||||
|
className="underline cursor-pointer text-gray-500"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
// e.preventDefault();
|
// e.preventDefault();
|
||||||
// setSortKey("datePublished")
|
// setSortKey("datePublished")
|
||||||
}}
|
}}
|
||||||
to="?sort=datePublished#all"
|
to="?sort=datePublished#all"
|
||||||
className="underline cursor-pointer"
|
|
||||||
>
|
>
|
||||||
show more
|
show more
|
||||||
</Link>
|
</Link>
|
||||||
@ -249,7 +249,7 @@ const GalleryPage = ({ data, location }: PageProps<Queries.GalleryPageQueryQuery
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="px-4 md:px-8 mt-2 pt-2">
|
<div className="px-4 md:px-8 mt-2 pt-2">
|
||||||
<h3 id="all" className="mx-2 font-bold">
|
<h3 className="mx-2 font-bold" id="all">
|
||||||
All images
|
All images
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user