feat: added rose pine theme from prism syntax
This commit is contained in:
32
src/routes/blogs/blog.svelte
Normal file
32
src/routes/blogs/blog.svelte
Normal file
@@ -0,0 +1,32 @@
|
||||
<script context="module">
|
||||
import img from './img.svelte';
|
||||
export { img };
|
||||
</script>
|
||||
|
||||
<script>
|
||||
export let title;
|
||||
export let date;
|
||||
export let desc;
|
||||
|
||||
let ddate = new Date(Date.parse(date));
|
||||
import './style-blog.css';
|
||||
</script>
|
||||
|
||||
export let alt;
|
||||
|
||||
<h1>{title}</h1>
|
||||
<main>
|
||||
<p class="date">Last updated {ddate.toDateString()}</p>
|
||||
<div class="blog-text">
|
||||
<p>{desc}</p>
|
||||
<slot>
|
||||
<!-- the mdsvex content will be slotted in here -->
|
||||
</slot>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<style>
|
||||
main {
|
||||
background-color: var(--rp-moon-surface);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user