diff --git a/src/components/HomeButton.astro b/src/components/HomeButton.astro
new file mode 100644
index 0000000..552d33e
--- /dev/null
+++ b/src/components/HomeButton.astro
@@ -0,0 +1,15 @@
+---
+---
+
+
+
+ Home
+
+
+
\ No newline at end of file
diff --git a/src/content/posts/code-examples.md b/src/content/posts/code-examples.md
new file mode 100644
index 0000000..a410175
--- /dev/null
+++ b/src/content/posts/code-examples.md
@@ -0,0 +1,110 @@
+---
+title: Code Examples
+description: Aurghhhhhh
+pubDate: 2022-07-08
+image:
+ url: https://docs.astro.build/assets/arc.webp
+ alt: Tennis balls
+tags:
+ - Gaybo
+---
+
+Penitc
+
+```astro
+---
+import { getPosts } from "../../utils";
+import Layout from "../../layouts/Layout.astro";
+import Markdown from "../../layouts/Markdown.astro";
+
+export async function getStaticPaths() {
+ const collection = await getPosts("projects");
+
+ return collection.map((post, i) => ({
+ params: { slug: post.slug },
+ props: {
+ post: post,
+ prev: i > 0 ? collection[i - 1] : undefined,
+ next: i < collection.length - 1 ? collection[i + 1] : undefined
+ }
+ }));
+}
+
+const { post, prev, next } = Astro.props;
+---
+
+
+
+
+```
+
+```scss
+.astro-code {
+ padding: 36px 8px 8px;
+
+ position: relative;
+
+ display: block;
+
+ font-size: 13px;
+
+ border-radius: $radius;
+
+ &::before {
+ content: "lang: " attr(data-language);
+
+ padding: 4px 8px;
+
+ width: 100%;
+ height: 28px;
+
+ position: absolute;
+ top: 0;
+ left: 0;
+
+ font-size: 13px;
+
+ background-color: $gray;
+ color: $light;
+ }
+}
+```
+
+```go
+func (p *penTool) Render() raylib.Texture2D {
+ offset := raylib.Vector2Scale(canvas.Offset, -1)
+ texture := raylib.LoadRenderTexture(int32(canvas.Size.X), int32(canvas.Size.Y))
+
+ raylib.BeginTextureMode(texture)
+ raylib.ClearBackground(raylib.Fade(raylib.Black, 0))
+ for i := 0; i < len(p.Points)-1; i++ {
+ startPointOffset := raylib.Vector2Add(p.Points[i], offset)
+ endPointOffset := raylib.Vector2Add(p.Points[i+1], offset)
+ raylib.DrawLineEx(startPointOffset, endPointOffset, p.Size, p.Color)
+ raylib.DrawCircle(int32(startPointOffset.X), int32(startPointOffset.Y), p.Size/2, p.Color)
+ }
+ if len(p.Points) > 0 {
+ endPointOffset := raylib.Vector2Add(p.Points[len(p.Points)-1], offset)
+ raylib.DrawCircle(int32(endPointOffset.X), int32(endPointOffset.Y), p.Size/2, p.Color)
+ }
+ raylib.EndTextureMode()
+
+ return texture.Texture
+}
+```
+
+```python
+from django.db import models
+
+
+class Article(models.Model):
+ title = models.CharField(max_length=255)
+ slug = models.SlugField()
+ body = models.TextField()
+ date = models.DateTimeField(auto_now_add=True)
+ thumb = models.ImageField(default="default.png", blank=True)
+ published = models.BooleanField(default=False)
+
+ def __str__(self):
+ return self.title
+```
\ No newline at end of file
diff --git a/src/layouts/Markdown.astro b/src/layouts/Markdown.astro
index 53f8c89..38b88d3 100644
--- a/src/layouts/Markdown.astro
+++ b/src/layouts/Markdown.astro
@@ -1,4 +1,6 @@
---
+import HomeButton from "../components/HomeButton.astro";
+
interface Props {
post: any,
}
@@ -8,36 +10,44 @@ const { post, prev, next, base } = Astro.props;
const { Content } = await post.render();
---
-Home
+
-
+
-
{prev && (
- { prev.data.title }
+
+ Last
+
)}
-
{next && (
- { next?.data.title }
+
+ Next
+
)}
@@ -46,35 +56,44 @@ const { Content } = await post.render();
diff --git a/src/pages/posts/index.astro b/src/pages/posts/index.astro
index f435bad..c3db1d5 100644
--- a/src/pages/posts/index.astro
+++ b/src/pages/posts/index.astro
@@ -1,6 +1,7 @@
---
import { getPosts } from "../../utils";
import Layout from "../../layouts/Layout.astro";
+import HomeButton from "../../components/HomeButton.astro";
import Card from "../../components/Card.astro";
import BannerImg from "../../../public/banner-alt.webp";
@@ -8,7 +9,7 @@ const posts = await getPosts("posts");
---
- Home
+