gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
76.22k stars 7.55k forks source link

hugo convert does not copy "non content file" files if --output is set #4621

Open Brixy opened 6 years ago

Brixy commented 6 years ago

Hi all,

I probably found another issue concerning page resources:

hugo convert deletes all page resources if the flag output is set, e. g.:

hugo convert toTOML --output converted

With the unsafe flag set everything works as expected:

hugo convert toTOML --unsafe
russmack commented 6 years ago

I've just run hugo convert toTOML --output converted and all it did was copy the md files to the specified directory - no deleting, but also no converting.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

bep commented 6 years ago

I just checked this, and yes, it does not copy any non-content files. Maybe it should. Not sure.