-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default pages for various page types
- Loading branch information
1 parent
38822cc
commit cfa97c8
Showing
9 changed files
with
32 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
draft: true | ||
title: Example title | ||
description: Subtitle | ||
layout: how-to | ||
--- | ||
|
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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
draft: true | ||
title: Example tutorial | ||
description: Subtitle | ||
layout: tutorial | ||
--- | ||
|
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 |
---|---|---|
|
@@ -17,5 +17,4 @@ <h1>{{ .Title }}</h1> | |
{{ end }} | ||
</article> | ||
</main> | ||
{{ partial "shared/sidebar.html" . }} | ||
{{ end }} |
Empty file.
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,10 @@ | ||
{{ define "main" }} | ||
<main> | ||
</main> | ||
<aside> | ||
<div> | ||
{{ partial "shared/sidebar.html" (dict "context" . "type" "how-to") }} | ||
</div> | ||
</aside> | ||
|
||
{{ 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,14 +1,7 @@ | ||
<aside> | ||
<div> | ||
<div> | ||
<h3>LATEST POSTS</h3> | ||
</div> | ||
<div> | ||
<ul> | ||
{{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} | ||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
</div> | ||
</aside> | ||
<div> | ||
<ul> | ||
{{ range where .context.Site.RegularPages "Type" "eq" .type }} | ||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> | ||
{{ end }} | ||
</ul> | ||
</div> |
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,11 @@ | ||
{{ define "main" }} | ||
<main> | ||
tutorial | ||
</main> | ||
<aside> | ||
<div> | ||
{{ partial "shared/sidebar.html" (dict "context" . "type" "tutorial") }} | ||
</div> | ||
</aside> | ||
|
||
{{ end }} |