35 lines
1 KiB
HTML
35 lines
1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ lang }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link href="{{ url_for('css', name=name) }}" rel="stylesheet" type="text/css" media="print">
|
|
<title>{{ title }} - {{ name }}</title>
|
|
</head>
|
|
<body>
|
|
<h1>{{ title }}</h1>
|
|
<p>The document "{{name}}" has an error.</p>
|
|
{% if error.kind == "yaml" %}
|
|
<p>It seems like that there's something wrong with the YAML at the top of your document. <br />
|
|
It should be structured like this:
|
|
</p>
|
|
<pre>
|
|
---
|
|
title: My Title
|
|
lang: en
|
|
cover: https://example.com/image.jpg
|
|
---
|
|
</pre>
|
|
<p>
|
|
Make sure that there is a space between the ":" and the value.
|
|
</p>
|
|
{% endif %}
|
|
{% elif error.kind == "markdown" %}
|
|
There's something wrong with the markdown in your pad. Please check the document or revert some of your recent changes.
|
|
{% endif %}
|
|
<details>
|
|
<summary>Details</summary>
|
|
{{error.original}}
|
|
</details>
|
|
</body>
|
|
</html> |