Add Minecraft shrine, add icons for all of them
This commit is contained in:
parent
1befdf7c8c
commit
416e825294
10 changed files with 50 additions and 1 deletions
BIN
assets/icons/ffxiv.png
Normal file
BIN
assets/icons/ffxiv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
BIN
assets/icons/minecraft.png
Normal file
BIN
assets/icons/minecraft.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 662 KiB |
BIN
assets/icons/trains.png
Normal file
BIN
assets/icons/trains.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
BIN
assets/icons/vrchat.png
Normal file
BIN
assets/icons/vrchat.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
title: "Final Fantasy XIV Online"
|
||||
layout: "ffxiv"
|
||||
slug: "ffxiv"
|
||||
---
|
||||
|
|
5
content/shrines/minecraft/index.md
Normal file
5
content/shrines/minecraft/index.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: "Minecraft"
|
||||
layout: "minecraft"
|
||||
slug: "minecraft"
|
||||
---
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: "Trains"
|
||||
slug: "trains"
|
||||
---
|
||||
|
||||
I **love** trains, here's a small collection of my train-related photos. The page
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
title: "VRChat"
|
||||
layout: "vrchat"
|
||||
slug: "vrchat"
|
||||
---
|
||||
|
|
35
themes/red/layouts/_default/minecraft.html
Normal file
35
themes/red/layouts/_default/minecraft.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
{{ define "main" }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="container">
|
||||
<div class="box">
|
||||
<h2>Mods</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="https://code.ryne.moe/redstrate/realms-begone">Realms Begone</a>: Remove the Realms button on the Title Screen.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<h2>Worlds</h2>
|
||||
|
||||
TODO!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
display: flex;
|
||||
column-gap: 15px;
|
||||
}
|
||||
|
||||
.box {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: 1px solid gray;
|
||||
padding: 5px;
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
|
@ -6,7 +6,13 @@
|
|||
|
||||
<ul>
|
||||
{{ range .Data.Pages.ByDate.Reverse }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
<li>
|
||||
{{ $url := printf "icons/%s.png" .Slug }}
|
||||
{{ with resources.Get $url }}
|
||||
<img alt="Icon" width="16" height="16" src="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue