How difficult will it be to create a paginated index template to look and behave like https://photos.ben.page? I know the single.html template would be easy, but canβt wrap my head around that index.html one.
git clone --single-branch -b hugo-forum-topic-47870 https://github.com/jmooring/hugo-testing hugo-forum-topic-47870
cd hugo-forum-topic-47870
hugo server
Files of interest:
assets/css/main.css(lines 67-83)hugo.toml(lines 5-16)layouts/photos/calendar.htmllayouts/photos/section.htmllayouts/photos/page.html
Required content structure:
content/
βββ photos/
β βββ 2025/ <-- this is NOT a section; it must not contain an _index.md file
β β βββ 09/ <-- this is a section; it must contain an _index.md file
β β β βββ 02/
β β β β βββ a.jpg
β β β β βββ index.md
β β β βββ 06/
β β β β βββ b.jpg <-- you can have as many images as you'd like
β β β β βββ c.jpg
β β β β βββ index.md
β β β βββ _index.md
β β βββ 11/
β β βββ 01/
β β β βββ e.jpg
β β β βββ index.md
β β βββ 03/
β β β βββ f.jpg
β β β βββ index.md
β β βββ _index.md
β βββ _index.md
βββ _index.md
4 Likes
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.