List

List of all pages from a section/directory.

List fragment can list all the pages from a section, including subsections and pages inside those subsections. This listing can be shown in normal list layout or tiled layout.

List fragment can be used in normal pages as well as section pages. But if used in section pages, it has the ability to use pagination.

List fragment with list layout

Displays pages from syna/example/blog section

First sample blog

Sample
Blog
Lorem Ipsum
First sample blog
Sometimes you need a markdown summary and that’s not possible to do with Hugo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur a lorem urna. Read more...
Lorem Ipsum is the single greatest threat
Lorem Ipsum is the single greatest threat. We are not - we are not keeping up with other websites. You’re telling the enemy exactly what you’re going to do. No wonder you’ve been fighting Lorem Ipsum your entire adult life. Lorem Ipsum’s father was with Lee Harvey Oswald prior to Oswald’s being, you know, shot. You’re telling the enemy exactly what you’re going to do. No wonder you’ve been fighting Lorem Ipsum your entire adult life. Read more...
Zombie ipsum reversus ab viral inferno
Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia? De apocalypsi gorger omero undead survivor dictum mauris. Hi mindless mortuis soulless creaturas, imo evil stalking monstra adventus resi dentevil vultus comedat cerebella viventium. Qui animated corpse, cricket bat max brucks terribilem incessu zomby. The voodoo sacerdos flesh eater, suscitat mortuos comedere carnem virus. Zonbi tattered for solum oculi eorum defunctis go lum cerebro. Read more...

Code

+++
fragment = "list"
weight = 150

title = "List fragment with list layout"
subtitle = "Displays pages from syna/example/blog section"
title_align = "left" # Default is center, can be left, right or center

background = "secondary"
count = 5 # Default value is 10
section = "syna/example/blog" # Default value is current section
#summary = false # Default value is true
#read_more = true # Default value is empty (empty: show when content is truncated, false to never show, true to always show)
#tiled = true # Default value is false
display_date = true # Default is false

#subsections = true # Default to true. Shows subsection branch pages
#subsection_leaves = true # Default to false. Shows subsection leaf pages
+++

List fragment with tiled layout

Displays pages from syna/example/blog section
Sample
Blog
Lorem Ipsum
First sample blog
Sometimes you need a markdown summary and that’s not possible to do with Hugo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur a lorem urna.
Lorem Ipsum is the single greatest threat
Lorem Ipsum is the single greatest threat. We are not - we are not keeping up with other websites. You’re telling the enemy exactly what you’re going to do. No wonder you’ve been fighting Lorem Ipsum your entire adult life. Lorem Ipsum’s father was with Lee Harvey Oswald prior to Oswald’s being, you know, shot. You’re telling the enemy exactly what you’re going to do. No wonder you’ve been fighting Lorem Ipsum your entire adult life.
Zombie ipsum reversus ab viral inferno
Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia? De apocalypsi gorger omero undead survivor dictum mauris. Hi mindless mortuis soulless creaturas, imo evil stalking monstra adventus resi dentevil vultus comedat cerebella viventium. Qui animated corpse, cricket bat max brucks terribilem incessu zomby. The voodoo sacerdos flesh eater, suscitat mortuos comedere carnem virus. Zonbi tattered for solum oculi eorum defunctis go lum cerebro.

Code

+++
fragment = "list"
weight = 150

title = "List fragment with tiled layout"
subtitle = "Displays pages from syna/example/blog section"
#title_align = "left" # Default is center, can be left, right or center

background = "secondary"
count = 5 # Default value is 10
section = "syna/example/blog" # Default value is current section
#summary = false # Default value is true
#read_more = true # Default value is empty (empty: show when content is truncated, false to never show, true to always show)
#tiled = true # Default value is false
display_date = true # Default is false

#subsections = true # Default to true. Shows subsection branch pages
#subsection_leaves = true # Default to false. Shows subsection leaf pages
+++