mirror of
https://github.com/JonasunderscoreJones/wiki.jonasjones.dev.git
synced 2025-10-23 14:19:18 +02:00
Initial commit
This commit is contained in:
commit
09c002f1ae
25 changed files with 2255 additions and 0 deletions
22
src/routes/+layout.svelte
Normal file
22
src/routes/+layout.svelte
Normal file
|
@ -0,0 +1,22 @@
|
|||
<script>
|
||||
import Header from '$lib/components/Header.svelte';
|
||||
import Footer from '$lib/components/Footer.svelte';
|
||||
import Navbar from '$lib/components/Navbar.svelte';
|
||||
import '$lib/styles/style.css';
|
||||
</script>
|
||||
|
||||
<Header />
|
||||
|
||||
<div class="container">
|
||||
<div class="column navbar"><Navbar /></div>
|
||||
<div class="column content">
|
||||
<main>
|
||||
<slot />
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<Footer />
|
65
src/routes/+page.md
Normal file
65
src/routes/+page.md
Normal file
|
@ -0,0 +1,65 @@
|
|||
# Welcome to the Svelte Markdown Wiki!
|
||||
|
||||
Every page here is a Markdown file. Svelte does the rest!
|
||||
|
||||
---
|
||||
## Different headers
|
||||
### Even smaller header
|
||||
|
||||
You can use **bold**, *italic*, and ~~strikethrough~~ text.
|
||||
|
||||
You can also use [links](/).
|
||||
|
||||
You can use `code` blocks.
|
||||
|
||||
You can use tables:
|
||||
|
||||
| Header 1 | Header 2 |
|
||||
| -------- | -------- |
|
||||
| Cell 1 | Cell 2 |
|
||||
|
||||
You can use blockquotes:
|
||||
|
||||
> This is a blockquote.
|
||||
> It can span multiple lines.
|
||||
> > You can even nest blockquotes.
|
||||
> > > And nest them deeper.
|
||||
> > > > And deeper.
|
||||
> > > > > And deeper.
|
||||
|
||||
You can use horizontal rules:
|
||||
|
||||
---
|
||||
|
||||
You can use ordered lists:
|
||||
|
||||
1. Item 1
|
||||
2. Item 2
|
||||
3. Item 3
|
||||
1. Item 3.1
|
||||
2. Item 3.2
|
||||
4. Item 4
|
||||
5. Item 5
|
||||
|
||||
You can use unordered lists:
|
||||
|
||||
- Item 1
|
||||
- Item 2
|
||||
- Item 3
|
||||
- Item 3.1
|
||||
- Item 3.2
|
||||
- Item 4
|
||||
- Item 5
|
||||
|
||||
|
||||
You can use codeblocks:
|
||||
|
||||
```js
|
||||
const foo = 'bar';
|
||||
```
|
||||
|
||||
|
||||
|
||||
You can use images:
|
||||
|
||||

|
2
src/routes/Exampletopic/+page.md
Normal file
2
src/routes/Exampletopic/+page.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Exampletopic
|
||||
This is an example topic.
|
2
src/routes/Exampletopic/Introduction/+page.md
Normal file
2
src/routes/Exampletopic/Introduction/+page.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Introduction
|
||||
This is the introduction.
|
2
src/routes/Exampletopic/Introduction/Q&A/+page.md
Normal file
2
src/routes/Exampletopic/Introduction/Q&A/+page.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Q & A
|
||||
This is an example Q&A page
|
10
src/routes/__internal_api/+server.js
Normal file
10
src/routes/__internal_api/+server.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { fetchMarkdownPages } from '$lib/utils';
|
||||
import { json } from '@sveltejs/kit';
|
||||
|
||||
export const GET = async () => {
|
||||
const allPosts = await fetchMarkdownPages();
|
||||
// sort posts alphabetically
|
||||
allPosts.sort((a, b) => a.path.localeCompare(b.path));
|
||||
|
||||
return json(allPosts);
|
||||
};
|
5
src/routes/about/+page.md
Normal file
5
src/routes/about/+page.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# About
|
||||
|
||||
A Wiki Template by Jonas_Jones
|
||||
|
||||
[GitHub Repository](https://github.com/J-onasJones/SvelteMarkdownWiki)
|
3
src/routes/contact/+page.md
Normal file
3
src/routes/contact/+page.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Contact
|
||||
|
||||
This is the contact page.
|
Loading…
Add table
Add a link
Reference in a new issue