slonkazoid
2b3f935a98
main.rs, config.rs, view_post.html: add markdown_access main.rs: change AppError to PostError cache.rs: replace development string config.rs: put syntect options in their own struct view_post.html: add markdown_access README.md: write the readme
38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0"
|
|
/>
|
|
<meta name="description" content="{{ meta.title }}" />
|
|
<meta property="og:title" content="{{ meta.title }}" />
|
|
<meta property="og:description" content="{{ meta.description }}" />
|
|
{% match meta.icon %} {% when Some with (url) %}
|
|
<meta property="og:image" content="{{ url }}" />
|
|
<link rel="shortcut icon" href="{{ url }}" />
|
|
{% when None %} {% endmatch %}
|
|
<title>{{ meta.title }}</title>
|
|
<link rel="stylesheet" href="/static/style.css" />
|
|
<link rel="stylesheet" href="/static/post.css" />
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<main>{{ rendered|escape("none") }}</main>
|
|
<!-- prettier-ignore -->
|
|
<footer>
|
|
{% match rendered_in %}
|
|
{% when RenderStats::ParsedAndRendered(total, parsing, rendering) %}
|
|
<span class="tooltipped" title="parsing took {{ parsing|duration }}">parsed</span> and
|
|
<span class="tooltipped" title="rendering took {{ rendering|duration }}">rendered</span> in {{ total|duration }}
|
|
{% when RenderStats::Cached(total) %}
|
|
retrieved from cache in {{ total|duration }}
|
|
{% endmatch %}
|
|
{% if markdown_access %}
|
|
- <a href="/posts/{{ meta.name }}.md">view raw</a>
|
|
{% endif %}
|
|
</footer>
|
|
</body>
|
|
</html>
|