-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
theme: replace output-partial by Hugo mechanisms #891
- Loading branch information
Showing
65 changed files
with
222 additions
and
345 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
+++ | ||
archetype = "chapter" | ||
title = "{{ replace .Name "-" " " | title }}" | ||
type = "chapter" | ||
weight = 1 | ||
+++ | ||
|
||
|
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,6 +1,6 @@ | ||
+++ | ||
archetype = "home" | ||
title = "{{ replace .Name "-" " " | title }}" | ||
type = "home" | ||
+++ | ||
|
||
This is a new home page. |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
+++ | ||
archetype = "home" | ||
description = "A theme fer Cap'n Hugo designed fer documentat'n." | ||
title = "Cap'n Hugo Relearrrn Theme" | ||
type = "home" | ||
+++ | ||
{{< piratify true >}} |
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,6 +1,6 @@ | ||
+++ | ||
archetype = "chapter" | ||
title = "Basics" | ||
type = "chapter" | ||
weight = 1 | ||
+++ | ||
|
||
|
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,6 +1,6 @@ | ||
+++ | ||
archetype = "chapter" | ||
title = "Basics" | ||
type = "chapter" | ||
weight = 1 | ||
+++ | ||
{{< piratify >}} |
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,6 +1,6 @@ | ||
+++ | ||
archetype = "chapter" | ||
title = "Content" | ||
type = "chapter" | ||
weight = 2 | ||
+++ | ||
|
||
|
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,6 +1,6 @@ | ||
+++ | ||
archetype = "chapter" | ||
title = "Rambl'n" | ||
type = "chapter" | ||
weight = 2 | ||
+++ | ||
{{< piratify >}} |
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,7 +1,7 @@ | ||
+++ | ||
archetype = "chapter" | ||
hidden = true | ||
title = "Development" | ||
type = "chapter" | ||
weight = 4 | ||
+++ | ||
|
||
|
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,7 +1,7 @@ | ||
+++ | ||
archetype = "chapter" | ||
hidden = true | ||
title = "Development" | ||
type = "chapter" | ||
weight = 4 | ||
+++ | ||
{{< piratify >}} |
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,7 +1,7 @@ | ||
+++ | ||
archetype = "chapter" | ||
title = "Shorrrtcodes" | ||
ordersectionsby = "title" | ||
title = "Shorrrtcodes" | ||
type = "chapter" | ||
weight = 3 | ||
+++ | ||
{{< piratify >}} |
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
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ title: "page X" | |
weight: 1 | ||
--- | ||
|
||
This is a plain demo child page. | ||
This is a plain demo child page X. |
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 +1 @@ | ||
{{ if (eq .Params.archetype "chapter") }}<b style="display: inline-block; font-weight: 200; padding-left: .3rem; text-align: left; width: 1.1rem;">{{ .Params.weight }}.</b> {{ end }} | ||
{{ if (eq .Type "chapter") }}<b style="display: inline-block; font-weight: 200; padding-left: .3rem; text-align: left; width: 1.1rem;">{{ .Params.weight }}.</b> {{ 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
This file was deleted.
Oops, something went wrong.
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 +1,9 @@ | ||
{{- partial "_main.hugo" . }} | ||
{{- define "storeOutputFormat" }} | ||
{{- .Render "views/storeOutputFormat" }} | ||
{{- end }} | ||
{{- define "body" }} | ||
{{- .Render "views/page" }} | ||
{{- end }} | ||
{{- define "menu" }} | ||
{{- .Render "views/menu" }} | ||
{{- 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 +1,9 @@ | ||
{{- partial "_main.hugo" . }} | ||
{{- define "storeOutputFormat" }} | ||
{{- .Render "views/storeOutputFormat" }} | ||
{{- end }} | ||
{{- define "body" }} | ||
{{- .Render "views/page" }} | ||
{{- end }} | ||
{{- define "menu" }} | ||
{{- .Render "views/menu" }} | ||
{{- 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,33 +1,9 @@ | ||
{{- partialCached "page-meta.hugo" . .RelPermalink }} | ||
{{- partial "header.html" . }} | ||
<article> | ||
<header class="headline"> | ||
</header> | ||
{{- $page := . }} | ||
|
||
{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }} | ||
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1> | ||
{{- .Content }} | ||
{{- $lastCapital := "" }} | ||
{{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" . . }} | ||
{{- range $pages }} | ||
{{- $capital := substr .Title 0 1 | upper }} | ||
{{- if ne $lastCapital $capital }} | ||
{{- if ne $lastCapital "" }} | ||
</ul> | ||
{{- end }} | ||
<h2 id="{{ $capital | plainify | anchorize }}">{{ $capital }}</h2> | ||
<ul class="columnize"> | ||
{{- end }} | ||
{{- /* display terms of a taxonomy */}} | ||
<li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Page) }}">{{ .Title }}</a> ({{ .Count }})</li> | ||
{{- $lastCapital = $capital }} | ||
{{- define "storeOutputFormat" }} | ||
{{- .Render "views/storeOutputFormat" }} | ||
{{- end }} | ||
{{- if ne $lastCapital "" }} | ||
</ul> | ||
{{- define "body" }} | ||
{{- partial "bodys/taxonomy.html" . }} | ||
{{- end }} | ||
|
||
<footer class="footline"> | ||
</footer> | ||
</article> | ||
{{- partial "footer.html" . }} | ||
{{- define "menu" }} | ||
{{- .Render "views/menu" }} | ||
{{- end }} |
Oops, something went wrong.