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

use relative path instead of absolute one #1

Closed
wants to merge 1 commit into from
Closed

use relative path instead of absolute one #1

wants to merge 1 commit into from

Conversation

llikeitt
Copy link

@llikeitt llikeitt commented May 16, 2016

If you try to use this nice theme on a subdirectory www.example.com/foobar you cannot use this without adjust the root directory but if relative paths are used it works without problems.

@nervo
Copy link
Member

nervo commented May 17, 2016

I'm afraid it can not work like that...
Using absolute paths will broke assets when browsing into subfolders.

Let's see together how we can fix that :)

@llikeitt
Copy link
Author

llikeitt commented May 17, 2016

hmmm...

first try: I could place the .theme folder at root :-( and not in my foobar/.theme folder but if found a better solution for nginx webserver ;)

second try:

location /foobar {
        alias /usr/share/nginx/html/foobar/;

        sub_filter_once off;
        sub_filter '/.theme' '/foobar/.theme';

        add_before_body /foobar/.theme/header.html;
        add_after_body /foobar/.theme/footer.html;

        autoindex_exact_size off;
        autoindex on;
}

It would be nice to add such an example config to README.md

@llikeitt llikeitt closed this May 17, 2016
nervo added a commit that referenced this pull request May 17, 2016
See #1

And thanks to @likeit92 :)
@nervo
Copy link
Member

nervo commented May 17, 2016

Done :) 5314a6c

Thx a lot !

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

Successfully merging this pull request may close these issues.

2 participants