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

Aurora doesn't support folders inside templates/ #18

Open
opsydev opened this issue Feb 23, 2025 · 1 comment
Open

Aurora doesn't support folders inside templates/ #18

opsydev opened this issue Feb 23, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@opsydev
Copy link

opsydev commented Feb 23, 2025

Bug

I want to have the following structure for my sites' pages

index.html
special-page.html
directory/
    another-page.html

Setting this structure in the templates directory flattens the structure in the build to

index.html
special-page.html
another-page.html

Further more
if I have

index.html
special-page.html
directory/
   special-page.html

Then it gets flattened to

index.html
special-page.html

Completely ignoring the folder

Minimal Reproducible Example

Add a page in a folder in the templates/ directory

Additional

No response

@opsydev opsydev added the bug Something isn't working label Feb 23, 2025
@opsydev
Copy link
Author

opsydev commented Feb 23, 2025

I messed around on my local package, which is def behind master, but I was able to get it working by doing two hacks.

Check here https://github.com/opsydev/aurora/blob/patch-1/aurora/graph.py

Specifically
https://github.com/opsydev/aurora/blob/patch-1/aurora/graph.py#L241
https://github.com/opsydev/aurora/blob/patch-1/aurora/graph.py#L532

I know this is not the best way to solve it, but I needed something quick for a site I'm using it with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant