From ffa29a2ee409bfb5447e2803d348999db4e0ee4e Mon Sep 17 00:00:00 2001 From: Siphalor Date: Mon, 3 May 2021 21:09:20 +0200 Subject: [PATCH] Big steps towards mod sites --- _config.yml | 6 ++ _layouts/home.html | 2 + _layouts/mod.html | 98 +++++++++++++++++++++++++ _sass/klise/_post.scss | 7 ++ about.md | 2 +- assets/img/mods/mouse-wheelie/logo.png | Bin 0 -> 2421 bytes blog.html | 2 +- collections/_mods/mouse-wheelie.md | 8 ++ modding.html | 23 ++++++ modding.md | 7 -- 10 files changed, 146 insertions(+), 9 deletions(-) create mode 100644 _layouts/mod.html create mode 100644 assets/img/mods/mouse-wheelie/logo.png create mode 100644 collections/_mods/mouse-wheelie.md create mode 100644 modding.html delete mode 100644 modding.md 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 0000000000000000000000000000000000000000..ce773b9c0cf482bdd059d945f313e0179441e8a2 GIT binary patch literal 2421 zcmcJRe=wVO9LFEl6RXi5Ze-0S*4>pklXcNP)@jnZpt%)W7t*d(>(;|I5#8cv6Rhc0 zjxdYTV(Cf^@gs(XQ%RVUASIW&=ddgy(-aB9V?q4N9{=pRcKb)=kLRE7^T+3X@AvEb z{(Q4P2n}}JePA~L0FLBSq%#0u^ZnLmZ-<;@N{&7NfEWGAq?44Cvf1ITc*^8!QZ4@N zBS$^i`kyET_BXxn@*|_ODQ|+E*S?$;+tMU4 zJgoC};w3c-7?0b(7dU8ZdxCTV$g;Nw_Sx9DA9M#uyLM$}WdeKmZR=-mf*R%b*2F>^ zv%=60a|Q+m!c9^JqcW{LHHGF|J+_i^Ou(D!seca~W?jcmbctjJf~}?7;dy5Mzgjz1 zZmw(s=6Hnh3h6U5Gj)9M5SMHs;l{+Q^XaWV7pg55MYq86q4+Sd>?XZsh~96EAL`a{ zQOj=Bu=$L6+a0jvS$PH8_B{z7CnY6CK$v9XSUoQ`UL%eaD}^+(G}hNkgLX0qj55jE zXJ*l=Dkh_b7n{DQ6rdoCKtkm6#$%*bwTloP0lmQOyO&n(N>dflbAu}2`$rCN`X!45 zLTwM{h7QB6YKDyyk5***?4PfGeL;N1BFOIt2OV(RLgrb2o+9y;hBe?XJ+{8cuk~mQ%rgfJ$f}{8r=V&nu>{uWZ&LodC(He2)@QutE;D_mIs&Sl;YF zKe&`!rNc~q>$*d2^hA1FCHK-AdURyOQ*+j*7@5*D^nO$!{f`wb7m-t0Wu%7r=0`8f z!91rynR;VtS;f|KHq@V+MS8M120~fSqb89^#2>qL`Vf+qN~ptx;aEr^m3r&Jk~JNM z<#+6C5uK64g*gtcC^lRGN2Lz=hJ0i(j{lhY&31eGDQEs&|Gka*1$~##h?Vt^5f6|n zU#sVgRss*OREK0qi7nl5eW?IQ|nREnqw)< zh*1BD)MaXd@rqfBtTs9L56sD}(^{|>mv2pD-npYdZhM8YI<0(keNzN;1Qt`rdh-`0 z(c#DEIn 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 -%} + +{%- 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 :)