diff --git a/_config.yml b/_config.yml index 04e0116..946c7ba 100644 --- a/_config.yml +++ b/_config.yml @@ -39,6 +39,7 @@ collections: mods: output: true permalink: /mods/:title + layout: mod # Markdown settings markdown: kramdown @@ -53,6 +54,11 @@ defaults: values: layout: post comments: false + - scope: + path: "" + type: mods + values: + layout: mod # Jekyll Compose default front matter jekyll_compose: diff --git a/_layouts/home.html b/_layouts/home.html index d147051..bec1494 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -3,7 +3,9 @@ layout: default home: true --- +{%- if site.length > 0 -%}

Recent Posts

+{%- endif -%} {%- for post in site.posts limit: site.number_of_posts -%}
{{ post.date | date: "%b %d, %Y" }} diff --git a/_layouts/mod.html b/_layouts/mod.html new file mode 100644 index 0000000..972fd23 --- /dev/null +++ b/_layouts/mod.html @@ -0,0 +1,98 @@ +--- +layout: compress +--- + + + + +{% include header.html %} + + + + + + {% include navbar.html %} +
+
+
+ +
+ Logo +

+ {{ page.title | escape }} + + {% if page.modrinth %} + + + + {% endif %} + {% if page.curseforge %} + + + + {% endif %} + +

+ {% if page.date %} + + {% endif %} +
+ +
+ {% include anchor_headings.html html=content anchorClass="anchor-head" beforeHeading=true h_min=1 h_max=4 %} + {% if page.tweet %} +

Comments this article on + Twitter. +

+ {% endif %} +
+
+ + {% if page.comments %} + {% include comments.html %} + {% endif %} + +
+ + {% if page.modified %} + updated_at {{page.modified | date: "%d-%m-%Y"}} + {% endif %} + {% if page.next or page.previous %} + {% include navigation.html %} + {% endif %} + + {% include footer.html %} +
+ + + diff --git a/_sass/klise/_post.scss b/_sass/klise/_post.scss index 7465d46..d4f8172 100644 --- a/_sass/klise/_post.scss +++ b/_sass/klise/_post.scss @@ -25,6 +25,13 @@ } } + .header-image { + height: 200px; + max-width: 100%; + margin: 0 auto 2rem auto; + display: block; + } + .header-title { font-size: 2em; line-height: 1.2; diff --git a/about.md b/about.md index 0b80b0c..1a23c4e 100644 --- a/about.md +++ b/about.md @@ -7,7 +7,7 @@ comments: false Hi, I'm a German software developer currently studying Applied Informatics. -In my freetime I do quite [some modding]({% link modding.md %}) to the sandbox video game [Minecraft](https://en.wikipedia.org/wiki/Minecraft). I also do some more or less experimental projects with Python, PHP and Rust. +In my freetime I do quite [some modding]({% link modding.html %}) to the sandbox video game [Minecraft](https://en.wikipedia.org/wiki/Minecraft). I also do some more or less experimental projects with Python, PHP and Rust. **Contact** diff --git a/assets/img/mods/mouse-wheelie/logo.png b/assets/img/mods/mouse-wheelie/logo.png new file mode 100644 index 0000000..ce773b9 Binary files /dev/null and b/assets/img/mods/mouse-wheelie/logo.png differ diff --git a/blog.html b/blog.html index aa807d9..5e8e3cf 100644 --- a/blog.html +++ b/blog.html @@ -2,7 +2,7 @@ title: Blog permalink: /posts/ layout: page -excerpt: All post. +excerpt: All posts. comments: false --- diff --git a/collections/_mods/mouse-wheelie.md b/collections/_mods/mouse-wheelie.md new file mode 100644 index 0000000..e5d82b0 --- /dev/null +++ b/collections/_mods/mouse-wheelie.md @@ -0,0 +1,8 @@ +--- +name: Mouse Wheelie +slug: mouse-wheelie +curseforge: mouse-wheelie +modrinth: mouse-wheelie +excerpt: A mod extending the mouse wheel and inventory interactions. +--- + diff --git a/modding.html b/modding.html new file mode 100644 index 0000000..9998c58 --- /dev/null +++ b/modding.html @@ -0,0 +1,23 @@ +--- +title: Minecraft modding +permalink: /mods/ +layout: page +excerpt: My Minecraft mods. +comments: false +--- + +

In my freetime I work on several mods for the sandbox video game Minecraft. I base these mods on the Fabric toolchain but am kindly looking forward to the Quilt toolchain officially launching :)

+ +

My mods

+ +{%- for mod in site.mods -%} +
+

+ {{ mod.name }} +

+
+{%- else -%} +
+ No mods to see here yet. +
+{%- endfor -%} diff --git a/modding.md b/modding.md deleted file mode 100644 index de40b1f..0000000 --- a/modding.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Minecraft modding -permalink: /mods/ -layout: page ---- - -In my freetime I work on several mods for the sandbox video game [Minecraft](https://en.wikipedia.org/wiki/Minecraft). I base these mods on the [Fabric](https://fabricmc.net) toolchain but am kindly looking forward to the [Quilt](https://quiltmc.org) toolchain officially launching :)