Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling deleted pages #44

Open
holic opened this issue Jun 16, 2015 · 1 comment
Open

Handling deleted pages #44

holic opened this issue Jun 16, 2015 · 1 comment

Comments

@holic
Copy link
Contributor

holic commented Jun 16, 2015

I'm wondering if there's a way to handle deleted pages? It would be great if running gostatic config with some flag would detect which pages in the OUTPUT dir weren't touched by gostatic and remove them.

@piranha
Copy link
Owner

piranha commented Jun 18, 2015

Heh, well, that would be nice to have, but I'm not exactly sure how to approach that.

Maybe a flag, which will cause gostatic to go through the destination directory and check every file if it has a corresponding entry in Site.Pages. Not terribly efficient, but then who cares, that's not the main proposition. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants