Original File paged-archive.cshtml
ArchiveSources: posts/*
ArchivePageSize: 4
Title: Paged Archive
---
<p>
This is a paged archive that lists all the documents from the <code>posts</code> folder in pages of 4 items without any sorting.
Note that the <code>Title</code> setting is needed to populate the titles for each page. Alternativly, you can set <code>ArchiveTitle</code> to have full control over the page title.
<p>
<p class="font-weight-bold">Page @Model.GetString(Keys.Index)</p>
@foreach (IDocument document in Model.GetChildren())
{
<h5>@Html.DocumentLink(document)</h5>
@Html.Raw(document.GetString(Keys.Excerpt))
}
@{
IDocument previous = Model.GetDocument(Keys.Previous);
IDocument next = Model.GetDocument(Keys.Next);
}
@if (previous != null)
{
<div class="mb-2"><a class="btn btn-primary" href="@previous.GetLink()" role="button"><i class="fas fa-angle-double-left"></i> Previous Page</a></div>
}
@if (next != null)
{
<div><a class="btn btn-primary" href="@next.GetLink()" role="button">Next Page <i class="fas fa-angle-double-right"></i></a></div>
}
This is a paged archive that lists all the documents from the posts folder in pages of 4 items without any sorting.
Note that the Title setting is needed to populate the titles for each page. Alternativly, you can set ArchiveTitle to have full control over the page title.
Page 1
Tomato
The tomato is the edible berry of the plant Solanum lycopersicum,[1][2] commonly known as a tomato plant. The species originated in western South America and Central America.[2][3] The Nahuatl (the language used by the Aztecs) word tomatl gave rise to the Spanish word tomate, from which the English word tomato derived.[3][4] Its domestication and use as a cultivated food may have originated with the indigenous peoples of Mexico.[2][5] The Aztecs used tomatoes in their cooking at the time of the Spanish conquest of the Aztec Empire, and after the Spanish encountered the tomato for the first time after their contact with the Aztecs, they brought the plant to Europe. From there, the tomato was introduced to other parts of the European-colonized world during the 16th century.[2]
Pepper
The bell pepper (also known as sweet pepper, pepper or capsicum /ˈkæpsɪkəm/)[1] is the fruit of plants in the Grossum cultivar group of the species Capsicum annuum.[2][3] Cultivars of the plant produce fruits in different colours, including red, yellow, orange, green, white, and purple. Bell peppers are sometimes grouped with less pungent pepper varieties as "sweet peppers". While they are fruits—botanically classified as berries—they are commonly used as a vegetable ingredient or side dish.
Apple
An apple is an edible fruit produced by an apple tree (Malus domestica). Apple trees are cultivated worldwide and are the most widely grown species in the genus Malus. The tree originated in Central Asia, where its wild ancestor, Malus sieversii, is still found today. Apples have been grown for thousands of years in Asia and Europe and were brought to North America by European colonists. Apples have religious and mythological significance in many cultures, including Norse, Greek, and European Christian tradition.
Cherry
A cherry is the fruit of many plants of the genus Prunus, and is a fleshy drupe (stone fruit).