Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

Commit 165e8ad

Browse files
author
Florens Verschelde
committed
Fix #8 wrong path to error page
1 parent b489096 commit 165e8ad

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/component.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private function getTwigEnv() {
201201

202202
$debug = c::get('debug', false);
203203
$templateDir = $this->kirby->roots()->templates();
204-
$cacheDir = $this->kirby->roots()->cache() . DS . 'twig';
204+
$cacheDir = $this->kirby->roots()->cache() . '/twig';
205205

206206
$options = [
207207
'debug' => $debug,
@@ -305,7 +305,7 @@ private function renderTwigError(Twig_Error $err, $errorPages=['error']) {
305305
}
306306

307307
// Error page template
308-
$html = Tpl::load(__DIR__ . DS . 'templates' . DS . 'twigerror.php', [
308+
$html = Tpl::load(__DIR__ . '/errorpage.php', [
309309
'title' => $title,
310310
'message' => $message,
311311
'file' => $file,

templates/twigerror.php renamed to src/errorpage.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,21 @@
2828
margin: -.75rem 0 1rem;
2929
font-size: 100%;
3030
line-height: 1.3;
31+
font-weight: normal;
3132
font-family: monospace, monospace;
32-
color: #909090;
33+
color: #707070;
3334
}
3435
p {
3536
margin: .5rem 0;
3637
}
38+
pre, code {
39+
font-family: monospace, monospace;
40+
}
3741
pre {
3842
margin: 0;
3943
padding: 1.5rem;
4044
white-space: pre-wrap;
45+
font-size: 90%;
4146
-webkit-tab-size: 4;
4247
-moz-tab-size: 4;
4348
tab-size: 4;
@@ -57,7 +62,7 @@
5762
padding: 1em;
5863
}
5964
body {
60-
width: 48em;
65+
width: 54em;
6166
max-width: 100%;
6267
margin: 1em auto;
6368
border: solid 1px #ccc;
@@ -92,14 +97,14 @@
9297
margin-left: -7ch;
9398
padding-right: 2ch;
9499
text-align: right;
95-
opacity: .6;
100+
color: #666;
96101
-webkit-user-select: none;
97102
-moz-user-select: none;
98103
-ms-user-select: none;
99104
user-select: none;
100105
}
101106
mark[data-line]::before {
102-
opacity: .75;
107+
color: #bbb;
103108
}
104109
}
105110
</style>

0 commit comments

Comments
 (0)