Minor edits to Blog page

- Changed content of message when there are no posts
- Changed description
- Add null alt value fro decorative image
This commit is contained in:
Foster Hangdaan 2023-08-06 11:04:01 -04:00
parent 8d3155b10b
commit c41ee1fb96
Signed by: foster
GPG key ID: E48D7F49A852F112

View file

@ -1,5 +1,5 @@
export const title = "Blog"; export const title = "Blog";
export const description = "Hello, my friend. Stay a while and listen."; export const description = "Hello, stranger. Stay a while and listen.";
export default function({ nav }) { export default function({ nav }) {
const sortPosts = (a,b) => { const sortPosts = (a,b) => {
@ -15,8 +15,9 @@ export default function({ nav }) {
if (!nav.menu("/blog/posts")) { if (!nav.menu("/blog/posts")) {
return ( return (
<div className="no-posts"> <div className="no-posts">
<img src="https://static.fosterhangdaan.com/icons/tabler-icons/latest/svg/square-0-filled.svg" className="icon"/> <img src="https://static.fosterhangdaan.com/icons/tabler-icons/latest/svg/coffee.svg" className="icon" alt=""/>
<h2>No posts yet.<br/>Check back later.</h2> <h2>No posts yet</h2>
<p>Foster is on a coffee break.<br/>Check back later.</p>
</div> </div>
); );
} }