kc0bfv / autophugo

AutoPhugo [ˌɔtoʊˈfjuːgəʊ] is a gallery/photoblog theme for Hugo that's a little more automatic than Phugo.
Other
97 stars 56 forks source link

Fix empty _index.md on hugo new #53

Closed nkgrush closed 1 year ago

nkgrush commented 1 year ago

hugo new some-dir/_index.md was creating empty _index.md files. It was caused by an empty archetypes/default.md file being automatically added into new projects by hugo new site. Updated documentation to fix album construction.

fixed#38

nkgrush commented 1 year ago

Issue https://github.com/kc0bfv/autophugo/issues/38

kc0bfv commented 1 year ago

Awesome point. Thank you! I'm gonna recommend people just delete their site-specific archetypes/default.md - that way they will automatically get updates if they update the theme, because Hugo falls-back to the theme's default.

nkgrush commented 1 year ago

@kc0bfv Thanks for merging! I could also suggest adding an option to change animation speed for imgs loading (or lower the default), because it seemed a bit sluggish for large galleries, eventualy I did it through theme's css, but it may be more of a personal preference, so I didn't make a separate PR with it.

kc0bfv commented 1 year ago

Hrm - I think I know what code you're talking about. And - whew, that old old old CSS is a mess these days. Plus, it doesn't need to be that slow to still look nice. This loads it about a second faster, which is not quite twice as quick.