Rename subpage to page

This commit is contained in:
Will Faught
2023-03-19 17:51:48 -07:00
parent 0b6aeaf775
commit e24aa20c04
10 changed files with 72 additions and 72 deletions

View File

@@ -2,5 +2,5 @@
{{ $page := . }}
{{ partial "paige/article.html" $page }}
{{ partial "paige/subpages.html" $page }}
{{ partial "paige/pages.html" $page }}
{{ end }}

View File

@@ -2,5 +2,5 @@
{{ $page := . }}
{{ partial "paige/article.html" $page }}
{{ partial "paige/subpages.html" $page }}
{{ partial "paige/pages.html" $page }}
{{ end }}

View File

@@ -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 }}

View File

@@ -2,5 +2,5 @@
{{ $page := . }}
{{ partial "paige/article.html" $page }}
{{ partial "paige/subpages.html" $page }}
{{ partial "paige/pages.html" $page }}
{{ end }}

View File

@@ -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 }}

View File

@@ -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>