Customize folder setup

This commit is contained in:
Paul Nicoué 2022-07-08 16:33:06 +02:00
parent ddb853e055
commit 2f7f31b623
48 changed files with 27 additions and 22 deletions

16
.gitignore vendored
View file

@ -22,20 +22,20 @@ Icon
.DS_Store
# Temporary files
/media/*
!/media/index.html
/public/media/*
!/public/media/index.html
# --------------------------------------------------
# SECURITY
# --------------------------------------------------
# Accounts
/site/accounts/*
!/site/accounts/index.html
/storage/accounts/*
!/storage/accounts/index.html
# Cache Files
/site/cache/*
!/site/cache/index.html
/storage/cache/*
!/storage/cache/index.html
# Configuration files
/site/config/config.xiaowang.fr.php
@ -45,5 +45,5 @@ Icon
/site/config/.license
# Sessions
/site/sessions/*
!/site/sessions/index.html
/storage/sessions/*
!/storage/sessions/index.html

1
htdocs Symbolic link
View file

@ -0,0 +1 @@
public

View file

@ -1 +0,0 @@
.htaccess

View file

@ -1 +0,0 @@
assets

View file

@ -1 +0,0 @@
content

View file

@ -1 +0,0 @@
index.php

View file

@ -1 +0,0 @@
kirby

View file

@ -1 +0,0 @@
media

View file

@ -1 +0,0 @@
robots.txt

View file

@ -1 +0,0 @@
site

View file

@ -1 +0,0 @@
vendor

View file

@ -1,5 +0,0 @@
<?php
require 'kirby/bootstrap.php';
echo (new Kirby)->render();

View file

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

18
public/index.php Normal file
View file

@ -0,0 +1,18 @@
<?php
include __DIR__ . '/../kirby/vendor/autoload.php';
$kirby = new Kirby([
'roots' => [
'index' => __DIR__,
'base' => $base = dirname(__DIR__),
'content' => $base . '/content',
'site' => $base . '/site',
'storage' => $storage = $base . '/storage',
'accounts' => $storage . '/accounts',
'cache' => $storage . '/cache',
'sessions' => $storage . '/sessions',
]
]);
echo $kirby->render();