- An example of a blog with dynamic content fetched from JSONPlaceholder using the title, body and userId. The Accessible Astro Card Component is used here to display al the posts.
+ Just my personal blog, where I write about cool projects and endeavours.
-
-
-
-
diff --git a/src/pages/blog/new-website.mdx b/src/pages/blog/new-website.mdx
new file mode 100644
index 0000000..df2ef7f
--- /dev/null
+++ b/src/pages/blog/new-website.mdx
@@ -0,0 +1,17 @@
+---
+layout: ../../layouts/BlogLayout.astro
+title: So... I have a new website now!
+author: Martin Prokoph
+date: 09th February 2024
+---
+
+After years of just having a lame and half broken, useless site, I proudly present my new website.
+I now utilize [Astro](https://astro.build/) to achieve blazing fast performance, eye candy and usefulness at the same time.
+
+
+
A preview of the main site
+
+The new site is based on [Astro Accessible Starter](https://github.com/markteekman/accessible-astro-starter), making it accessible to everyone from the beginning.
+I did however change quite a lot, adding an interactive wiki, dedicated pages for my mods, as well as this cool markdown-based blog.
+The wiki for MidnightLib features a version selector which always lists the latest versions, obtained straight from Modrinth's API.
+I still have to finish that feature and update the assets to be more light-mode-friendly, but I'm going to publish the site first.
\ No newline at end of file
diff --git a/src/pages/gallery/[...page].astro b/src/pages/gallery/[...page].astro
deleted file mode 100644
index 4796a03..0000000
--- a/src/pages/gallery/[...page].astro
+++ /dev/null
@@ -1,74 +0,0 @@
----
-import DefaultLayout from '../../layouts/DefaultLayout.astro'
-import { Card, Pagination } from 'accessible-astro-components'
-
-export async function getStaticPaths({ paginate }) {
- const response = await fetch('https://jsonplaceholder.typicode.com/posts')
- const data = await response.json()
-
- return paginate(data, { pageSize: 6 })
-}
-
-const { page } = Astro.props
----
-
-
-
-
-
Gallery
-
- An overview of my projects and endeavours.
-
-
-
-
-
-
Post {page.start + 1} through {page.end + 1} of {page.total} total posts
Just create Java fields, annotate them with @Entry, maybe add some more additional options, and boom!
This example can be found
-
-Get to know the features
-
+Explore MidnightLib's features on this page:
+[Get to know the features](/midnightlib)
To use the library in your mods, just edit `build.gradle` and `gradle.properties` as seen below:
### `build.gradle`
@@ -113,10 +110,10 @@ The .json language file for your config class could look similar to this:
```
To initialize the config you have to call `MidnightConfig.init("modid", MidnightConfigExample.class);` in your ModInitializer.
-To get an instance of the config screen you have to call `MidnightConfig.getScreen(parent, "modid");`
+To get an instance of the config screen you have to call `MidnightConfig.getScreen(parent, "modid");`
-If you don't use the whole library and therefore not the automatic ModMenu integration, the code in your ModMenu integration class would look something like this:
### `ModMenuInit.java`
+If you don't use the whole library and therefore not the automatic ModMenu integration, the code in your ModMenu integration class would look something like this:
```java
@Override
public ConfigScreenFactory> getModConfigScreenFactory() {