diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index 7cc026c..67c45a4 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -19,8 +19,7 @@ const today = new Date();
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro
index d287a33..ae2ed28 100644
--- a/src/pages/blog/index.astro
+++ b/src/pages/blog/index.astro
@@ -9,6 +9,9 @@ import FormattedDate from '../../components/FormattedDate.astro';
const posts = (await getCollection('blog')).sort(
(a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
);
+const homelab_posts = (await getCollection('homelab')).sort(
+ (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
+);
---
@@ -54,12 +57,12 @@ const posts = (await getCollection('blog')).sort(
}
.title {
margin: 0;
- color: rgb(var(--black));
+ color: rgb(0,255,159);
line-height: 1;
}
.date {
margin: 0;
- color: rgb(var(--gray));
+ color: rgb(white);
}
ul li a:hover h4,
ul li a:hover .date {
@@ -98,9 +101,6 @@ const posts = (await getCollection('blog')).sort(
I will probably post mostly random stuff or opinion pieces. What it will be about i have no idea.
So stay tuned!
-
- Click here to read posts about my homelab!
-
@@ -116,6 +116,16 @@ const posts = (await getCollection('blog')).sort(
))
}
+ { homelab_posts.map((post) => (
+ -
+
+
{post.data.title}
+
+
+
+
+
+ ))}
diff --git a/src/pages/homelab/index.astro b/src/pages/homelab/index.astro
index 5fe98ff..ab53ea0 100644
--- a/src/pages/homelab/index.astro
+++ b/src/pages/homelab/index.astro
@@ -8,9 +8,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../../consts";
-const posts = (await getCollection('homelab')).sort(
- (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
-);
+
const servers = (await getCollection('servers'));
---
@@ -20,31 +18,9 @@ const servers = (await getCollection('servers'));
@@ -107,11 +49,9 @@ const servers = (await getCollection('servers'));
- All bout the homelab!
+ What is in my homelab now?
-
- What is in my homelab now?
So my current homelab has gotten quite extensive, which honestly is a pain because electricity is expensive as hell.
@@ -120,44 +60,16 @@ const servers = (await getCollection('servers'));
let me explain each server, and what it is currently being used for.
As you can probably tell, i use greek mythology for the naming scheme of physical machines :P
-
-
-
-
- Homelab blog:
-
-
- {
- posts.length == 0 ? Wow, such empty
:
- posts.sort((a,b) => {
- return b.data.pubDate.getTime() - a.data.pubDate.getTime()
- }).map((post) => (
- -
-
-
{post.data.title}
-
-
-
-
-
- ))
- }
-
-
-
-
+
+
diff --git a/src/pages/index.astro b/src/pages/index.astro
index e562728..d5f3284 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -1,76 +1,49 @@
---
-import BaseHead from '../components/BaseHead.astro';
-import Header from '../components/Header.astro';
-import Footer from '../components/Footer.astro';
-import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
+import BaseHead from "../components/BaseHead.astro";
+import Header from "../components/Header.astro";
+import Footer from "../components/Footer.astro";
+import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
---
-
-
-
+
+
+
- }
- main left,right{
-
- margin: 0.2em;
- padding: 0.5em;
- }
- left{
- width: 50%;
- text-align: center;
-
-
- }
- right{
- width: 50%;
- text-align: center;
-
- }
- #column{
- float:left;
- }
- box{
- display: flex;
- }
- box left,right{
- border-color: white;
- border-width: 0.2em;
- border-style: solid;
- border-radius: 1em;
- margin: 0.2em;
- padding: 0.5em;
- }
-
-
-
-
-
-
-
- Yo! Welcome to my humble site
-
-
-
- This site is a continual WIP, and this is just an alpha of what i hope it will become :)
-
-
- Go checkout the description of my homelab!
-
-
-
-
-
-
-
-
-
-
-
+
+ Rolf Glomsrud
+
+
+ This site is a continual WIP, and this is just an alpha of what i hope
+ it will become :)
+
+
+
+