Compare commits

..

2 commits

Author SHA1 Message Date
ari melody dc9b456409
update opengraph to use square icon 2024-06-30 23:13:55 +01:00
ari melody 176a8901b0
removed unnecessary debug logs 2024-06-30 22:40:10 +01:00
2 changed files with 3 additions and 4 deletions

View file

@ -12,14 +12,14 @@
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta property="og:title" content="Campfire"> <meta property="og:title" content="Campfire">
<meta property="og:description" content="Social media for the galaxy-wide-web!"> <meta property="og:description" content="Social media for the galaxy-wide-web!">
<meta property="og:image" content="https://campfire.bliss.town/favicon.png"> <meta property="og:image" content="https://campfire.bliss.town/icon/campfire-icon.png">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="campfire.bliss.town"> <meta property="twitter:domain" content="campfire.bliss.town">
<meta property="twitter:url" content="https://campfire.bliss.town"> <meta property="twitter:url" content="https://campfire.bliss.town">
<meta name="twitter:title" content="Campfire"> <meta name="twitter:title" content="Campfire">
<meta name="twitter:description" content="Social media for the galaxy-wide-web!"> <meta name="twitter:description" content="Social media for the galaxy-wide-web!">
<meta name="twitter:image" content="https://campfire.bliss.town/favicon.png"> <meta name="twitter:image" content="https://campfire.bliss.town/icon/campfire-icon.png">
%sveltekit.head% %sveltekit.head%
</head> </head>

View file

@ -35,7 +35,6 @@
function gotoPost() { function gotoPost() {
if (focused) return; if (focused) return;
if (event && event.key && event.key !== "Enter") return; if (event && event.key && event.key !== "Enter") return;
console.log(`/post/${post.id}`);
goto(`/post/${post.id}`); goto(`/post/${post.id}`);
} }
@ -60,7 +59,7 @@
class={"post" + (focused ? " focused" : "")} class={"post" + (focused ? " focused" : "")}
aria-label={aria_label} aria-label={aria_label}
bind:this={el} bind:this={el}
on:mousedown={e => {mouse_pos.left = e.pageX; mouse_pos.top = e.pageY; console.log(mouse_pos)}} on:mousedown={e => {mouse_pos.left = e.pageX; mouse_pos.top = e.pageY}}
on:mouseup={e => {if (e.pageX == mouse_pos.left && e.pageY == mouse_pos.top) gotoPost()}} on:mouseup={e => {if (e.pageX == mouse_pos.left && e.pageY == mouse_pos.top) gotoPost()}}
on:keydown={gotoPost}> on:keydown={gotoPost}>
<PostHeader post={post} /> <PostHeader post={post} />