This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Caching is now an option for the PieCrust constructor so that config …
…and page caching can both be controlled by it. Refactored the error handling code to be more robust and simpler.
- Loading branch information
1 parent
f5b15ac
commit be0a666
Showing
12 changed files
with
170 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
site: | ||
title: Test Site | ||
enable_cache: true | ||
|
||
something: | ||
foo: bar | ||
blah: blah | ||
|
||
author: | ||
name: John Doe | ||
email: john@doe.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
--- | ||
layout: 404 | ||
title: Not found | ||
--- | ||
<h2>Sorry, we couldn't find what you asked for.</h2> | ||
<p>The article or resource you requested is not here.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
--- | ||
layout: error | ||
title: Oops, something went wrong | ||
--- | ||
<p>Try going back to the homepage and navigate from there.</p> | ||
<h2>Oops, something went wrong</h2> | ||
<p>{{ error.message }}</p> | ||
{% if error.debug %} | ||
<p>Error: <code>{{ error.code }}</code><br/> | ||
File: <code>{{ error.file }}</code><br/> | ||
Line <code>{{ error.line }}</code></p> | ||
<blockquote> | ||
<pre>{{ error.trace }}</ppre> | ||
</blockquote> | ||
{% endif %} | ||
{{ content|raw }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.