Skip to content

Commit

Permalink
use kirby
Browse files Browse the repository at this point in the history
  • Loading branch information
eli8527 committed Apr 4, 2020
1 parent a912766 commit 23b7f2c
Show file tree
Hide file tree
Showing 550 changed files with 104,755 additions and 76 deletions.
Binary file modified .DS_Store
100644 → 100755
Binary file not shown.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[*.{css,scss,less,js,json,ts,sass,html,hbs,mustache,phtml,html.twig,md,yml}]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
indent_size = 4
trim_trailing_whitespace = false

[site/templates/**.php]
indent_size = 2

[site/snippets/**.php]
indent_size = 2

[package.json,.{babelrc,editorconfig,eslintrc,lintstagedrc,stylelintrc}]
indent_style = space
indent_size = 2
41 changes: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# System files
# ------------

Icon
.DS_Store

# Temporary files
# ---------------

/media/*
!/media/index.html

# Lock files
# ---------------
.lock

# -------------SECURITY-------------
# NEVER publish these files via Git!
# -------------SECURITY-------------

# Cache Files
# ---------------

/site/cache/*
!/site/cache/index.html

# Accounts
# ---------------

/site/accounts/*
!/site/accounts/index.html

# Sessions
# ---------------

/site/sessions/*
!/site/sessions/index.html

# License
# ---------------
/site/config/.license
61 changes: 61 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Kirby .htaccess

# rewrite rules
<IfModule mod_rewrite.c>

# enable awesome urls. i.e.:
# http://yourdomain.com/about-us/team
RewriteEngine on

# make sure to set the RewriteBase correctly
# if you are running the site in a subfolder.
# Otherwise links or the entire site will break.
#
# If your homepage is http://yourdomain.com/mysite
# Set the RewriteBase to:
#
# RewriteBase /mysite

# In some environments it's necessary to
# set the RewriteBase to:
#
# RewriteBase /

# block files and folders beginning with a dot, such as .git
# except for the .well-known folder, which is used for Let's Encrypt and security.txt
RewriteRule (^|/)\.(?!well-known\/) index.php [L]

# block text files in the content folder from being accessed directly
RewriteRule ^content/(.*)\.(txt|md|mdown)$ index.php [L]

# block all files in the site folder from being accessed directly
# except for requests to plugin assets files
RewriteRule ^site/(.*) index.php [L]

# Enable authentication header
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

# block direct access to kirby and the panel sources
RewriteRule ^kirby/(.*) index.php [L]

# make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]

</IfModule>

# compress text file responses
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

php_value upload_max_filesize 1G
php_value post_max_size 1G
php_value memory_limit 1G
82 changes: 82 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Kirby Plainkit

Kirby is a file-based CMS.
Easy to setup. Easy to use. Flexible as hell.

## Trial

You can try Kirby on your local machine or on a test
server as long as you need to make sure it is the right
tool for your next project.

## Buy a license

You can purchase your Kirby license at
<https://getkirby.com/buy>

A Kirby license is valid for a single domain. You can find
Kirby's license agreement here: <https://getkirby.com/license>

## The Plainkit

Kirby's Plainkit is the most minimal setup you can get started with.
It does not include any content, styles or other kinds of decoration,
so it's perfect to use this as a starting point for your own project.

## The Panel

You can find the login for Kirby's admin interface at
http://yourdomain.com/panel. You will be guided through the signup
process for your first user, when you visit the panel
for the first time.

## Installation

Kirby does not require a database, which makes it very easy to
install. Just copy Kirby's files to your server and visit the
URL for your website in the browser.

**Please check if the invisible .htaccess file has been
copied to your server correctly**

### Requirements

Kirby runs on PHP 7.1+, Apache or Nginx.

### Download

You can download the latest version of the Plainkit
from https://github.com/getkirby/plainkit/archive/master.zip

### With Git

If you are familiar with Git, you can clone Kirby's
Plainkit repository from Github.

git clone https://github.com/getkirby/plainkit.git

## Documentation

<https://getkirby.com/docs>

## Issues

If you have a Github account, please report issues
directly on Github: <https://github.com/getkirby/kirby/issues>

Otherwise you can use Kirby's forum: https://forum.getkirby.com
or send us an email: <[email protected]>

## Ideas & Feature Requests

If you have ideas for new features, please submit a ticket in our ideas repository:
<https://github.com/getkirby/kirby/ideas>

## Support

<https://getkirby.com/support>

## Copyright

© 2009-2019 Bastian Allgeier (Bastian Allgeier GmbH)
<https://getkirby.com>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 main.css → assets/main.css
100644 → 100755
File renamed without changes.
27 changes: 27 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "getkirby/plainkit",
"description": "Kirby Plainkit",
"type": "project",
"keywords": ["kirby", "cms", "starterkit"],
"homepage": "https://getkirby.com",
"authors": [
{
"name": "Bastian Allgeier",
"email": "[email protected]",
"homepage": "https://getkirby.com"
}
],
"support": {
"email": "[email protected]",
"issues": "https://github.com/getkirby/starterkit/issues",
"forum": "https://forum.getkirby.com",
"source": "https://github.com/getkirby/starterkit"
},
"require": {
"php": ">=7.1.0",
"getkirby/cms": "^3.0"
},
"config": {
"optimize-autoloader": true
}
}
1 change: 1 addition & 0 deletions content/error/error.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Title: Error
1 change: 1 addition & 0 deletions content/home/home.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Title: Home
1 change: 1 addition & 0 deletions content/site.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Title: Recipes for Food
Binary file removed fonts/.DS_Store
Binary file not shown.
Binary file removed images/postcards-hires.jpg
Binary file not shown.
Binary file removed images/postcards-hires2.jpg
Binary file not shown.
Binary file removed images/postcards-hires3.jpg
Binary file not shown.
Binary file removed images/postcards-hires4.jpg
Binary file not shown.
Binary file removed images/postcards-hires5.jpg
Binary file not shown.
Binary file removed images/postcards-hires6.jpg
Binary file not shown.
Binary file removed images/postcards-hires7.jpg
Binary file not shown.
Binary file removed images/postcards-hires8.jpg
Binary file not shown.
Binary file removed images/postcards-hires9.jpg
Binary file not shown.
76 changes: 0 additions & 76 deletions index.html

This file was deleted.

5 changes: 5 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

require 'kirby/bootstrap.php';

echo (new Kirby)->render();
15 changes: 15 additions & 0 deletions kirby/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# PHP PSR-2 Coding Standards
# http://www.php-fig.org/psr/psr-2/

root = true

[*.php]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
Loading

0 comments on commit 23b7f2c

Please sign in to comment.