Rename paige-main.html to paige-article.html
This commit is contained in:
@@ -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.
|
||||
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`.
|
||||
To change the page title for those default layouts, change `paige-title.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.
|
||||
|
||||
## Design
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{{ define "main" }}
|
||||
{{ if not .Params.paige_show_full_pages }}
|
||||
{{ partial "paige-main.html" . }}
|
||||
{{ partial "paige-article.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "paige-pages.html" . }}
|
||||
{{ end }}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "paige-main.html" . }}
|
||||
{{ partial "paige-article.html" . }}
|
||||
{{ partial "paige-search.html" . }}
|
||||
{{ end }}
|
||||
|
@@ -1,3 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "paige-main.html" . }}
|
||||
{{ partial "paige-article.html" . }}
|
||||
{{ end }}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "paige-main.html" . }}
|
||||
{{ partial "paige-article.html" . }}
|
||||
{{ if .Pages }}
|
||||
<section>
|
||||
<ul class="list-inline text-center">
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "paige-main.html" . }}
|
||||
{{ partial "paige-article.html" . }}
|
||||
{{ partial "paige-pages.html" . }}
|
||||
{{ end }}
|
||||
|
@@ -6,7 +6,7 @@
|
||||
{{ if .Params.math }}
|
||||
{{ $page.Scratch.Set "paigelistmath" true }}
|
||||
{{ end }}
|
||||
{{ partial "paige-main.html" . }}
|
||||
{{ partial "paige-article.html" . }}
|
||||
{{ end }}
|
||||
{{ if or $p.HasPrev $p.HasNext }}
|
||||
<section>
|
||||
|
Reference in New Issue
Block a user