feat(generator): add -default-view to choose timeline or grid as site root
The chosen view is published at /, the other under /timeline/ or /grid/. Page paths, pager links and the cross-links between the views are derived from the setting. The directory named after the default view is removed on build, since it can only be a leftover from before a switch. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ func newTestServer(t *testing.T) *Server {
|
||||
[]byte("caption = \"Tempelhof at sunrise\"\ndate = \"2026-06-14\"\n"))
|
||||
|
||||
g := NewGenerator(content, output, "https://photos.example.com",
|
||||
"Ada", "", "", "", "", "Crimson Pro", "Manjari", 60)
|
||||
"Ada", "", "", "", "", "Crimson Pro", "Manjari", 60, viewTimeline)
|
||||
return NewServer("0", content, output, false, g)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user