-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add sidebar of categories - Separate homepage by category - Add new baseof layout - Add new taxonomy and terms pages - Port footer from main docs
- Loading branch information
Showing
12 changed files
with
357 additions
and
232 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,18 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
{{ partial "head" . }} | ||
</head> | ||
<body id="icons-body"> | ||
{{ partialCached "skippy" . }} | ||
{{ partialCached "navbar" . }} | ||
{{ block "hero" . }}{{ end }} | ||
|
||
<main class="container-xxl bd-gutter" id="content"> | ||
{{ block "main" . }}{{ end }} | ||
</main> | ||
|
||
{{- partialCached "footer" . }} | ||
{{- partialCached "scripts" . }} | ||
</body> | ||
</html> |
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,25 +1,9 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
{{ partial "head" . }} | ||
</head> | ||
<body id="icons-body" class="text-center"> | ||
{{ partialCached "skippy" . }} | ||
{{ partialCached "navbar" . }} | ||
|
||
<main class="container-xxl bd-gutter" id="content"> | ||
<nav aria-label="breadcrumb"> | ||
<ol class="breadcrumb my-4 p-0"> | ||
<li class="breadcrumb-item"><a href="/">Icons</a></li> | ||
<li class="breadcrumb-item active" aria-current="page">Font</li> | ||
</ol> | ||
</nav> | ||
{{ partialCached "icons" . "fonts" }} | ||
|
||
{{ .Content }} | ||
</main> | ||
|
||
{{- partialCached "footer" . }} | ||
{{- partialCached "scripts" . "fonts" }} | ||
</body> | ||
</html> | ||
{{ define "main" }} | ||
<nav aria-label="breadcrumb"> | ||
<ol class="breadcrumb my-4 p-0"> | ||
<li class="breadcrumb-item"><a href="/">Icons</a></li> | ||
<li class="breadcrumb-item active" aria-current="page">Font</li> | ||
</ol> | ||
</nav> | ||
{{ partialCached "icons" . "fonts" }} | ||
{{ 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,19 +1,34 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
{{ partial "head" . }} | ||
</head> | ||
<body id="icons-body"> | ||
{{ partialCached "skippy" . }} | ||
{{ partialCached "navbar" . }} | ||
{{ partialCached "home/hero" . }} | ||
{{ define "hero" }} | ||
{{ partialCached "home/hero" . }} | ||
{{ end }} | ||
|
||
<main class="container-xxl bd-gutter" id="content"> | ||
{{ define "main" }} | ||
<div class="row g-5"> | ||
<div class="small" style="width: 20%;"> | ||
<div class="bd-sidebar"> | ||
<h4>Categories</h4> | ||
<ul class="nav nav-pills flex-column" style="--bs-nav-link-padding-y: .375rem; | ||
--bs-nav-link-padding-x: .75rem; | ||
--bs-nav-link-color: var(--bs-gray-600); | ||
--bs-nav-pills-link-active-color: var(--bs-gray-900); | ||
--bs-nav-pills-link-active-bg: var(--bs-gray-100);"> | ||
<li class="nav-item"> | ||
<a class="nav-link active" href="">All</a> | ||
</li> | ||
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }} | ||
{{ if eq "categories" $taxonomyname }} | ||
{{ range $key, $value := $taxonomy }} | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#{{ $key }}">{{ $key | humanize }}</a> | ||
</li> | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="col"> | ||
{{ partialCached "icons" . "home" }} | ||
{{ .Content }} | ||
</main> | ||
|
||
{{- partialCached "footer" . }} | ||
{{- partialCached "scripts" . "home" }} | ||
</body> | ||
</html> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{ define "main" }} | ||
<nav aria-label="breadcrumb"> | ||
<ol class="breadcrumb my-4 p-0"> | ||
<li class="breadcrumb-item"><a href="/">Icons</a></li> | ||
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li> | ||
</ol> | ||
</nav> | ||
|
||
<h1 class="h2">All {{ .Type }}</h1> | ||
<ul style="column-count: 4;"> | ||
{{ range .Data.Pages }} | ||
<li> | ||
<a href="{{ .Permalink }}">{{ .Title }}</a> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
{{ 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{ define "main" }} | ||
<nav aria-label="breadcrumb"> | ||
<ol class="breadcrumb my-4 p-0"> | ||
<li class="breadcrumb-item"><a href="/">Icons</a></li> | ||
<li class="breadcrumb-item"><a href="/{{ .Type }}/">{{ .Type | humanize }}</a></li> | ||
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li> | ||
</ol> | ||
</nav> | ||
<div class="my-5"> | ||
<div class="d-flex mb-4"> | ||
<h1 id="icons" class="mb-0 h2"> | ||
{{ .Title | humanize }} icons | ||
</h1> | ||
<form class="subnav-search d-flex flex-nowrap ms-auto"> | ||
<label for="search" class="visually-hidden">Search for icons</label> | ||
<input class="form-control search mb-0" id="search" type="search" placeholder="Start typing to filter..." autocomplete="off"> | ||
</form> | ||
</div> | ||
<ul class="row row-cols-3 row-cols-sm-4 row-cols-lg-6 row-cols-xl-8 list-unstyled list"> | ||
{{ range .Data.Pages -}} | ||
{{ partial "icon" . }} | ||
{{- end }} | ||
</ul> | ||
</div> | ||
{{ end }} |
Oops, something went wrong.