Rename paige-main.html to paige-article.html

master
Will Faught 3 years ago
parent 57f5ada303
commit 0f279dde80

@ -309,11 +309,11 @@ If `partials/paige-body-last.html` exists in the site, it is included at the end
Most code is in partial templates that are included by the default layouts. Most code is in partial templates that are included by the default layouts.
Elements can easily be added or changed by overriding the corresponding layout or partial template. Elements can easily be added or changed by overriding the corresponding layout or partial template.
For example, the default layouts `home.html`, `list.html`, `single.html`, `taxonomy.html`, and `term.html` include `paige-main.html`, For example, the default layouts `home.html`, `list.html`, `single.html`, `taxonomy.html`, and `term.html` include `paige-article.html`,
which includes `paige-title.html`, `paige-description.html`, `paige-date.html`, and `paige-content.html`. which includes `paige-title.html`, `paige-description.html`, `paige-date.html`, and `paige-content.html`.
To change the page title for those default layouts, change `paige-title.html`. To change the page title for those default layouts, change `paige-title.html`.
To change the page title for `single.html`, To change the page title for `single.html`,
replace the use of `paige-main.html` in `single.html` with the use of `paige-title.html`, `paige-description.html`, `paige-date.html`, and `paige-content.html`, replace the use of `paige-article.html` in `single.html` with the use of `paige-title.html`, `paige-description.html`, `paige-date.html`, and `paige-content.html`,
then replace that use of `paige-title.html` with your own design. then replace that use of `paige-title.html` with your own design.
## Design ## Design

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ if not .Params.paige_show_full_pages }} {{ if not .Params.paige_show_full_pages }}
{{ partial "paige-main.html" . }} {{ partial "paige-article.html" . }}
{{ end }} {{ end }}
{{ partial "paige-pages.html" . }} {{ partial "paige-pages.html" . }}
{{ end }} {{ end }}

@ -1,4 +1,4 @@
{{ define "main" }} {{ define "main" }}
{{ partial "paige-main.html" . }} {{ partial "paige-article.html" . }}
{{ partial "paige-search.html" . }} {{ partial "paige-search.html" . }}
{{ end }} {{ end }}

@ -1,3 +1,3 @@
{{ define "main" }} {{ define "main" }}
{{ partial "paige-main.html" . }} {{ partial "paige-article.html" . }}
{{ end }} {{ end }}

@ -1,5 +1,5 @@
{{ define "main" }} {{ define "main" }}
{{ partial "paige-main.html" . }} {{ partial "paige-article.html" . }}
{{ if .Pages }} {{ if .Pages }}
<section> <section>
<ul class="list-inline text-center"> <ul class="list-inline text-center">

@ -1,4 +1,4 @@
{{ define "main" }} {{ define "main" }}
{{ partial "paige-main.html" . }} {{ partial "paige-article.html" . }}
{{ partial "paige-pages.html" . }} {{ partial "paige-pages.html" . }}
{{ end }} {{ end }}

@ -6,7 +6,7 @@
{{ if .Params.math }} {{ if .Params.math }}
{{ $page.Scratch.Set "paigelistmath" true }} {{ $page.Scratch.Set "paigelistmath" true }}
{{ end }} {{ end }}
{{ partial "paige-main.html" . }} {{ partial "paige-article.html" . }}
{{ end }} {{ end }}
{{ if or $p.HasPrev $p.HasNext }} {{ if or $p.HasPrev $p.HasNext }}
<section> <section>

Loading…
Cancel
Save