Skip to content

Commit

Permalink
Merge branch 'release/2.0.2' into craft-webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Aug 17, 2019
2 parents 983e82b + cfc00fe commit 12a4501
Show file tree
Hide file tree
Showing 12 changed files with 81 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# ASSETS
/web/assets/*
/web/cpresources/*
/web/dist/*

# BUILD FILES
/bower_components/*
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# nystudio107/craft Change Log

## 2.0.2 - 2018.08.17
### Changed
* Added `maxUploadFileSize` to `general.php`
* Added `/web/dist/*` to `.gitignore`
* Refactored the error pages out to a single channel
* Added generic login image background

## 2.0.1 - 2018.08.15
### Changed
* Numerous template changes to get the base build working
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "craftcms/craft",
"description": "nystudio107 Craft 3.2 CMS scaffolding project",
"version": "2.0.1",
"version": "2.0.2",
"keywords": [
"craft",
"cms",
Expand Down
1 change: 1 addition & 0 deletions config/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'errorTemplatePrefix' => 'errors/',
'generateTransformsBeforePageLoad' => true,
'maxCachedCloudImageSize' => 3000,
'maxUploadFileSize' => '100M',
'omitScriptNameInUrls' => true,
'useEmailAsUsername' => true,
'usePathInfo' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*/

body.login {
background-size: 600px;
background-repeat: repeat;
background-size: cover;
background-repeat: no-repeat;
background-image: url('/img/site/login-background-image.svg');
}

Expand Down
4 changes: 2 additions & 2 deletions templates/_layouts/error-page-layout.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
<div class="container mx-auto py-8">
<div class="text-center p-8 mb-8">
<h1 class="font-mono italic font-bold text-5xl pt-4">
{{ entry.errorHeadline }}
{{ entry.errorHeadline ?? 'Error' }}
</h1>
<p class="font-sans text-xl pt-4">
{{ entry.errorText |nl2br }}
{{ (entry.errorText ?? 'An error has occurred.') |nl2br }}
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/errors/404.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{% set entry = craft.entries.section("notFound").limit(1).one() %}
{% set entry = craft.entries.section('errors').slug('error404').one() %}

{% extends "_layouts/error-page-layout.twig" %}
2 changes: 1 addition & 1 deletion templates/errors/503.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{% set entry = craft.entries.section("serviceUnavailable").limit(1).one() %}
{% set entry = craft.entries.section('errors').slug('error503').one() %}

{% extends "_layouts/error-page-layout.twig" %}
2 changes: 1 addition & 1 deletion templates/errors/error.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{% set entry = craft.entries.section("genericError").limit(1).one() %}
{% set entry = craft.entries.section('errors').slug('errorError').one() %}

{% extends "_layouts/error-page-layout.twig" %}
2 changes: 1 addition & 1 deletion templates/errors/offline.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{% set entry = craft.entries.section("siteOffline").limit(1).one() %}
{% set entry = craft.entries.section('errors').slug('errorOffline').one() %}

{% extends "_layouts/error-page-layout.twig" %}
2 changes: 0 additions & 2 deletions web/img/.gitignore

This file was deleted.

63 changes: 63 additions & 0 deletions web/img/site/login-background-image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 12a4501

Please sign in to comment.