.gitignore

This commit is contained in:
2020-10-20 10:26:38 +02:00
parent e64b18b9a9
commit 61b266eec4
9 changed files with 62 additions and 4 deletions
+46
View File
@@ -0,0 +1,46 @@
# Composer
.composer
vendor/*
!*/vendor/*
# Sass
.sass-cache
# Grav Specific
backup/*
!backup/.*
cache/*
!cache/.*
assets/*
!assets/.*
logs/*
!logs/.*
images/*
!images/.*
user/accounts/*
!user/accounts/.*
user/data/*
!user/data/.*
user/plugins/*
!user/plugins/.*
user/themes/*
!user/themes/.*
user/localhost/config/security.yaml
user/config/security.yaml
# OS Generated
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
*.swp
# phpstorm
.idea/*
# testing stuff
tests/_output/*
tests/_support/_generated/*
tests/cache/*
tests/error.log
system/templates/testing/*
View File
View File
View File
View File
+7 -1
View File
@@ -1,10 +1,16 @@
# v1.7.1
## 10/08/2020
1. [](#bugfix)
* Fixed error page being cached, fixes issue with non-existing resources which later become available
# v1.7.0
## 07/01/2020
1. [](#new)
* Require Grav v1.6
1. [](#bugfix)
* Added trnaslated title programmatically [#40](https://github.com/getgrav/grav-plugin-error/pull/40)
* Added translated title programmatically [#40](https://github.com/getgrav/grav-plugin-error/pull/40)
# v1.6.2
## 05/09/2019
+1 -1
View File
@@ -1,5 +1,5 @@
name: Error
version: 1.7.0
version: 1.7.1
description: Displays the error page.
type: plugin
slug: error
+7 -2
View File
@@ -53,8 +53,13 @@ class ErrorPlugin extends Plugin
// Try to load user error page.
$page = $pages->dispatch($this->config->get('plugins.error.routes.404', '/error'), true);
if (!$page) {
if ($page) {
// Set default expires for error page.
$header = $page->header();
if (!isset($header->expires)) {
$page->expires(0);
}
} else {
// If none provided use built in error page.
$page = new Page;
$page->init(new \SplFileInfo(__DIR__ . '/pages/error.md'));
+1
View File
@@ -7,6 +7,7 @@ http_response_code: 404
twig_first: true
process:
twig: true
expires: 0
---
{{ 'PLUGIN_ERROR.ERROR_MESSAGE'|t }}