Skip to content

Continuously cycles from last page to first and from first page to last within a subsection collection.

Notifications You must be signed in to change notification settings

danpoynor/hugo-cycle-through-subsecton-pages-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Hugo Subsection Page Navigation with Looping Previous and Next Links

Cycles from last page to first and from first page to last within a subsection page collection.

Table of contents

General info

It took me a while to figure out how to create this previous/next looping navigation pattern for a subsection in Hugo so I thought I'd share. This is part of a side project converting my portfolio website to the Hugo static site generator framework from WordPress and is intended to be used as a partial, for example in a sidebar area on a project page so users can navigate project examples in a carousel manner.

Animated demo showing starting point and code organization/development process

Aniamted ScreenShot Demo

Technologies Used

Technology used:

About

Continuously cycles from last page to first and from first page to last within a subsection collection.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages