Homepage
Best viewed on desktop. Click « on the right to expand info panel.
- What to name your content files?
foo.mdvsindex.mdvs_index.md. - What layout files will be used?
- What about Page Resources?
Scroll down for lookup rules for homepage.
Lookup Rules for homepage .Kind:
[directory] / filename . [<lang>] . [<outputformat>] . suffix
<type> / <customlayout> . [<lang>] . [<outputformat>] . <suffix> <-- uncomment frontmatter line #2
<type> / index . [<lang>] . [<outputformat>] . <suffix>
<type> / <kind> . [<lang>] . [<outputformat>] . <suffix> <-- uncomment frontmatter line #1 (and/or #2)
<type> / list . [<lang>] . [<outputformat>] . <suffix>
index . [<lang>] . [<outputformat>] . <suffix> <-- see note A.1, A.3, B
<kind> . [<lang>] . [<outputformat>] . <suffix> <-- see note A.2
list . [<lang>] . [<outputformat>] . <suffix> <-- see note A.4
_default / index . [<lang>] . [<outputformat>] . <suffix>
_default / <kind> . [<lang>] . [<outputformat>] . <suffix>
_default / list . [<lang>] . [<outputformat>] . <suffix> <-- present, ignored
Notes:
Note A.
- amp
output using
layouts/index.html(Also See Note B) - json
output using
layouts/home.json=<kind>.<suffix> - html
output using
layouts/index.html - rss
output using
layouts/list.rss.xml=<list>.<outputformat>.<suffix>(note description tag)
Note B. The homepage is also configured to generate an AMP page. However, no **.amp.html layout files are found,
that match the lookup order, so it uses layouts/index.html as instead.
Some Page Vars
| DOT (.) | Page(/_index.md) |
| .File | _index.md |
| .Kind | home |
| .Type | page |
| .Section | |
| .Sections | Page(/clouds/_index.md), Page(/colors/_index.md), Page(/fruit/_index.md), Page(/letters/_index.md), Page(/metals/_index.md), Page(/trees/_index.md) |
| .Parent | |
| .IsPage | false |
| .IsNode | true |
| .Pages | Page(/circle/index.md), Page(/clouds/_index.md), Page(/colors/_index.md), Page(/crescent/index.md), Page(/ellipse/index.md), Page(/fruit/_index.md), Page(/layout-lookup.md), Page(/letters/_index.md), Page(/metals/_index.md), Page(/oval/index.md), Page(/page-resources.md), Page(/rectangle.md), Page(/rhombus.md), Page(/single-vs-list.md), Page(/square.md), Page(/trapezoid.md), Page(/trees/_index.md) |
| .Resources | false |
Content Structure
Homepage
_index.md
- Circle circle/index.md
- Clouds clouds/_index.md
-
Colors
colors/_index.md
- Blue Title colors/blue/index.md
- Green Title colors/green.md
- Orange Title colors/orange/index.md
- Red Title colors/red.md
- Yellow Title colors/yellow/index.md
- Crescent crescent/index.md
- Ellipse ellipse/index.md
-
Fruit
fruit/_index.md
- Banana fruit/banana.md
-
Berries
fruit/berries/_index.md
- Blackberries fruit/berries/blackberries/index.md
- Blueberries fruit/berries/blueberries/index.md
- Raspberries fruit/berries/raspberries.md
- Strawberries fruit/berries/strawberries/index.md
- Citrus fruit/citrus/_index.md
-
Stonefruit
fruit/stonefruit/_index.md
- Apricots fruit/stonefruit/apricots.md
- Nectarines fruit/stonefruit/nectarines.md
- Plums fruit/stonefruit/plums.md
- Layout Lookup Order layout-lookup.md
- Letters letters/_index.md
- Metals metals/_index.md
- Oval oval/index.md
- Page Resources page-resources.md
- Rectangle rectangle.md
- Rhombus rhombus.md
- Single vs List single-vs-list.md
- Square square.md
- Trapezoid trapezoid.md
- Trees trees/_index.md
No Sibling Sections (.Parent.Sections)
Children Sections (.Sections)
| Page | Title | File |
|---|---|---|
| Page(/clouds/_index.md) | Clouds | clouds/_index.md |
| Page(/colors/_index.md) | Colors | colors/_index.md |
| Page(/fruit/_index.md) | Fruit | fruit/_index.md |
| Page(/letters/_index.md) | Letters | letters/_index.md |
| Page(/metals/_index.md) | Metals | metals/_index.md |
| Page(/trees/_index.md) | Trees | trees/_index.md |
Children Pages (.Pages)
| Page | File |
|---|---|
| Circle - /circle/ | circle/index.md |
| Clouds - /clouds/ | clouds/_index.md |
| Colors - /colors/ | colors/_index.md |
| Crescent - /crescent/ | crescent/index.md |
| Ellipse - /ellipse/ | ellipse/index.md |
| Fruit - /fruit/ | fruit/_index.md |
| Layout Lookup Order - /layout-lookup/ | layout-lookup.md |
| Letters - /letters/ | letters/_index.md |
| Metals - /metals/ | metals/_index.md |
| Oval - /oval/ | oval/index.md |
| Page Resources - /page-resources/ | page-resources.md |
| Rectangle - /rectangle/ | rectangle.md |
| Rhombus - /rhombus/ | rhombus.md |
| Single vs List - /single-vs-list/ | single-vs-list.md |
| Square - /square/ | square.md |
| Trapezoid - /trapezoid/ | trapezoid.md |
| Trees - /trees/ | trees/_index.md |
Regular Pages (.RegularPages)
| Page | File |
|---|---|
| Crescent | crescent/index.md |
| Trapezoid | trapezoid.md |
| Rectangle | rectangle.md |
| Single vs List | single-vs-list.md |
| Page Resources | page-resources.md |
| Oval | oval/index.md |
| Layout Lookup Order | layout-lookup.md |
| Square | square.md |
| Circle | circle/index.md |
| Ellipse | ellipse/index.md |
| Rhombus | rhombus.md |
| Nimbus | clouds/nimbus.md |
| Cirrus | clouds/cirrus.md |
| Yellow Title | colors/yellow/index.md |
| Green Title | colors/green.md |
| Blue Title | colors/blue/index.md |
| Orange Title | colors/orange/index.md |
| Red Title | colors/red.md |
| Limes | fruit/citrus/limes.md |
| Nectarines | fruit/stonefruit/nectarines.md |
| Strawberries | fruit/berries/strawberries/index.md |
| Lemons | fruit/citrus/lemons.md |
| Oranges | fruit/citrus/oranges.md |
| Blackberries | fruit/berries/blackberries/index.md |
| Banana | fruit/banana.md |
| Plums | fruit/stonefruit/plums.md |
| Raspberries | fruit/berries/raspberries.md |
| Apricots | fruit/stonefruit/apricots.md |
| Blueberries | fruit/berries/blueberries/index.md |
| B | letters/b.md |
| A | letters/a.md |
| Silver | metals/silver.md |
| Gold | metals/gold.md |
| Pine | trees/pine.md |
| Fig | trees/fig.md |
| Acacia | trees/acacia.md |
| Mahogany | trees/mahogany.md |