Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Jul 10, 2024
1 parent fa17681 commit d6e0607
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 22 deletions.
38 changes: 38 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@ryanatkn/eslint-config": "^0.4.0",
"@ryanatkn/fuz": "^0.108.4",
"@ryanatkn/fuz_blog": "^0.1.5",
"@ryanatkn/fuz_mastodon": "^0.16.0",
"@ryanatkn/gro": "^0.129.14",
"@ryanatkn/moss": "^0.7.1",
"@sveltejs/adapter-static": "^3.0.2",
Expand Down
67 changes: 45 additions & 22 deletions src/routes/blog/1/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts" context="module">
import type {Blog_Post_Data} from '@ryanatkn/fuz_blog/blog.js';
import Blog_Post from '@ryanatkn/fuz_blog/Blog_Post.svelte';
import Toot from '@ryanatkn/fuz_mastodon/Toot.svelte';
export const post = {
title: 'Hello webdevladder blog',
Expand All @@ -9,6 +10,10 @@
date_modified: '2024-07-10T22:07:32.473Z',
summary: "creating webdevladder's blog",
tags: ['webdev', 'svelte', 'typescript', 'sveltekit', 'vite'],
comments: {
url: 'https://mastodon.social/@webdevladder/112764548975084845',
type: 'mastodon',
},
} satisfies Blog_Post_Data;
</script>

Expand All @@ -17,26 +22,44 @@
</script>

<Blog_Post {post}>
<p>
This blog was created with <code>fuz_blog</code>, a SvelteKit library for making blogs for
developers. (<a href="https://blog.fuz.dev">blog.fuz.dev</a>,
<a href="https://github.com/ryanatkn/fuz_blog">source code</a>)
</p>
<p>
If you're interested in the full videos where I made the software, extracting it from my
personal blog:
</p>
<ol>
<li>
<a href="https://www.youtube.com/watch?v=wP9qghWkTLc"
>Coding a blog creation library for SvelteKit developers from scratch</a
>
</li>
<li>
<a href="https://www.youtube.com/watch?v=dh_6Vyjbuiw"
>Extracting fuz_blog from my personal blog and publishing to npm</a
>
</li>
</ol>
<p>Stay tuned for more.</p>
<section>
<p>
This blog was created with <code>fuz_blog</code>, a SvelteKit library for making blogs for
developers. (<a href="https://blog.fuz.dev">blog.fuz.dev</a>,
<a href="https://github.com/ryanatkn/fuz_blog">source code</a>)
</p>
<p>
If you're interested in the full videos where I made the software, extracting it from my
personal blog:
</p>
<ol>
<li>
<a href="https://www.youtube.com/watch?v=wP9qghWkTLc"
>Coding a blog creation library for SvelteKit developers from scratch</a
>
</li>
<li>
<a href="https://www.youtube.com/watch?v=dh_6Vyjbuiw"
>Extracting fuz_blog from my personal blog and publishing to npm</a
>
</li>
</ol>
<p>Stay tuned for more.</p>
</section>
<section>
<h2>Comments</h2>
<!-- TODO post.comments.url instead -->
<!-- TODO the storage key is weird -->
<!-- TODO use local cache in dev -->
<!-- TODO remove `:any` when fuz_mastodon types are fixed -->
<Toot
url={post.comments.url}
replies
storage_key="1_comments"
initial_autoload={true}
reply_filter_rules={(item: any) => [
{type: 'favourited_by', favourited_by: [item.account.acct]},
]}
/>
</section>
</Blog_Post>
1 change: 1 addition & 0 deletions src/routes/blog/feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const feed: Blog_Feed = {
date_modified: '2024-07-10T22:07:32.473Z',
summary: "creating webdevladder's blog",
tags: ['webdev', 'svelte', 'typescript', 'sveltekit', 'vite'],
comments: {url: 'https://mastodon.social/@webdevladder/112764548975084845', type: 'mastodon'},
},
],
};
Expand Down
1 change: 1 addition & 0 deletions src/routes/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const package_json = {
'@ryanatkn/eslint-config': '^0.4.0',
'@ryanatkn/fuz': '^0.108.4',
'@ryanatkn/fuz_blog': '^0.1.5',
'@ryanatkn/fuz_mastodon': '^0.16.0',
'@ryanatkn/gro': '^0.129.14',
'@ryanatkn/moss': '^0.7.1',
'@sveltejs/adapter-static': '^3.0.2',
Expand Down

0 comments on commit d6e0607

Please sign in to comment.