Skip to content

Commit 7eb048e

Browse files
Require manual publish date for now to fix hydration issue
1 parent 8b06214 commit 7eb048e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ My personal blog, made with the following technologies:
1111
## TODOs
1212
- [ ] add internal links between posts
1313
- [ ] fix tags associated with unpublished posts to not be displayed
14-
- [ ] prevent top-of-post list bullets from being rendered where post image gets rendered prior to image being rendered
14+
- [ ] prevent top-of-post list bullets from being rendered where post image should be before it's loaded
1515
- [ ] what's going on with the flicker on the background of the most recent post when dark/light modes are toggled?
1616
- [ ] store theme preference in local storage
1717
- [ ] add logic that checks if manual published date is set before sorting

studio/schemas/post.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default {
77
title: 'Title',
88
name: 'title',
99
type: 'string',
10+
validation: Rule => Rule.required()
1011
},
1112
{
1213
title: 'Description',
@@ -42,6 +43,7 @@ export default {
4243
title: 'Manual Published Date',
4344
name: 'manual_pub_date',
4445
type: 'date',
46+
validation: Rule => Rule.required()
4547
// options: {
4648
// dateFormat: 'YYYY-MM-DD',
4749
// }

web/components/PostImg.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ const PhotoCredit = styled.p`
2929

3030
function PostImage({ postImg }) {
3131
// console.log('postImg: ', postImg)
32-
const [isLoaded, setIsLoaded] = useState(false);
32+
const [isLoaded, setIsLoaded] = useState(false)
3333
const { width, height } = postImg.metadata.dimensions
34-
// console.log('with/height: ', width + "/" + height)
34+
3535
return (
3636
<PostImgContainer>
3737
<PostLqipImg

0 commit comments

Comments
 (0)