gohugoio / hugo

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

ignore prefix of directory #3513

Closed zeigerpuppy closed 6 years ago

zeigerpuppy commented 7 years ago

It would be useful for the organisation of content to be able to ignore a directory prefix. in Daux, it's possible to refer to a content path with a prefix number ignored.

e.g:

01_first_section
02_next_section

These could be linked to by ./first_section and ./second_section

This feature is useful as it permits rearranging the working file tree while leaving links intact. I tried to achieve the same using slugs, but these don't work for containing folder yet.

bademux commented 7 years ago

Sort by weight suits well here https://gohugo.io/content/ordering/

My home-brewed static generator relies on file\directory names and after 7 years of usage content base grows to something like "articles/0/z_myarticle/10_article".

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.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.