Daniel Rudolf
827be2cb9c
Build System: Refactor source code and release archive creation
...
Resolves #313
9 years ago
Daniel Rudolf
1bf157049a
README.md: Link to about page instead of landing page
9 years ago
Daniel Rudolf
21bd18bcf0
Replace Pico::discoverRequestFile() with public Pico::resolveFilePath()
...
This allows plugins (e.g. PicoAdmin) to safely resolve file paths without the need of re-implementing the method.
9 years ago
Daniel Rudolf
e27be7a80f
Merge branch 'master' into pico-1.1
9 years ago
Daniel Rudolf
fb4bdfe1fc
Fix Pico::parseFileMeta() for non-YAML 1-liners
...
\Symfony\Component\Yaml\Parser::parse() returns the unchanged value when a 1-liner string which is no valid YAML is passed. Assume this string to be the page title. Thus the following page will work now:
```
---
This is the title
---
# Example page
{{ meta.title }} is going to be "This is the title" - or "%meta.title%" == "This is the title".
```
9 years ago
Daniel Rudolf
aa1bc077a7
Add $dropIndex parameter to Pico::getPageUrl() method
...
This allows one to prevent Pico from removing the last "index" path component. Example use case: Pico's official admin plugin. We must distinguish between "content/sub.md" and "content/sub/index.md", otherwise it wouldn't be possible to edit both pages.
9 years ago
Daniel Rudolf
848e28b7e6
Declare Pico::getFiles() public
...
This might be a useful helper method for plugins (e.g. PicoAdmin)
9 years ago
Daniel Rudolf
bf1663cc1c
Add Pico's social icons to default theme
9 years ago
Daniel Rudolf
81dddc94cf
Revert "Update composer.json: Use Symfony YAML 3.1 and later"
...
Symfony YAML >= 3.0 requires PHP >= 5.5.9 and we're currently not planning to raise Pico's PHP requirement.
This reverts commit f251bc83ec
.
9 years ago
Daniel Rudolf
f251bc83ec
Update composer.json: Use Symfony YAML 3.1 and later
9 years ago
Daniel Rudolf
ddf3da0391
Merge branch 'master' into pico-1.1
...
Conflicts:
.htaccess
config/config.php.template
content-sample/index.md
lib/Pico.php
9 years ago
Daniel Rudolf
eeb43e131f
Pico::prepareFileContent(): Declare $variables variable
9 years ago
Daniel Rudolf
94279c57f8
Improve phpDocs class docs
9 years ago
Daniel Rudolf
79bb543c46
Version 1.0.3
...
```
* [Changed] Improve documentation
* [Changed] Heavily extend nginx configuration docs
* [Changed] Add CSS rules for definition lists to default theme
* [Changed] Always use `on404Content...` execution path when serving a `404.md`
* [Changed] Deny access to `.git` directory, `CHANGELOG.md`, `composer.json`
and `composer.lock` (`.htaccess` file)
* [Changed] Use Pico's `404.md` to deny access to `.git`, `config`, `content`,
* `content-sample`, `lib` and `vendor` dirs (`.htaccess` file)
* [Fixed] #342 : Fix responsiveness in default theme
* [Fixed] #344 : Improve HTTPS detection with proxies
* [Fixed] #346 : Force HTTPS to load Google Fonts in default theme
```
9 years ago
Daniel Rudolf
d17f0a8a8f
Update CHANGELOG.md
9 years ago
Daniel Rudolf
b2a7c7623d
Sync docs
9 years ago
Daniel Rudolf
e32a46d6cf
Sync docs
9 years ago
Daniel Rudolf
86b2839660
Update .htaccess
...
Thanks @smcdougall , see ee5b4f0d56 (commitcomment-17304977)
9 years ago
Daniel Rudolf
0f8deda6a3
Update .htaccess
...
Sync with Pico 1.0.3; see ee5b4f0
9 years ago
Daniel Rudolf
ee5b4f0d56
.htaccess: Deny access to CHANGELOG.md, composer.json, composer.lock
...
See discussion in #343
9 years ago
Daniel Rudolf
749114df61
Build system: Update phpDoc list formatting
9 years ago
Daniel Rudolf
79a14799bb
Build system: Add phpDoc list
9 years ago
Daniel Rudolf
4c0366fa49
Build system: Move generate-version.sh
9 years ago
Daniel Rudolf
4d3eace1af
README.md: Update upgrade URL
9 years ago
Daniel Rudolf
e01044319a
Build system: Use dynamic phpDoc title
9 years ago
Daniel Rudolf
6c4f69c107
Update inline user docs to reflect 6465c2b0a9
9 years ago
Daniel Rudolf
0e8cd0873d
Merge branch 'master' into pico-1.1
...
Conflicts:
.htaccess
9 years ago
Daniel Rudolf
6465c2b0a9
Support REQUEST_URI routing method
...
With Pico 1.0 you had to setup URL rewriting (e.g. using `mod_rewrite` on Apache) in a way that rewritten URLs follow the `QUERY_STRING` principles. Starting with version 1.1, Pico additionally supports the `REQUEST_URI` routing method, what allows you to simply rewrite all requests to just `index.php`. Pico then reads the requested page from the `REQUEST_URI` environment variable provided by the webserver. Please note that `QUERY_STRING` takes precedence over `REQUEST_URI`.
9 years ago
Daniel Rudolf
31e55ca24a
.htaccess: Pass full URL to Pico when requesting content, lib... dirs
...
This allows Pico to e.g. serve content/config.md when http://example.com/pico/config/ is requested
9 years ago
Daniel Rudolf
8b1539640d
Update CHANGELOG.md
9 years ago
Daniel Rudolf
49cb6c144a
Use Pico's 404.md to deny access to lib, content... dirs
9 years ago
Daniel Rudolf
6234be88b0
Always use `on404Content...` execution path when serving a 404.md
9 years ago
Daniel Rudolf
3a36dbd934
Build system: Add automatic version file updates for picocms.org
9 years ago
Daniel Rudolf
d19621a908
Improve themes dir guessing; add $config['theme_url'] config
9 years ago
Daniel Rudolf
1b3ef7516d
Drop the "index" part of URLs
...
Closes #347 . Thanks @Robby-
9 years ago
Daniel Rudolf
a119122497
Fix coding standard violation
9 years ago
Daniel Rudolf
b133f6dae5
Add Pico::VERSION_ID (like PHP_VERSION_ID)
9 years ago
Daniel Rudolf
4140ad48ac
Update CHANGELOG.md
9 years ago
Daniel Rudolf
4e215fe522
Default theme: Force HTTPS to load Google Fonts
...
See https://github.com/picocms/Pico/pull/346#issuecomment-213000364 (via #346 / d6accc2
), thanks @smcdougall
9 years ago
Daniel Rudolf
2d728d56af
Update CHANGELOG.md
9 years ago
Daniel Rudolf
32be061cd6
Merge pull request #346 from ghuron/patch-1
...
Use http or https depending on page access
9 years ago
ghuron
d6accc23ee
Use http or https depending on page access
9 years ago
Daniel Rudolf
8dfb1b14c7
Improve HTTPS detection with proxies
...
Fixes #344 . Thanks @Robby-
Implementation details taken from Symfony 3.0.4, method \Symfony\Component\HttpFoundation\Request::isSecure(), see https://github.com/symfony/symfony/blob/v3.0.4/src/Symfony/Component/HttpFoundation/Request.php#L1169-L1192
9 years ago
Daniel Rudolf
27d32430ee
Update CHANGELOG.md
9 years ago
Daniel Rudolf
2678473e09
Merge pull request #342 from ErickMR19/patch-1
...
Update style.css
9 years ago
Erick Madrigal Ríos
0e632bdaa1
Update style.css
...
Responsive design is currently broken when the width is between 768px and 850px, because the width of inner class is set fixed at 850px
9 years ago
Daniel Rudolf
d8f9166918
Fix nginx configuration example
...
Thanks Robby (via IRC)
9 years ago
Daniel Rudolf
6557f5684d
Update CHANGELOG.md
9 years ago
Daniel Rudolf
3fbcea7837
Default theme: Add definition list styling
...
Resolves #339 . Thanks @Marcussacapuces91
9 years ago
Daniel Rudolf
2d2491e36f
Update CHANGELOG.md
9 years ago