kompact icon indicating copy to clipboard operation
kompact copied to clipboard

Page not loading correctly

Open javielico opened this issue 7 years ago • 3 comments

Hi there, I'm having a few issues after installing Kirby and applyting the theme. You can see the issue here https://linuxlifecycle.pw/about

Running Debian 9 with Nginx

# Don't hint these as folders
    rewrite ^/(content|site|kirby)$ /error last;

    # block content
    rewrite ^/content/(.*).(txt|md|mdown)$ /error last;

    # block all files in the site and kirby folder from being accessed directly
    rewrite ^/(site|kirby)/(.*)$ /error last;

    # removes trailing slashes (prevents SEO duplicate content issues)
    if (!-d $request_filename) {
        rewrite ^/(.+)/$ /$1 permanent;
    }

    location ~ /panel { # with the ~
        index index.php;
        try_files $uri $uri/ /panel/index.php?$uri&$args;
    }

    # site links
    location ~ / {
        try_files $uri $uri/ /index.php?$uri&$args;
    }

    # Prevent clients from accessing hidden files (starting with a dot)
    # This is particularly important if you store .htpasswd files in the site hierarchy
    location ~ (?:^|/)\. {
        deny all;
    }

    # Prevent clients from accessing to backup/config/source files
    location ~ (?:\.(?:bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$ {
        deny all;
    }

Thanks :-)

javielico avatar Feb 07 '18 16:02 javielico

Hi @javielico, does the "About" page really exist, actually?

yordanoff avatar Feb 07 '18 18:02 yordanoff

Yes but the layout it’s all messed up if you have a look at that link, I’m using the last version of Kirby Cms.

javielico avatar Feb 07 '18 21:02 javielico

"About" is missing, the "Projects" page is messed up indeed.

This is because the site/templates/projects.php file is apparently the one from the Kirby starter's theme. You have to delete it in order to fix the layout issue.

Let me know if this helps. ✌️

yordanoff avatar Feb 07 '18 22:02 yordanoff