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 2
Orange
The orange is the fruit of various citrus species in the family Rutaceae (see list of plants known as orange); it primarily refers to Citrus × sinensis,[1] which is also called sweet orange, to distinguish it from the related Citrus × aurantium, referred to as bitter orange. The sweet orange reproduces asexually (apomixis through nucellar embryony); varieties of sweet orange arise through mutations.[2][3][4][5]
Onion
The onion (Allium cepa L., from Latin cepa "onion"), also known as the bulb onion or common onion, is a vegetable that is the most widely cultivated species of the genus Allium. Its close relatives include the garlic, scallion, shallot, leek, chive,[2] and Chinese onion.[3]
Mango
A mango is a stone fruit produced from numerous species of tropical trees belonging to the flowering plant genus Mangifera, cultivated mostly for their edible fruit. Most of these species are found in nature as wild mangoes. The genus belongs to the cashew family Anacardiaceae. Mangoes are native to South Asia,[1][2] from where the "common mango" or "Indian mango", Mangifera indica, has been distributed worldwide to become one of the most widely cultivated fruits in the tropics. Other Mangifera species (e.g. horse mango, Mangifera foetida) are grown on a more localized basis.
Cherry
A cherry is the fruit of many plants of the genus Prunus, and is a fleshy drupe (stone fruit).