Rename subpage to page
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ partial "paige/article.html" $page }}
|
||||
{{ partial "paige/subpages.html" $page }}
|
||||
{{ partial "paige/pages.html" $page }}
|
||||
{{ end }}
|
||||
|
@@ -2,5 +2,5 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ partial "paige/article.html" $page }}
|
||||
{{ partial "paige/subpages.html" $page }}
|
||||
{{ partial "paige/pages.html" $page }}
|
||||
{{ end }}
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
{{ if or (eq $page.RelPermalink "/categories/") (eq $page.RelPermalink "/tags/") }}
|
||||
{{ if $page.Pages }}
|
||||
<div id="paige-subpages">
|
||||
<div id="paige-pages">
|
||||
<ul class="list-inline text-center">
|
||||
{{ range (sort $page.Pages "Title") }}
|
||||
<li class="list-inline-item">
|
||||
@@ -16,6 +16,6 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ partial "paige/subpages.html" $page }}
|
||||
{{ partial "paige/pages.html" $page }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@@ -2,5 +2,5 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ partial "paige/article.html" $page }}
|
||||
{{ partial "paige/subpages.html" $page }}
|
||||
{{ partial "paige/pages.html" $page }}
|
||||
{{ end }}
|
||||
|
@@ -44,7 +44,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ $flags = delimit ($flags | uniq) " " }}
|
||||
{{ $class := delimit (slice "mb-3" "paige-subpage" "w-100" | append $flags | uniq | sort) " " }}
|
||||
{{ $class := delimit (slice "mb-3" "paige-page" "w-100" | append $flags | uniq | sort) " " }}
|
||||
|
||||
<div class="{{ $class }}">
|
||||
{{ with $title }}
|
@@ -11,7 +11,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ range $k, $v := . }}
|
||||
{{ partial "paige/subpage.html" (site.GetPage $k) }}
|
||||
{{ partial "paige/page.html" (site.GetPage $k) }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -23,7 +23,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ range . }}
|
||||
{{ partial "paige/subpage.html" . }}
|
||||
{{ partial "paige/page.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -57,7 +57,7 @@
|
||||
{{ $pinned := where . "Params.paige.pin" true }}
|
||||
|
||||
{{ range $pinned.ByPublishDate.Reverse }}
|
||||
{{ partial "paige/subpage.html" . }}
|
||||
{{ partial "paige/page.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ $unpinned := complement $pinned . }}
|
||||
@@ -68,7 +68,7 @@
|
||||
<h3 class="h5 paige-date-header text-center">{{ .Key }}</h3>
|
||||
|
||||
{{ range .Pages }}
|
||||
{{ partial "paige/subpage.html" . }}
|
||||
{{ partial "paige/page.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
Reference in New Issue
Block a user