diff --git a/docs.html b/docs.html index 7cde3f0..2696d9e 100644 --- a/docs.html +++ b/docs.html @@ -112,8 +112,7 @@
.htaccess
file if required.You can override the default Pico settings (and add your own custom settings) by editing config.php in the root Pico directory. The config.php file - lists all of the settings and their defaults. To override a setting simply uncomment it in config.php and set your custom value.
+You can override the default Pico settings (and add your own custom settings) by editing config/config.php
in the Pico directory. The config/config.php.template
lists all of the settings and their defaults. To override a setting simply copy config/config.php.template
to config/config.php
, uncomment the setting and set your custom value.
Pico is a flat file CMS, this means there is no administration backend and database to deal with. You simply create .md
files in the "content-sample"
@@ -175,15 +174,15 @@ Template: index (allows you to use different templates in your theme)
You can create themes for your Pico installation and in the "themes" folder. Check out the default theme for an example of a theme. Pico uses
Twig for it's templating engine. You can select your theme by setting the $config['theme']
variable
- in config.php to your theme folder.
config/config.php
to your theme folder.
All themes must include an index.html
file to define the HTML structure of the theme. Below are the Twig variables that are available to use in your theme:
{{ config }}
- Conatins the values you set in config.php (e.g. {{ config.theme }}
= "default"){{ config }}
- Conatins the values you set in config/config.php
(e.g. {{ config.theme }}
= "default"){{ base_dir }}
- The path to your Pico root directory{{ base_url }}
- The URL to your Pico site{{ theme_dir }}
- The path to the Pico active theme direcotry{{ theme_url }}
- The URL to the Pico active theme direcotry{{ site_title }}
- Shortcut to the site title (defined in config.php){{ site_title }}
- Shortcut to the site title (defined in config/config.php
){{ meta }}
- Contains the meta values from the current page
{{ meta.title }}