Skip to content

Commit

Permalink
🎨 code prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Jan 2, 2022
1 parent 2b54adb commit 2f19568
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
custom: ['https://giveth.io/project/urara']
custom: ['https://giveth.io/project/urara']
2 changes: 1 addition & 1 deletion src/lib/components/footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<footer
id="footer"
class="{className ?? ''} footer footer-center bg-base-300 text-base-content rounded-box <md:rounded-none shadow-inner p-8">
class="footer footer-center bg-base-300 text-base-content rounded-box <md:rounded-none shadow-inner p-8 {className ?? ''}">
<div class="prose">
<p>
{#each Object.entries(footerConfig.nav) as [href, name], i}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/index_post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
{/if}
<Date {post} type="index" />
</div>
</article>
</article>
3 changes: 2 additions & 1 deletion src/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
}
$: if (loaded && tags) posts = !tags ? allPosts : allPosts.filter(post => tags.every(tag => post.tags?.includes(tag)))
$: if (posts) years = [posts[0]?.date ? new Date(posts[0].date).toJSON().substring(0, 4) : new Date().toJSON().substring(0, 4)]
$: if (posts)
years = [posts[0]?.date ? new Date(posts[0].date).toJSON().substring(0, 4) : new Date().toJSON().substring(0, 4)]
onMount(() => {
if (browser) {
Expand Down

0 comments on commit 2f19568

Please sign in to comment.