Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
allurei committed Dec 19, 2024
1 parent 259ff40 commit 1032a2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/routes/tesmi/+page.server.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* export const load = async ({fetch, params }) => {
const response = await fetch('https://www.asteriski.fi/wp-json/wp/v2/posts?tags=2200&_embed&per_page=4');
export const load = async ({fetch, params }) => {
/* const response = await fetch('https://www.asteriski.fi/wp-json/wp/v2/posts?tags=2200&_embed&per_page=4');
if (response.ok) {
const data = await response.json();
return {
posts: data
};
}
} */

return {
posts: []
};
} */
}
6 changes: 3 additions & 3 deletions src/routes/tesmi/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
import Info from "$lib/components/info.svelte";
import Program from "$lib/components/program.svelte";
import Footer from "$lib/components/footer.svelte";
//import Posts from "$lib/components/posts.svelte";
import Posts from "$lib/components/posts.svelte";
import Menu from "$lib/components/menu.svelte";
import Logofarm from "$lib/components/logofarm.svelte";
//export let data;
export let data;
</script>
<Banner/>
<Program/>
<Info mask={true}/>

<Posts posts={data.posts}/>
<Menu/>
<Logofarm />
<Footer/>

0 comments on commit 1032a2c

Please sign in to comment.