Daniel Rudolf
888b910a84
Update Pico::VERSION
...
Pico::VERSION_ID isn't updated because this is a alpha release.
5 years ago
Daniel Rudolf
b95cfe0a0e
Update Pico::VERSION and Pico::VERSION_ID
5 years ago
Daniel Rudolf
1916dc5645
Silence PHP notices in upstream Parsedown
...
Parsedown is a still unresolved issue in whole, this at least ensures that we don't fill up logfiles with useless errors...
5 years ago
Daniel Rudolf
4be1f6ae90
Try to proberly encode formatted date strings returned by strftime()
...
Fixes #560
5 years ago
Daniel Rudolf
590d467347
Update Pico::VERSION and Pico::VERSION_ID
5 years ago
Daniel Willmann
b2df860546
Add option to set a locale
...
As mentioned in https://www.php.net/manual/en/function.basename.php both
basename() and dirname() are locale aware.
An incorrect locale can cause the page tree to behave in strange ways.
For example the structure
/über-uns
|-index.md
|-impressum.md
could lead to the page impressum not being a child of über-uns.
5 years ago
Daniel Rudolf
b892d6bb11
Update Pico::VERSION and Pico::VERSION_ID
5 years ago
Daniel Rudolf
2ee41e9a8d
Update Pico::VERSION and Pico::VERSION_ID
5 years ago
Daniel Rudolf
718b790b19
Kick-start development of Pico 3.0
5 years ago
Daniel Rudolf
6672fb2277
Update Pico::VERSION and Pico::VERSION_ID
6 years ago
Daniel Rudolf
447479d973
Test hidden page requests on page ID
...
Fixes #523
6 years ago
Daniel Rudolf
a87e40fbf0
Update Pico::VERSION
6 years ago
Daniel Rudolf
29f2e95160
Update Pico::VERSION
6 years ago
Daniel Rudolf
e0415c8c1d
Mark Pico's content Twig variable as being safe
...
This no longer requires themes to output the `content` variable using `{{ content|raw }}`, theme developers can use `{{ content }}` as before.
6 years ago
Daniel Rudolf
2a23edde4e
Fix code formatting
6 years ago
Daniel Rudolf
23000af64e
Add $singleLine param to Twig markdown parser
...
This allows you to parse just a single line of Markdown, i.e. the parsed output won't include a HTML paragraph element.
6 years ago
Daniel Rudolf
be0812fb55
Mark Twig content filter as HTML safe
6 years ago
Daniel Rudolf
d2573c5df5
Fix $this->config['twig_config'] handling in Pico::loadTheme()
6 years ago
Daniel Rudolf
1d5aba46af
Support content files with UTF-8 BOM
...
Resolves #461
6 years ago
Daniel Rudolf
87bcff1654
Various small improvements
6 years ago
Daniel Rudolf
6ffbbec689
Improve theme API version retrieval
6 years ago
Daniel Rudolf
b27b4f388a
🎉 Add Pico theme API versioning and add pico-theme.yml
...
- Add pico-theme.yml with a theme's API version, theme-specific default Twig config, registering theme-specific custom meta headers and defaults for Pico's `theme_config` config
- Add new `onThemeLoading(&$theme)` and `onThemeLoaded($theme, $themeApiVersion, &$themeConfig)` events
- Enable Twig autoescaping by default
6 years ago
Daniel Rudolf
c1113a780c
Fix @deprecated notice for Pico::getBaseThemeUrl() and AbstractPicoPlugin::__call()
6 years ago
Daniel Rudolf
cd3d3dcec5
Bump API version
...
Due to ad729a99c4
and 33117be981
6 years ago
Daniel Rudolf
17aba01513
Various small improvements
6 years ago
Daniel Rudolf
eca06a38a9
phpDoc class docs: Remove superflous @return void
6 years ago
Daniel Rudolf
6e6d80c044
Add Pico::substituteUrl() and `url` Twig filter
...
Allows theme developers and users to use URL placeholders like `%base_url%` in meta headers, e.g. to include images.
6 years ago
Daniel Rudolf
715cb83431
Improve class docs of Pico::getBaseThemeUrl() and Pico::getUrlFromPath()
6 years ago
Daniel Rudolf
8d6e9ac31e
Replace file_exists() by is_file()
6 years ago
Daniel Rudolf
c9a3f84673
Sync config/config.yml.template with Pico::loadConfig()
6 years ago
Daniel Rudolf
6476d6507d
Re-add deprecated Pico::getBaseThemeUrl() to maintain BC
6 years ago
Daniel Rudolf
3eab6c58d0
Bump version to 2.1.0-nightly
6 years ago
Daniel Rudolf
f3b5a92247
Fix directory separator in Pico::getUrlFromPath()
6 years ago
Daniel Rudolf
ad729a99c4
Remove base_dir and theme_dir Twig variables
...
These variables aren't really needed in Twig and can still be accessed using $config
6 years ago
Daniel Rudolf
33117be981
Config: Rename theme_url to themes_url, add plugins_url, assets_url and assets_dir
6 years ago
Daniel Rudolf
38bb0a4ac7
Various small improvements
6 years ago
Daniel Rudolf
bb1b8639bd
Add Pico::getUrlFromPath() and Pico::getAbsoluteUrl(), replacing Pico::getBaseThemeUrl()
6 years ago
Daniel Rudolf
f016c8a937
Add Pico::getNormalizedPath()
6 years ago
Daniel Rudolf
8ce3b0c224
Add debug mode
...
You can enable Pico's debug mode by setting the PICO_DEBUG environment variable. At the moment this just enables Twig's debug mode.
6 years ago
Daniel Rudolf
edf849725d
Config template: Add more Twig config options
6 years ago
Daniel Rudolf
008ca6f41b
Pico::loadConfig(): Make twig cache path absolute
6 years ago
Daniel Rudolf
787344a526
Rename prev_page Twig variable to previous_page
6 years ago
Daniel Rudolf
34ae8e8812
Support %config.*% Markdown placeholders
6 years ago
Daniel Rudolf
feba0b32df
Update Pico::VERSION and Pico::VERSION_ID
7 years ago
Daniel Rudolf
9924cf8485
Update Pico::VERSION and Pico::VERSION_ID
7 years ago
M.Martellenghi
84949975b0
Proberly handle hostnames with ports in `Pico::getBaseUrl()` ( #472 )
...
* fixed getting current port from current host
Resolves #472
7 years ago
Daniel Rudolf
b8106c6c31
Update Pico::VERSION and Pico::VERSION_ID
7 years ago
Daniel Rudolf
cde8c8697b
Improve/update/fix phpDoc class docs
7 years ago
Daniel Rudolf
5e4d758acb
Various small code improvements
7 years ago
Daniel Rudolf
e172dd20a1
Don't require env variables, proberly handle alt server ports
7 years ago