-
-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: fixed link
- Loading branch information
Showing
9 changed files
with
123 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{ define "pager" }} | ||
<div class="flex justify-between gap-2 my-4"> | ||
<div class="pager max-w-half flex items-center"> | ||
{{if .Prev}} | ||
<div class="flex flex-col items-start"> | ||
<div class="text-sm font-grey-light"><< PREV</div> | ||
<a href="{{.Prev.GenHref}}" class="text-xl link-alt-adj">{{.Prev.Text}}</a> | ||
</div> | ||
{{end}} | ||
</div> | ||
|
||
<div class="pager max-w-half flex items-center justify-end"> | ||
{{if .Next}} | ||
<div class="flex flex-col items-end"> | ||
<div class="text-sm font-grey-light"> | ||
NEXT >> | ||
</div> | ||
<a href="{{.Next.GenHref}}" class="text-xl align-right link-alt-adj">{{.Next.Text}}</a> | ||
</div> | ||
{{end}} | ||
</div> | ||
</div> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
{{define "sitemap-footer"}} | ||
<div class="sitemap text-sm mb-4"> | ||
{{range .Sitemap.Children -}} | ||
<div> | ||
{{- if (and $.Prev (eq $.Prev.GenHref .GenHref)) -}} | ||
<a href="{{.GenHref}}" class="link-alt-adj">{{.Text}}</a> | ||
{{- else if (and $.Next (eq $.Next.GenHref .GenHref)) -}} | ||
<a href="{{.GenHref}}" class="link-alt-adj">{{.Text}}</a> | ||
{{- else if (eq $.Href .GenHref) -}} | ||
<a href="{{.GenHref}}" class="link-alt-hover">{{.Text}}</a> | ||
{{- else -}} | ||
<a href="{{.GenHref}}" class="link-alt">{{.Text}}</a> | ||
{{- end -}} | ||
</div> | ||
{{- end}} | ||
<ul class="list-none sidebar-list"> | ||
{{range .Sitemap.Children}} | ||
{{if .Href}} | ||
<li class="text-md"> | ||
{{if (eq $.Href .GenHref)}} | ||
<a href="{{.GenHref}}" class="link-alt-hover">{{.Text}}</a> | ||
{{else}} | ||
<a href="{{.GenHref}}" class="link-alt">{{.Text}}</a> | ||
{{end}} | ||
</li> | ||
{{else}} | ||
<li class="text-md">{{.Text}}</li> | ||
{{end}} | ||
|
||
{{range .Children}} | ||
<ul class="list-none sidebar-list"> | ||
<li> | ||
{{if (eq $.Href .GenHref)}} | ||
<a href="{{.GenHref}}" class="link-alt-hover">{{.Text}}</a> | ||
{{else}} | ||
<a href="{{.GenHref}}" class="link-alt">{{.Text}}</a> | ||
{{end}} | ||
</li> | ||
</ul> | ||
{{end}} | ||
{{end}} | ||
</ul> | ||
</div> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
{{define "toc"}} | ||
<div> | ||
{{range $key, $value := .SitemapByTag}} | ||
<div class="box my"> | ||
<h2 class="text-xl">{{$key}}</h2> | ||
<ul> | ||
{{range $value}} | ||
<div class="sitemap-grid"> | ||
{{range .Sitemap.Children -}} | ||
{{if .Children}} | ||
<div class="box my"> | ||
<h2 class="text-xl text-underline inline-block">{{.Text}}</h2> | ||
<ul class="list-none" style="padding-left: 0;"> | ||
{{range .Children -}} | ||
<li> | ||
<a href="{{.GenHref}}">{{.Text}}</a> | ||
|
||
<ul class="list-disc" style="padding-left: 2rem;"> | ||
{{range .Children}} | ||
<li> | ||
<a href="{{.GenHref}}">{{.Text}}</a> | ||
{{if .Children}} | ||
<ul> | ||
{{range .Children}} | ||
<li><a href="{{.ParentHref}}{{.GenHref}}">{{.Text}}</a></li> | ||
{{end}} | ||
</ul> | ||
{{end}} | ||
</li> | ||
{{end}} | ||
</ul> | ||
</div> | ||
</ul> | ||
</li> | ||
{{- end}} | ||
</ul> | ||
</div> | ||
{{end}} | ||
{{- end}} | ||
</div> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.