feat(website): improve doc side of website

pull/177/head
TorchedSammy 2022-06-22 15:50:40 -04:00
parent 2032795815
commit ce13e50579
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
3 changed files with 27 additions and 5 deletions

View File

@ -1,6 +1,7 @@
--- ---
title: Introduction title: Introduction
layout: doc layout: doc
weight: -1
--- ---
Hello! Hello!

View File

@ -0,0 +1,5 @@
---
title: Getting Started
layout: doc
weight: -10
---

View File

@ -1,9 +1,25 @@
{{ define "main" }} {{ define "main" }}
<main> <div class="container mt-auto mt-auto py-3 row">
<div class="container"> <div class="container" style="width: 240px;">
<div class="p-3 col">
<ul class="nav nav-pills mb-auto">
{{ $currentPage := . }}
{{ range where site.Pages.ByWeight.Reverse "Type" "docs" }}
<li class="nav-item">
<a href="{{ .URL }}" class="nav-link">
{{ .Title }}
</a>
</li>
{{ end }}
</ul>
</div>
</div>
<div class="col">
<div>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{.Content}} {{.Content}}
</div> </div>
</main> </div>
</div>
{{ end }} {{ end }}